ARM: dts: keystone-k2g-evm: Add I2C EEPROM DT entry
authorMurali Karicheri <m-karicheri2@ti.com>
Mon, 9 Oct 2017 16:15:26 +0000 (09:15 -0700)
committerSantosh Shilimkar <ssantosh@kernel.org>
Tue, 10 Oct 2017 16:41:21 +0000 (09:41 -0700)
K2G EVM has an onboard I2C EEPROM connected to I2C0. This patch adds
the necessary DT entry for the AT24CM01 EEPROM.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>
arch/arm/boot/dts/keystone-k2g-evm.dts

index f462f1043531682f2c00dcc9f287dad5df8dd03e..a6ad5fcf130a03ca664dc44e9c510c42e2717353 100644 (file)
                        K2G_CORE_IOPAD(0x1110) (BUFFER_CLASS_B | PIN_PULLUP | MUX_MODE0)        /* mmc1_cmd.mmc1_cmd */
                >;
        };
+
+       i2c0_pins: pinmux_i2c0_pins {
+               pinctrl-single,pins = <
+                       K2G_CORE_IOPAD(0x137c) (BUFFER_CLASS_B | PIN_PULLUP | MUX_MODE0)        /* i2c0_scl.i2c0_scl */
+                       K2G_CORE_IOPAD(0x1380) (BUFFER_CLASS_B | PIN_PULLUP | MUX_MODE0)        /* i2c0_sda.i2c0_sda */
+               >;
+       };
+
 };
 
 &uart0 {
        memory-region = <&dsp_common_memory>;
        status = "okay";
 };
+
+&i2c0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c0_pins>;
+       status = "okay";
+
+       eeprom@50 {
+               compatible = "atmel,24c1024";
+               reg = <0x50>;
+       };
+};