ARM: sun9i: optimus: Set UART0 muxing
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 28 Oct 2014 21:41:29 +0000 (22:41 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 23 Nov 2014 15:53:02 +0000 (16:53 +0100)
Enable the UART0 muxing, as set up by the bootloader.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/sun9i-a80-optimus.dts
arch/arm/boot/dts/sun9i-a80.dtsi

index 3a70fdf..5d9bc80 100644 (file)
@@ -60,6 +60,8 @@
 
        soc {
                uart0: serial@07000000 {
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&uart0_pins_a>;
                        status = "okay";
                };
        };
index fe9832a..da680cf 100644 (file)
                        #interrupt-cells = <2>;
                        #size-cells = <0>;
                        #gpio-cells = <3>;
+
+                       uart0_pins_a: uart0@0 {
+                               allwinner,pins = "PH12", "PH13";
+                               allwinner,function = "uart0";
+                               allwinner,drive = <0>;
+                               allwinner,pull = <0>;
+                       };
                };
 
                uart0: serial@07000000 {