From 7f53c62e68d5dd135a0bf41a06e83ab0669b5a93 Mon Sep 17 00:00:00 2001 From: Vyacheslav Pedash Date: Tue, 2 Aug 2022 19:04:15 +0300 Subject: MTX-4571 Move HW v 0.1 GPIO expanders to the device tree overlay --- mtcpmhs/gpio-expander-0.1.dtso | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 mtcpmhs/gpio-expander-0.1.dtso (limited to 'mtcpmhs/gpio-expander-0.1.dtso') diff --git a/mtcpmhs/gpio-expander-0.1.dtso b/mtcpmhs/gpio-expander-0.1.dtso new file mode 100644 index 0000000..96b5fef --- /dev/null +++ b/mtcpmhs/gpio-expander-0.1.dtso @@ -0,0 +1,60 @@ +/* + * DTS overlay for MTCPM 0.1 hardware version. + */ + +/dts-v1/; +/plugin/; + +/* + * Location(s): + * Put: MTCPM/0.0/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@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 { + compatible = "microchip,mcp23008"; + gpio-controller; + #gpio-cells = <2>; + reg = <0x21>; + 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 = <&gpiom2 6 GPIO_ACTIVE_LOW>; + default-state = "off"; + }; /*led-gpio*/ + }; /*leds-exp*/ + }; /*overlay*/ + }; /*fragement@1*/ +}; -- cgit v1.2.3 From d40bfd24760f076b1d1cf678252e633dc2eb4096 Mon Sep 17 00:00:00 2001 From: Vyacheslav Pedash Date: Wed, 3 Aug 2022 14:29:23 +0300 Subject: MTX-4571 Add DT overlay for the MTCDT3AC HW 0.2 GPIO expanders --- mtcpmhs/gpio-expander-0.1.dtso | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'mtcpmhs/gpio-expander-0.1.dtso') diff --git a/mtcpmhs/gpio-expander-0.1.dtso b/mtcpmhs/gpio-expander-0.1.dtso index 96b5fef..d512df4 100644 --- a/mtcpmhs/gpio-expander-0.1.dtso +++ b/mtcpmhs/gpio-expander-0.1.dtso @@ -22,25 +22,25 @@ 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>; + 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 { - compatible = "microchip,mcp23008"; - gpio-controller; - #gpio-cells = <2>; - reg = <0x21>; - 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", ""; + compatible = "microchip,mcp23008"; + gpio-controller; + #gpio-cells = <2>; + reg = <0x21>; + 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*/ -- cgit v1.2.3 From 9117ac9a809a7212d4b186d859da45eb95bee569 Mon Sep 17 00:00:00 2001 From: Vyacheslav Pedash Date: Thu, 11 Aug 2022 20:39:39 +0300 Subject: MTX-4571 MTCDT3-AC: Put overlays to MTCDT3 directory. Renumber new rev to 0.1 --- mtcpmhs/gpio-expander-0.1.dtso | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mtcpmhs/gpio-expander-0.1.dtso') diff --git a/mtcpmhs/gpio-expander-0.1.dtso b/mtcpmhs/gpio-expander-0.1.dtso index d512df4..ba79b0c 100644 --- a/mtcpmhs/gpio-expander-0.1.dtso +++ b/mtcpmhs/gpio-expander-0.1.dtso @@ -1,5 +1,5 @@ /* - * DTS overlay for MTCPM 0.1 hardware version. + * DTS overlay for MTCDT3 0.1 hardware version. */ /dts-v1/; @@ -7,7 +7,7 @@ /* * Location(s): - * Put: MTCPM/0.0/gpio-expander.dtbo + * Put: MTCDT3/0.1/gpio-expander.dtbo */ #include "am4372.dtsi" @@ -22,7 +22,7 @@ target-path = "/ocp@44000000/interconnect@48000000/segment@0/target-module@2a000/i2c@0"; __overlay__ { gpiom1: gpio@20 { - compatible = "microchip,mcp23008"; + compatible = "nxp,pca9557"; gpio-controller; #gpio-cells = <2>; reg = <0x20>; @@ -32,7 +32,7 @@ #interrupt-cells=<2>; }; /*gpio@20*/ gpiom2: gpio@21 { - compatible = "microchip,mcp23008"; + compatible = "nxp,pca9557"; gpio-controller; #gpio-cells = <2>; reg = <0x21>; -- cgit v1.2.3