diff mbox

[1/3] ARM: mvebu: Add support I2C controller

Message ID 1351593685-19663-1-git-send-email-iwamatsu@nigauri.org (mailing list archive)
State New, archived
Headers show

Commit Message

Nobuhiro Iwamatsu Oct. 30, 2012, 10:41 a.m. UTC
The mvebu arch has the same I2C controller as mv64xxx-i2c.
This support mv64xxx-i2c on mvebu.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
---
 arch/arm/boot/dts/armada-370-xp.dtsi |   23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

Comments

Thomas Petazzoni Oct. 30, 2012, 10:48 a.m. UTC | #1
Dear Nobuhiro Iwamatsu,

On Tue, 30 Oct 2012 19:41:23 +0900, Nobuhiro Iwamatsu wrote:
> The mvebu arch has the same I2C controller as mv64xxx-i2c.
> This support mv64xxx-i2c on mvebu.
> 
> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

Thanks, looks good to me, but we have to wait for the Armada 370/XP
clock patch set to get merged before merging this.

I'll give it a test on the OpenBlocks hardware and report.

Best regards,

Thomas
diff mbox

Patch

diff --git a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi
index d0ea4a6..5da85c2 100644
--- a/arch/arm/boot/dts/armada-370-xp.dtsi
+++ b/arch/arm/boot/dts/armada-370-xp.dtsi
@@ -83,6 +83,29 @@ 
                                interrupts = <10>;
                                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";
+		};
 	};
 };