arm64: dts: ti: k3-am642-sk: Enable main_i2c0 and eeprom
authorNishanth Menon <nm@ti.com>
Fri, 14 Apr 2023 07:33:21 +0000 (02:33 -0500)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 8 May 2023 15:12:46 +0000 (20:42 +0530)
Enable AT24C512C on the base board.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20230414073328.381336-4-nm@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am642-sk.dts

index 9a65f9b1c9ab6c6f6727814e856ecd34449ff433..3e16942c0addef10f295ab7f0d9d7644b2d3ef6e 100644 (file)
                >;
        };
 
+       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 */
        status = "reserved";
 };
 
+&main_i2c0 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&main_i2c0_pins_default>;
+       clock-frequency = <400000>;
+
+       eeprom@51 {
+               compatible = "atmel,24c512";
+               reg = <0x51>;
+       };
+};
+
 &main_i2c1 {
        status = "okay";
        pinctrl-names = "default";