From d94f6765048e658bce10acfd60ded0670f6243be Mon Sep 17 00:00:00 2001 From: Vyacheslav Pedash Date: Wed, 21 Sep 2022 14:20:40 +0300 Subject: MTX-4638 Rename MTCDT3 -> MTCDT3AC and HW v. 0.2 - > v. 0.1 --- mtcpmhs/gpio-expander-0.1.dtso | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 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..0e2f59d --- /dev/null +++ b/mtcpmhs/gpio-expander-0.1.dtso @@ -0,0 +1,50 @@ +/* + * DTS overlay for MTCDT3 0.2 hardware version. + */ + +/dts-v1/; +/plugin/; + +/* + * Location(s): + * Put: MTCDT3AC/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*/ +}; -- cgit v1.2.3