summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech/mts-io
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2021-10-29 05:10:52 -0500
committerAndrii Pientsov <andrii.pientsov@globallogic.com>2021-11-18 14:18:49 +0200
commite5360bf650bae2e2c224d3f7ceced4f6a0aa7b95 (patch)
treecaa629c4808637194d77b062ce165c0c006aad3d /recipes-bsp/multitech/mts-io
parent5d31246701422d2bc314f0542d9392e48f9af75d (diff)
downloadmeta-multitech-e5360bf650bae2e2c224d3f7ceced4f6a0aa7b95.tar.gz
meta-multitech-e5360bf650bae2e2c224d3f7ceced4f6a0aa7b95.tar.bz2
meta-multitech-e5360bf650bae2e2c224d3f7ceced4f6a0aa7b95.zip
Add the names of the GPIOs for the MTCDT-0.2 IO expander
Diffstat (limited to 'recipes-bsp/multitech/mts-io')
-rw-r--r--recipes-bsp/multitech/mts-io/ioport-gpio-expand.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes-bsp/multitech/mts-io/ioport-gpio-expand.patch b/recipes-bsp/multitech/mts-io/ioport-gpio-expand.patch
new file mode 100644
index 0000000..c413d21
--- /dev/null
+++ b/recipes-bsp/multitech/mts-io/ioport-gpio-expand.patch
@@ -0,0 +1,28 @@
+diff --git a/io-module/at91gpio.h b/io-module/at91gpio.h
+index c2f8a77..d6328f1 100644
+--- a/io-module/at91gpio.h
++++ b/io-module/at91gpio.h
+@@ -179,4 +179,23 @@
+ #define AT91_PIN_PE30 (0x80 + 30)
+ #define AT91_PIN_PE31 (0x80 + 31)
+
++// MTCDT-0.2 I2C I/O Port expanders
++#define PCA9557_0_IO0 (0xa0 + 0)
++#define PCA9557_0_IO1 (0xa0 + 1)
++#define PCA9557_0_IO2 (0xa0 + 2)
++#define PCA9557_0_IO3 (0xa0 + 3)
++#define PCA9557_0_IO4 (0xa0 + 4)
++#define PCA9557_0_IO5 (0xa0 + 5)
++#define PCA9557_0_IO6 (0xa0 + 6)
++#define PCA9557_0_IO7 (0xa0 + 7)
++
++#define PCA9557_1_IO0 (0xa8 + 0)
++#define PCA9557_1_IO1 (0xa8 + 1)
++#define PCA9557_1_IO2 (0xa8 + 2)
++#define PCA9557_1_IO3 (0xa8 + 3)
++#define PCA9557_1_IO4 (0xa8 + 4)
++#define PCA9557_1_IO5 (0xa8 + 5)
++#define PCA9557_1_IO6 (0xa8 + 6)
++#define PCA9557_1_IO7 (0xa8 + 7)
++
+ #endif