Card detect GPIOs are on I2C GPIO Expander on I2C0.
Enable I2C0 and GPIO Expander for r5-evm.

Signed-off-by: Roger Quadros <rog...@kernel.org>
---
 arch/arm/dts/k3-am642-r5-evm.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/dts/k3-am642-r5-evm.dts b/arch/arm/dts/k3-am642-r5-evm.dts
index e870492a69..01b4a61852 100644
--- a/arch/arm/dts/k3-am642-r5-evm.dts
+++ b/arch/arm/dts/k3-am642-r5-evm.dts
@@ -209,6 +209,13 @@
                        AM64X_IOPAD(0x0144, PIN_OUTPUT, 4) /* (Y11) 
PRG1_PRU1_GPO15.RGMII2_TX_CTL */
                >;
        };
+
+       main_i2c0_pins_default: main-i2c0-default-pins {
+               pinctrl-single,pins = <
+                       AM64X_IOPAD(0x0260, PIN_INPUT_PULLUP, 0) /* (A18) 
I2C0_SCL */
+                       AM64X_IOPAD(0x0264, PIN_INPUT_PULLUP, 0) /* (B18) 
I2C0_SDA */
+               >;
+       };
 };
 
 &dmsc {
@@ -267,6 +274,18 @@
 /* EEPROM might be read before SYSFW is available */
 &main_i2c0 {
        /delete-property/ power-domains;
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&main_i2c0_pins_default>;
+       clock-frequency = <400000>;
+
+       tca9554: gpio@38 {
+                /* TCA9554 */
+                compatible = "nxp,pca9554";
+                reg = <0x38>;
+                gpio-controller;
+               #gpio-cells = <2>;
+        };
 };
 
 &usbss0 {
-- 
2.34.1

Reply via email to