arm64: dts: marvell: Add I2C definitions for the Armada 3700
authorRomain Perier <romain.perier@free-electrons.com>
Thu, 1 Dec 2016 11:04:39 +0000 (12:04 +0100)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Tue, 3 Jan 2017 15:20:12 +0000 (16:20 +0100)
The Armada 3700 has two i2c bus interface units, this commit adds the
definitions of the corresponding device nodes. It also enables the node
on the development board for this SoC.

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm64/boot/dts/marvell/armada-3720-db.dts
arch/arm64/boot/dts/marvell/armada-37xx.dtsi

index 0c236d8306fc81d2e95192bf4eeca6e7063262e2..935d37f82ce8e1b956d53471707b604c78cc6232 100644 (file)
        };
 };
 
+&i2c0 {
+       status = "okay";
+};
+
 /* CON3 */
 &sata {
        status = "okay";
index 248bd07cf5f1be071503aeba03a278c963508869..926a4024c3dd9cd36fafbc5b57d6dc440063d800 100644 (file)
                                status = "disabled";
                        };
 
+                       i2c0: i2c@11000 {
+                               compatible = "marvell,armada-3700-i2c";
+                               reg = <0x11000 0x24>;
+                               clocks = <&nb_periph_clk 10>;
+                               interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
+                               mrvl,i2c-fast-mode;
+                               status = "disabled";
+                       };
+
+                       i2c1: i2c@11080 {
+                               compatible = "marvell,armada-3700-i2c";
+                               reg = <0x11080 0x24>;
+                               clocks = <&nb_periph_clk 9>;
+                               interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
+                               mrvl,i2c-fast-mode;
+                               status = "disabled";
+                       };
+
                        uart0: serial@12000 {
                                compatible = "marvell,armada-3700-uart";
                                reg = <0x12000 0x400>;