ARM: dts: sun9i: Enable i2c3 on A80 Optimus board
authorChen-Yu Tsai <wens@csie.org>
Fri, 31 Oct 2014 03:05:48 +0000 (11:05 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 23 Nov 2014 15:53:03 +0000 (16:53 +0100)
i2c3 is exposed on the GPIO extension header. Enable it so we can use it.

Also enable internal pull-ups on the pins, as they don't seem to have
external pull-up resistors.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun9i-a80-optimus.dts

index 5d9bc80..955436a 100644 (file)
        };
 
        soc {
+               pio: pinctrl@06000800 {
+                       i2c3_pins_a: i2c3@0 {
+                               /* Enable internal pull-up */
+                               allwinner,pull = <1>;
+                       };
+               };
+
                uart0: serial@07000000 {
                        pinctrl-names = "default";
                        pinctrl-0 = <&uart0_pins_a>;
                        status = "okay";
                };
+
+               i2c3: i2c@07003400 {
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&i2c3_pins_a>;
+                       status = "okay";
+               };
        };
 };