From b9d424fe24d8138846ad74ccd8f31bcc819e76a3 Mon Sep 17 00:00:00 2001 From: Vyacheslav Pedash Date: Wed, 17 Aug 2022 18:19:07 +0300 Subject: MTX-4571 Fix I2C GPIO addr for MTCDT3 v 0.1. Remove 0x20 (0x18) GPIO. --- mtcpmhs/gpio-expander-0.0.dtso | 14 ++------------ mtcpmhs/gpio-expander-0.1.dtso | 16 +++------------- 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/mtcpmhs/gpio-expander-0.0.dtso b/mtcpmhs/gpio-expander-0.0.dtso index 388deba..48d2cd7 100644 --- a/mtcpmhs/gpio-expander-0.0.dtso +++ b/mtcpmhs/gpio-expander-0.0.dtso @@ -21,17 +21,7 @@ fragment@0 { target-path = "/ocp@44000000/interconnect@48000000/segment@0/target-module@2a000/i2c@0"; __overlay__ { - gpiom1: gpio@20 { - compatible = "microchip,mcp23008"; - gpio-controller; - #gpio-cells = <2>; - reg = <0x20>; - interrupt-parent = <&gpio1>; - interrupts = <4 IRQ_TYPE_LEVEL_LOW>; - interrupt-controller; - #interrupt-cells=<2>; - }; /*gpio@20*/ - gpiom2: gpio@21 { + gpiom1: gpio@21 { compatible = "microchip,mcp23008"; gpio-controller; #gpio-cells = <2>; @@ -51,7 +41,7 @@ leds-exp { compatible = "gpio-leds"; led-gpio { - gpios = <&gpiom2 6 GPIO_ACTIVE_LOW>; + gpios = <&gpiom1 6 GPIO_ACTIVE_LOW>; default-state = "off"; }; /*led-gpio*/ }; /*leds-exp*/ diff --git a/mtcpmhs/gpio-expander-0.1.dtso b/mtcpmhs/gpio-expander-0.1.dtso index ba79b0c..e3126db 100644 --- a/mtcpmhs/gpio-expander-0.1.dtso +++ b/mtcpmhs/gpio-expander-0.1.dtso @@ -21,21 +21,11 @@ fragment@0 { target-path = "/ocp@44000000/interconnect@48000000/segment@0/target-module@2a000/i2c@0"; __overlay__ { - gpiom1: gpio@20 { + gpiom1: gpio@19 { compatible = "nxp,pca9557"; gpio-controller; #gpio-cells = <2>; - reg = <0x20>; - interrupt-parent = <&gpio1>; - interrupts = <4 IRQ_TYPE_LEVEL_LOW>; - interrupt-controller; - #interrupt-cells=<2>; - }; /*gpio@20*/ - gpiom2: gpio@21 { - compatible = "nxp,pca9557"; - gpio-controller; - #gpio-cells = <2>; - reg = <0x21>; + reg = <0x19>; interrupt-parent = <&gpio1>; interrupts = <7 IRQ_TYPE_LEVEL_LOW>; interrupt-controller; @@ -51,7 +41,7 @@ leds-exp { compatible = "gpio-leds"; led-gpio { - gpios = <&gpiom2 6 GPIO_ACTIVE_LOW>; + gpios = <&gpiom1 6 GPIO_ACTIVE_LOW>; default-state = "off"; }; /*led-gpio*/ }; /*leds-exp*/ -- cgit v1.2.3 From a75f4a12bdd234c442bdb78761d4fa64015e4405 Mon Sep 17 00:00:00 2001 From: Vyacheslav Pedash Date: Tue, 23 Aug 2022 14:44:28 +0300 Subject: MTX-4571 Add support for MTCDT3-AC v 0.2 --- mtcpmhs/ap1-gpiob-0.0.dtso | 1 + mtcpmhs/ap1-lora-0.0.dtso | 1 + mtcpmhs/ap2-gpiob-0.0.dtso | 1 + mtcpmhs/ap2-lora-0.0.dtso | 1 + mtcpmhs/gpio-expander-0.0.dtso | 1 + mtcpmhs/gpio-expander-0.1.dtso | 50 ------------------------------------------ mtcpmhs/gpio-expander-0.2.dtso | 50 ++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 55 insertions(+), 50 deletions(-) delete mode 100644 mtcpmhs/gpio-expander-0.1.dtso create mode 100644 mtcpmhs/gpio-expander-0.2.dtso diff --git a/mtcpmhs/ap1-gpiob-0.0.dtso b/mtcpmhs/ap1-gpiob-0.0.dtso index 810c03b..5d5a6c9 100644 --- a/mtcpmhs/ap1-gpiob-0.0.dtso +++ b/mtcpmhs/ap1-gpiob-0.0.dtso @@ -8,6 +8,7 @@ * Location(s): * Put: MTCDT3/0.0/gpiob/ap1-gpiob.dtbo * Link: MTCDT3/0.1/gpiob/ap1-gpiob.dtbo + * Link: MTCDT3/0.2/gpiob/ap1-gpiob.dtbo */ #include "am4372.dtsi" diff --git a/mtcpmhs/ap1-lora-0.0.dtso b/mtcpmhs/ap1-lora-0.0.dtso index 22b6801..30fd711 100644 --- a/mtcpmhs/ap1-lora-0.0.dtso +++ b/mtcpmhs/ap1-lora-0.0.dtso @@ -8,6 +8,7 @@ * Location(s): * Put: MTCDT3/0.0/lora/ap1-lora.dtbo * Link: MTCDT3/0.1/lora/ap1-lora.dtbo + * Link: MTCDT3/0.2/lora/ap1-lora.dtbo */ #include "am4372.dtsi" diff --git a/mtcpmhs/ap2-gpiob-0.0.dtso b/mtcpmhs/ap2-gpiob-0.0.dtso index a4a2d15..254a8c3 100644 --- a/mtcpmhs/ap2-gpiob-0.0.dtso +++ b/mtcpmhs/ap2-gpiob-0.0.dtso @@ -8,6 +8,7 @@ * Location(s): * Put: MTCDT3/0.0/gpiob/ap2-gpiob.dtbo * Link: MTCDT3/0.1/gpiob/ap2-gpiob.dtbo + * Link: MTCDT3/0.2/gpiob/ap2-gpiob.dtbo */ #include "am4372.dtsi" diff --git a/mtcpmhs/ap2-lora-0.0.dtso b/mtcpmhs/ap2-lora-0.0.dtso index b27ab5a..8d9bc8c 100644 --- a/mtcpmhs/ap2-lora-0.0.dtso +++ b/mtcpmhs/ap2-lora-0.0.dtso @@ -8,6 +8,7 @@ * Location(s): * Put: MTCDT3/0.0/lora/ap2-lora.dtbo * Link: MTCDT3/0.1/lora/ap2-lora.dtbo + * Link: MTCDT3/0.2/lora/ap2-lora.dtbo */ #include "am4372.dtsi" diff --git a/mtcpmhs/gpio-expander-0.0.dtso b/mtcpmhs/gpio-expander-0.0.dtso index 48d2cd7..b93a49b 100644 --- a/mtcpmhs/gpio-expander-0.0.dtso +++ b/mtcpmhs/gpio-expander-0.0.dtso @@ -8,6 +8,7 @@ /* * Location(s): * Put: MTCDT3/0.0/gpio-expander.dtbo + * Link: MTCDT3/0.1/gpio-expander.dtbo */ #include "am4372.dtsi" diff --git a/mtcpmhs/gpio-expander-0.1.dtso b/mtcpmhs/gpio-expander-0.1.dtso deleted file mode 100644 index e3126db..0000000 --- a/mtcpmhs/gpio-expander-0.1.dtso +++ /dev/null @@ -1,50 +0,0 @@ -/* - * DTS overlay for MTCDT3 0.1 hardware version. - */ - -/dts-v1/; -/plugin/; - -/* - * Location(s): - * Put: MTCDT3/0.1/gpio-expander.dtbo - */ - -#include "am4372.dtsi" -#include -#include -#include - - -/ { - compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43"; - fragment@0 { - target-path = "/ocp@44000000/interconnect@48000000/segment@0/target-module@2a000/i2c@0"; - __overlay__ { - gpiom1: gpio@19 { - compatible = "nxp,pca9557"; - gpio-controller; - #gpio-cells = <2>; - reg = <0x19>; - interrupt-parent = <&gpio1>; - interrupts = <7 IRQ_TYPE_LEVEL_LOW>; - interrupt-controller; - #interrupt-cells=<2>; - gpio-line-names = "", "", "modesel_0", "modesel_1", "termination_en", "RTS_override", "gpio_exp_led", ""; - }; /*gpio@20*/ - }; /*overlay*/ - }; /*fragment@0*/ - - fragement@1 { - target-path = "/"; - __overlay__ { - leds-exp { - compatible = "gpio-leds"; - led-gpio { - gpios = <&gpiom1 6 GPIO_ACTIVE_LOW>; - default-state = "off"; - }; /*led-gpio*/ - }; /*leds-exp*/ - }; /*overlay*/ - }; /*fragement@1*/ -}; diff --git a/mtcpmhs/gpio-expander-0.2.dtso b/mtcpmhs/gpio-expander-0.2.dtso new file mode 100644 index 0000000..c0736c3 --- /dev/null +++ b/mtcpmhs/gpio-expander-0.2.dtso @@ -0,0 +1,50 @@ +/* + * DTS overlay for MTCDT3 0.2 hardware version. + */ + +/dts-v1/; +/plugin/; + +/* + * Location(s): + * Put: MTCDT3/0.2/gpio-expander.dtbo + */ + +#include "am4372.dtsi" +#include +#include +#include + + +/ { + compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43"; + fragment@0 { + target-path = "/ocp@44000000/interconnect@48000000/segment@0/target-module@2a000/i2c@0"; + __overlay__ { + gpiom1: gpio@19 { + compatible = "nxp,pca9557"; + gpio-controller; + #gpio-cells = <2>; + reg = <0x19>; + interrupt-parent = <&gpio1>; + interrupts = <7 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + #interrupt-cells=<2>; + gpio-line-names = "", "", "modesel_0", "modesel_1", "termination_en", "RTS_override", "gpio_exp_led", ""; + }; /*gpio@20*/ + }; /*overlay*/ + }; /*fragment@0*/ + + fragement@1 { + target-path = "/"; + __overlay__ { + leds-exp { + compatible = "gpio-leds"; + led-gpio { + gpios = <&gpiom1 6 GPIO_ACTIVE_LOW>; + default-state = "off"; + }; /*led-gpio*/ + }; /*leds-exp*/ + }; /*overlay*/ + }; /*fragement@1*/ +}; -- cgit v1.2.3