]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: sun5i: Add UART2 pin group
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 5 Feb 2017 16:55:01 +0000 (17:55 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 6 Mar 2017 06:40:36 +0000 (07:40 +0100)
There's one UART2 pin group that can be used across all sun5i SoCs.
However, the A10s already has one pin group for that controller.

Change the index of the one in the A10s DTSI, and add the common one to
sun5i.dtsi

Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts
arch/arm/boot/dts/sun5i-a10s.dtsi
arch/arm/boot/dts/sun5i.dtsi

index 9fbeb584abf5c2858a7937b62f38d8d6c8d00e84..baee64d61f6d678b5fd2055b009b6c7f5773d90b 100644 (file)
 
 &uart2 {
        pinctrl-names = "default";
-       pinctrl-0 = <&uart2_pins_a>;
+       pinctrl-0 = <&uart2_pins_b>;
        status = "okay";
 };
 
index 0c08b6173d9c16087cc7bf96f57def038edbaf86..5122d1179e59b436f101e680ede0d18c43956f5b 100644 (file)
                function = "uart0";
        };
 
-       uart2_pins_a: uart2@0 {
+       uart2_pins_b: uart2@1 {
                pins = "PC18", "PC19";
                function = "uart2";
        };
index a9574a6cd95c6d5fcb84c0e9c66bee5a3fc550ec..83da6366d0628ef4ae8c67b59b765fc92aa01f50 100644 (file)
                                function = "spi2";
                        };
 
+                       uart2_pins_a: uart2@0 {
+                               pins = "PD2", "PD3";
+                               function = "uart2";
+                       };
+
+                       uart2_cts_rts_pins_a: uart2-cts-rts@0 {
+                               pins = "PD4", "PD5";
+                               function = "uart2";
+                       };
+
                        uart3_pins_a: uart3@0 {
                                pins = "PG9", "PG10";
                                function = "uart3";