summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-at91-4.9.87/mtcdt/mt-at91.h
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2021-11-08 03:47:28 -0600
committerJohn Klug <john.klug@multitech.com>2021-12-29 08:26:41 -0600
commitb1eb7d690433fc647dd8b6806271d23e0fdf09ee (patch)
treef07e9e4f5d4d9aad6033ea8ade8e5609bdcefd22 /recipes-kernel/linux/linux-at91-4.9.87/mtcdt/mt-at91.h
parent0b159d676a251c81daf3037e46a1af3209e1ff83 (diff)
downloadmeta-multitech-atmel-b1eb7d690433fc647dd8b6806271d23e0fdf09ee.tar.gz
meta-multitech-atmel-b1eb7d690433fc647dd8b6806271d23e0fdf09ee.tar.bz2
meta-multitech-atmel-b1eb7d690433fc647dd8b6806271d23e0fdf09ee.zip
Device tree updates for MTCDT-0.2 and Overlay
Diffstat (limited to 'recipes-kernel/linux/linux-at91-4.9.87/mtcdt/mt-at91.h')
-rw-r--r--recipes-kernel/linux/linux-at91-4.9.87/mtcdt/mt-at91.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-at91-4.9.87/mtcdt/mt-at91.h b/recipes-kernel/linux/linux-at91-4.9.87/mtcdt/mt-at91.h
new file mode 100644
index 0000000..36fba62
--- /dev/null
+++ b/recipes-kernel/linux/linux-at91-4.9.87/mtcdt/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