[PATCH 5/6] arm: dts: k3-am642: Add I2C GPIO Expander

Roger Quadros rogerq at kernel.org
Tue Jul 4 20:10:07 CEST 2023


The I2C GPIO expander at address 0x38 is used for card detect GPIOs.

Signed-off-by: Roger Quadros <rogerq at kernel.org>
---
 arch/arm/dts/k3-am642-evm-u-boot.dtsi | 4 ++++
 arch/arm/dts/k3-am642-evm.dts         | 8 ++++++++
 2 files changed, 12 insertions(+)

diff --git a/arch/arm/dts/k3-am642-evm-u-boot.dtsi b/arch/arm/dts/k3-am642-evm-u-boot.dtsi
index 80c04d0117..f274d11697 100644
--- a/arch/arm/dts/k3-am642-evm-u-boot.dtsi
+++ b/arch/arm/dts/k3-am642-evm-u-boot.dtsi
@@ -40,6 +40,10 @@
 	bootph-pre-ram;
 };
 
+&tca9554 {
+	bootph-pre-ram;
+};
+
 &main_uart0 {
 	bootph-pre-ram;
 };
diff --git a/arch/arm/dts/k3-am642-evm.dts b/arch/arm/dts/k3-am642-evm.dts
index 529eb81538..bc7e6f29b0 100644
--- a/arch/arm/dts/k3-am642-evm.dts
+++ b/arch/arm/dts/k3-am642-evm.dts
@@ -353,6 +353,14 @@
 		compatible = "atmel,24c1024";
 		reg = <0x50>;
 	};
+
+	tca9554: gpio at 38 {
+		/* TCA9554 */
+		compatible = "nxp,pca9554";
+		reg = <0x38>;
+		gpio-controller;
+		#gpio-cells = <2>;
+	 };
 };
 
 &main_i2c1 {
-- 
2.34.1



More information about the U-Boot mailing list