ARM: dts: lpc4337-ciaa: add i2c0 and devices
authorAriel D'Alessandro <ariel@vanguardiasur.com.ar>
Mon, 23 Nov 2015 12:37:05 +0000 (09:37 -0300)
committerJoachim Eastwood <manabian@gmail.com>
Mon, 14 Dec 2015 22:13:06 +0000 (23:13 +0100)
Add I2C0 and two I2C EEPROM devices on the CIAA-NXP board:

24AA1025 EEPROM, 1Mbit: it is accessed as two 512Kbit EEPROMs.
24AA025E48 EEPROM, 2kbit.

Signed-off-by: Ariel D'Alessandro <ariel@vanguardiasur.com.ar>
Signed-off-by: Joachim Eastwood <manabian@gmail.com>
arch/arm/boot/dts/lpc4337-ciaa.dts

index f126b713b175f5ca943e75e95af95c9c9493d6c4..5cfadb06c8df2f8c0be10c47dddf0d50ff2e894f 100644 (file)
                };
        };
 
+       i2c0_pins: i2c0-pins {
+               i2c0_pins_cfg {
+                       pins = "i2c0_scl", "i2c0_sda";
+                       function = "i2c0";
+                       input-enable;
+               };
+       };
+
        ssp_pins: ssp-pins {
                ssp1_cs {
                        pins = "p6_7";
        clock-frequency = <50000000>;
 };
 
+&i2c0 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c0_pins>;
+       clock-frequency = <400000>;
+
+       eeprom@50 {
+               compatible = "microchip,24c512";
+               reg = <0x50>;
+       };
+
+       eeprom@51 {
+               compatible = "microchip,24c02";
+               reg = <0x51>;
+       };
+
+       eeprom@54 {
+               compatible = "microchip,24c512";
+               reg = <0x54>;
+       };
+};
+
 &mac {
        status = "okay";
        phy-mode = "rmii";
This page took 0.02635 seconds and 5 git commands to generate.