ARM: mvebu: Add support for I2C controllers in Armada 370/XP
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Tue, 30 Oct 2012 10:41:23 +0000 (19:41 +0900)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 21 Nov 2012 22:17:34 +0000 (23:17 +0100)
The Armada 370 and Armada XP have the same I2C controllers as previous
Marvell SoCs, so the existing mv64xxx-i2c driver works fine.

[Thomas Petazzoni: updated on top of other Armada 370/XP changes,
rephrased the commit log].
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
arch/arm/boot/dts/armada-370-xp.dtsi

index 4ff10815127862f8492a5e6112ff369e4a9844a6..70c35f8ccf90b1dbaf979e48deeb385829c8e985 100644 (file)
                                clocks = <&gateclk 3>;
                                status = "disabled";
                };
+
+               i2c0: i2c@d0011000 {
+                       compatible = "marvell,mv64xxx-i2c";
+                       reg = <0xd0011000 0x20>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       interrupts = <31>;
+                       timeout-ms = <1000>;
+                       clocks = <&coreclk 0>;
+                       status = "disabled";
+               };
+
+               i2c1: i2c@d0011100 {
+                       compatible = "marvell,mv64xxx-i2c";
+                       reg = <0xd0011100 0x20>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       interrupts = <32>;
+                       timeout-ms = <1000>;
+                       clocks = <&coreclk 0>;
+                       status = "disabled";
+               };
        };
 };