ARM: sun4i: cubieboard: Enable the i2c controllers
authorEmilio López <emilio@elopez.com.ar>
Thu, 2 May 2013 12:37:46 +0000 (09:37 -0300)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sat, 15 Jun 2013 13:19:41 +0000 (15:19 +0200)
The Cubieboard makes use of the first two i2c controllers found on the
Allwinner A10; i2c-0 is used internally for the PMIC, while i2c-1
is exposed on the board headers. This patch enables them in the device
tree.

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Tomasz Figa <tomasz.figa@gmail.com>
arch/arm/boot/dts/sun4i-a10-cubieboard.dts

index b70fe0d..0e22a28 100644 (file)
                        pinctrl-0 = <&uart0_pins_a>;
                        status = "okay";
                };
+
+               i2c0: i2c@01c2ac00 {
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&i2c0_pins_a>;
+                       status = "okay";
+               };
+
+               i2c1: i2c@01c2b000 {
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&i2c1_pins_a>;
+                       status = "okay";
+               };
        };
 
        leds {