summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-at91-5.4.81/mt-at91.h
diff options
context:
space:
mode:
authorAndrii Pientsov <andrii.pientsov@globallogic.com>2021-11-30 17:40:50 +0200
committerAndrii Pientsov <andrii.pientsov@globallogic.com>2021-11-30 17:40:50 +0200
commit5e0e2a5bdcca315e79e0dab0fbdcfaa2c94ac445 (patch)
tree22f11df2d3887d486ffb0ede1f9e2475630ee2f7 /recipes-kernel/linux/linux-at91-5.4.81/mt-at91.h
parent52a369e5e4819acddbc5b5261133a7ed9e7e0c7d (diff)
downloadmeta-multitech-atmel-5e0e2a5bdcca315e79e0dab0fbdcfaa2c94ac445.tar.gz
meta-multitech-atmel-5e0e2a5bdcca315e79e0dab0fbdcfaa2c94ac445.tar.bz2
meta-multitech-atmel-5e0e2a5bdcca315e79e0dab0fbdcfaa2c94ac445.zip
Update mtcdt.dts for MTCDT-0.2
Diffstat (limited to 'recipes-kernel/linux/linux-at91-5.4.81/mt-at91.h')
-rw-r--r--recipes-kernel/linux/linux-at91-5.4.81/mt-at91.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-at91-5.4.81/mt-at91.h b/recipes-kernel/linux/linux-at91-5.4.81/mt-at91.h
new file mode 100644
index 0000000..36fba62
--- /dev/null
+++ b/recipes-kernel/linux/linux-at91-5.4.81/mt-at91.h
@@ -0,0 +1,19 @@
+#ifndef _DT_BINDINGS_GPIO_MT_AT91_H
+#define _DT_BINDINGS_GPIO_MT_AT91_H
+/*
+ * Device tree explicit phandles
+ * for overlays. First four are AT91.
+ * Kernel must know about this to
+ * build the device tree. Overlay
+ * recipe needs this to find the
+ * GPIO stanza phandle.
+ */
+
+#define GPIO0_PH 0xffff0000
+#define GPIO1_PH 0xffff0001
+#define GPIO2_PH 0xffff0002
+#define GPIO3_PH 0xffff0003
+#define GPIO4_PCA9557_PH 0xffff0004
+#define GPIO5_PCA9557_PH 0xffff0005
+
+#endif