arm: dts: k3-j721e-common-proc-board: Enable I2C expander for SPL
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 27 Jan 2020 17:52:15 +0000 (23:22 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 4 Feb 2020 03:37:24 +0000 (09:07 +0530)
IO expanders are required to power cycle SD card. So enable the same

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi
arch/arm/dts/k3-j721e-r5-common-proc-board.dts

index 7ea4d8de367e07007885d3ea4fd11fa476adde27..a3a81932168e76c9a01d4c7c9fe99b6a218ebd45 100644 (file)
 &wkup_i2c0 {
        u-boot,dm-spl;
 };
+
+&main_i2c0 {
+       u-boot,dm-spl;
+};
+
+&main_i2c0_pins_default {
+       u-boot,dm-spl;
+};
+
+&exp2 {
+       u-boot,dm-spl;
+};
index 585cc839632b33971d0d6468293bb95024ec0f70..1f14d71438b4ff800a75f521e35fe446787fde14 100644 (file)
                        J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */
                >;
        };
+
+       main_i2c0_pins_default: main-i2c0-pins-default {
+               pinctrl-single,pins = <
+                       J721E_IOPAD(0x220, PIN_INPUT_PULLUP, 0) /* (AC5) I2C0_SCL */
+                       J721E_IOPAD(0x224, PIN_INPUT_PULLUP, 0) /* (AA5) I2C0_SDA */
+               >;
+       };
 };
 
 &wkup_uart0 {
        ti,vbus-divider;
 };
 
+&main_i2c0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&main_i2c0_pins_default>;
+       clock-frequency = <400000>;
+
+       exp1: gpio@20 {
+               compatible = "ti,tca6416";
+               reg = <0x20>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       exp2: gpio@22 {
+               compatible = "ti,tca6424";
+               reg = <0x22>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+};
+
 #include "k3-j721e-common-proc-board-u-boot.dtsi"