[PATCH 06/23] arm: dts: k3-am642-sk: Add main_i2c0 and eeprom

Nishanth Menon nm at ti.com
Fri Apr 14 09:57:09 CEST 2023


Add missing main_i2c0 node and eeprom property.

This is a pending upstream kernel updates as of v6.3-rc6.

Signed-off-by: Nishanth Menon <nm at ti.com>
---
Sent to kernel.org https://lore.kernel.org/linux-devicetree/20230414073328.381336-1-nm@ti.com/

 arch/arm/dts/k3-am642-sk.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/dts/k3-am642-sk.dts b/arch/arm/dts/k3-am642-sk.dts
index a0431ad374a5..5d16aa0d7596 100644
--- a/arch/arm/dts/k3-am642-sk.dts
+++ b/arch/arm/dts/k3-am642-sk.dts
@@ -262,6 +262,14 @@
 		>;
 	};
 
+	/* XXX: Kernel-Upstream: TODO: Upstream */
+	main_i2c0_pins_default: main-i2c0-pins-default {
+		pinctrl-single,pins = <
+			AM64X_IOPAD(0x0260, PIN_INPUT_PULLUP, 0) /* (A18) I2C0_SCL */
+			AM64X_IOPAD(0x0264, PIN_INPUT_PULLUP, 0) /* (B18) I2C0_SDA */
+		>;
+	};
+
 	main_i2c1_pins_default: main-i2c1-pins-default {
 		pinctrl-single,pins = <
 			AM64X_IOPAD(0x0268, PIN_INPUT_PULLUP, 0) /* (C18) I2C1_SCL */
@@ -364,6 +372,19 @@
 	pinctrl-0 = <&main_uart1_pins_default>;
 };
 
+/* XXX: Kernel-Upstream: TODO: Upstream */
+&main_i2c0 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&main_i2c0_pins_default>;
+	clock-frequency = <400000>;
+
+	eeprom at 51 {
+		compatible = "atmel,24c512";
+		reg = <0x51>;
+	};
+};
+
 &main_i2c1 {
 	status = "okay";
 	pinctrl-names = "default";
-- 
2.40.0



More information about the U-Boot mailing list