diff options
author | Harsh Sharma <harsh.sharma@multitech.com> | 2022-08-15 13:39:49 -0500 |
---|---|---|
committer | Harsh Sharma <harsh.sharma@multitech.com> | 2022-08-15 13:39:49 -0500 |
commit | 9d1754d92ced9f771cd0fcf00a128ca58e388596 (patch) | |
tree | 213044b1040ec18e0838712d1a6c03d6f3083bf9 | |
parent | 4c4ebeb0f5c87380cb85a4ef1a0003a547cebbc7 (diff) | |
parent | 9117ac9a809a7212d4b186d859da45eb95bee569 (diff) | |
download | mt-dt-overlay-9d1754d92ced9f771cd0fcf00a128ca58e388596.tar.gz mt-dt-overlay-9d1754d92ced9f771cd0fcf00a128ca58e388596.tar.bz2 mt-dt-overlay-9d1754d92ced9f771cd0fcf00a128ca58e388596.zip |
Merge branch 'vp/mtcpmhs/hardware_v_0_2' into 'master'
MTX-4571 Add dt overlay for MTCDT3AC rev 0.1
See merge request !5
-rw-r--r-- | mtcpmhs/ap1-gpiob-0.0.dtso | 5 | ||||
-rw-r--r-- | mtcpmhs/ap1-lora-0.0.dtso | 5 | ||||
-rw-r--r-- | mtcpmhs/ap2-gpiob-0.0.dtso | 5 | ||||
-rw-r--r-- | mtcpmhs/ap2-lora-0.0.dtso | 5 | ||||
-rw-r--r-- | mtcpmhs/gpio-expander-0.0.dtso | 60 | ||||
-rw-r--r-- | mtcpmhs/gpio-expander-0.1.dtso | 60 |
6 files changed, 132 insertions, 8 deletions
diff --git a/mtcpmhs/ap1-gpiob-0.0.dtso b/mtcpmhs/ap1-gpiob-0.0.dtso index 0dac081..810c03b 100644 --- a/mtcpmhs/ap1-gpiob-0.0.dtso +++ b/mtcpmhs/ap1-gpiob-0.0.dtso @@ -1,12 +1,13 @@ /* - * DTS overlay for MTCPM 0.0 hardware version. + * DTS overlay for MTCDT3 0.0 hardware version. */ /dts-v1/; /* * Location(s): - * Put: MTCPM/0.0/gpiob/ap1-gpiob.dtbo + * Put: MTCDT3/0.0/gpiob/ap1-gpiob.dtbo + * Link: MTCDT3/0.1/gpiob/ap1-gpiob.dtbo */ #include "am4372.dtsi" diff --git a/mtcpmhs/ap1-lora-0.0.dtso b/mtcpmhs/ap1-lora-0.0.dtso index 3c4965c..22b6801 100644 --- a/mtcpmhs/ap1-lora-0.0.dtso +++ b/mtcpmhs/ap1-lora-0.0.dtso @@ -1,12 +1,13 @@ /* - * DTS overlay for MTCPM 0.0 hardware version. + * DTS overlay for MTCDT3 0.0 hardware version. */ /dts-v1/; /* * Location(s): - * Put: MTCPM/0.0/lora/ap1-lora.dtbo + * Put: MTCDT3/0.0/lora/ap1-lora.dtbo + * Link: MTCDT3/0.1/lora/ap1-lora.dtbo */ #include "am4372.dtsi" diff --git a/mtcpmhs/ap2-gpiob-0.0.dtso b/mtcpmhs/ap2-gpiob-0.0.dtso index 5d76ae2..a4a2d15 100644 --- a/mtcpmhs/ap2-gpiob-0.0.dtso +++ b/mtcpmhs/ap2-gpiob-0.0.dtso @@ -1,12 +1,13 @@ /* - * DTS overlay for MTCPM 0.0 hardware version. + * DTS overlay for MTCDT3 0.0 hardware version. */ /dts-v1/; /* * Location(s): - * Put: MTCPM/0.0/gpiob/ap2-gpiob.dtbo + * Put: MTCDT3/0.0/gpiob/ap2-gpiob.dtbo + * Link: MTCDT3/0.1/gpiob/ap2-gpiob.dtbo */ #include "am4372.dtsi" diff --git a/mtcpmhs/ap2-lora-0.0.dtso b/mtcpmhs/ap2-lora-0.0.dtso index fc5604f..b27ab5a 100644 --- a/mtcpmhs/ap2-lora-0.0.dtso +++ b/mtcpmhs/ap2-lora-0.0.dtso @@ -1,12 +1,13 @@ /* - * DTS overlay for MTCPM 0.0 hardware version. + * DTS overlay for MTCDT3 0.0 hardware version. */ /dts-v1/; /* * Location(s): - * Put: MTCPM/0.0/lora/ap2-lora.dtbo + * Put: MTCDT3/0.0/lora/ap2-lora.dtbo + * Link: MTCDT3/0.1/lora/ap2-lora.dtbo */ #include "am4372.dtsi" diff --git a/mtcpmhs/gpio-expander-0.0.dtso b/mtcpmhs/gpio-expander-0.0.dtso new file mode 100644 index 0000000..388deba --- /dev/null +++ b/mtcpmhs/gpio-expander-0.0.dtso @@ -0,0 +1,60 @@ +/* + * DTS overlay for MTCDT3 0.0 hardware version. + */ + +/dts-v1/; +/plugin/; + +/* + * Location(s): + * Put: MTCDT3/0.0/gpio-expander.dtbo + */ + +#include "am4372.dtsi" +#include <dt-bindings/pinctrl/am43xx.h> +#include <dt-bindings/pwm/pwm.h> +#include <dt-bindings/gpio/gpio.h> + + +/ { + 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*/ +}; diff --git a/mtcpmhs/gpio-expander-0.1.dtso b/mtcpmhs/gpio-expander-0.1.dtso new file mode 100644 index 0000000..ba79b0c --- /dev/null +++ b/mtcpmhs/gpio-expander-0.1.dtso @@ -0,0 +1,60 @@ +/* + * DTS overlay for MTCDT3 0.1 hardware version. + */ + +/dts-v1/; +/plugin/; + +/* + * Location(s): + * Put: MTCDT3/0.1/gpio-expander.dtbo + */ + +#include "am4372.dtsi" +#include <dt-bindings/pinctrl/am43xx.h> +#include <dt-bindings/pwm/pwm.h> +#include <dt-bindings/gpio/gpio.h> + + +/ { + 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 = "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>; + 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*/ +}; |