]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: kirkwood: set default pinctrl for UART0/1
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Wed, 30 Apr 2014 12:56:36 +0000 (14:56 +0200)
committerJason Cooper <jason@lakedaemon.net>
Mon, 5 May 2014 00:52:45 +0000 (00:52 +0000)
Most boards use the default UART0/1 pinctrl setting without RTS/CTS.
Add the pinctrl setting to the toplevel SoC UART nodes and put a note
in front of the corresponding pinctrl node to overwrite the setting
on board level. Currently, both boards using a different UART pinctrl
setting (Openblocks A6, A7) already overwrite the pinctrl node.

While at it, also fix up some status = "ok" to "okay" and again
whitespace issues on mplcec4 uart nodes.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lkml.kernel.org/r/1398862602-29595-10-git-send-email-sebastian.hesselbarth@gmail.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
17 files changed:
arch/arm/boot/dts/kirkwood-b3.dts
arch/arm/boot/dts/kirkwood-cloudbox.dts
arch/arm/boot/dts/kirkwood-db.dtsi
arch/arm/boot/dts/kirkwood-dns320.dts
arch/arm/boot/dts/kirkwood-laplug.dts
arch/arm/boot/dts/kirkwood-mplcec4.dts
arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts
arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts
arch/arm/boot/dts/kirkwood-netgear_readynas_nv+_v2.dts
arch/arm/boot/dts/kirkwood-ns2-common.dtsi
arch/arm/boot/dts/kirkwood-openblocks_a6.dts
arch/arm/boot/dts/kirkwood-openblocks_a7.dts
arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi
arch/arm/boot/dts/kirkwood-synology.dtsi
arch/arm/boot/dts/kirkwood-topkick.dts
arch/arm/boot/dts/kirkwood-ts219.dtsi
arch/arm/boot/dts/kirkwood.dtsi

index c723ce7ad1b84ed06752c07a9788187b607d594d..38972b2210892f81633e6586152456b2b5e624b1 100644 (file)
                         * UART0_TX = Testpoint 66
                         * See the Excito Wiki for more details.
                         */
-                       pinctrl-0 = <&pmx_uart0>;
-                       pinctrl-names = "default";
                        status = "okay";
                };
 
index 3f30475fea11ab85590c925ee1e9a41665ac5c8a..1ac6bd9f54de97e695aea201484d58284b155a9f 100644 (file)
@@ -26,8 +26,6 @@
                };
 
                serial@12000 {
-                       pinctrl-0 = <&pmx_uart0>;
-                       pinctrl-names = "default";
                        status = "okay";
                };
 
index 9b62f78b516be652312e36311de4d8681c7863b6..2790f46d87e075c8c55d64783888b1acb4fb12e6 100644 (file)
@@ -34,9 +34,7 @@
                };
 
                serial@12000 {
-                       pinctrl-0 = <&pmx_uart0>;
-                       pinctrl-names = "default";
-                       status = "ok";
+                       status = "okay";
                };
 
                sata@80000 {
index 3210daeb264c5cc4ae914e82148b5bd4171fd114..d85ef0a91b5019d005dbbd199072aff4e90b14aa 100644 (file)
@@ -52,8 +52,6 @@
                };
 
                serial@12100 {
-                       pinctrl-0 = <&pmx_uart1>;
-                       pinctrl-names = "default";
                        status = "okay";
                };
        };
index 4f7741184f981ca2e297383d1ffccff9d7c19508..4c91fbb084c59f1174da52d6e5b5991dc88cabce 100644 (file)
@@ -38,8 +38,6 @@
 
        ocp@f1000000 {
                serial@12000 {
-                       pinctrl-0 = <&pmx_uart0>;
-                       pinctrl-names = "default";
                        status = "okay";
                };
 
index 414024c578e8a6c23a6f20e4cdbc6b2856e44889..79796c8b9c4f48e45da0258c46c6ff9a30a5cb2e 100644 (file)
 
                 };
 
-                serial@12000 {
-                        status = "ok";
-                        pinctrl-0 = <&pmx_uart0>;
-                        pinctrl-names = "default";
-                };
+               serial@12000 {
+                       status = "okay";
+               };
 
                rtc@10300 {
                        status = "disabled";
index 2f6c9988ed7d35cc5a9391ddbb558a8a392d209f..934f6b8906e323f21d07b440fed797c03b639ceb 100644 (file)
@@ -65,9 +65,7 @@
                };
 
                serial@12000 {
-                       pinctrl-0 = <&pmx_uart0>;
-                       pinctrl-names = "default";
-                       status = "ok";
+                       status = "okay";
                };
 
                ehci@50000 {
index c4741699605c2946fd1c8097a0275b1e585be579..fd733c63bc27da55aadb88b435fe8f2912aca8ad 100644 (file)
                };
 
                serial@12000 {
-                       pinctrl-0 = <&pmx_uart0>;
-                       pinctrl-names = "default";
                        status = "okay";
                };
 
index 8437f3e3b8d767bbe4d47f32fcd4986660bca903..b514d643fb6c5413abd3ad1c50bfeffe9d905a33 100644 (file)
                };
 
                serial@12000 {
-                       pinctrl-0 = <&pmx_uart0>;
-                       pinctrl-names = "default";
                        status = "okay";
                };
 
index 46eb8f6b62436fbf298b4f6a9a94c290f075cdda..696b208b676f0612a8c554b55b5f13269d69d94d 100644 (file)
@@ -20,8 +20,6 @@
                };
 
                serial@12000 {
-                       pinctrl-0 = <&pmx_uart0>;
-                       pinctrl-names = "default";
                        status = "okay";
                };
 
index fd1c8b535e2864e16221688fd0218c97dbb5d9a5..1e056b3b1817d094f3f62e2b04020b01c011ac3d 100644 (file)
 
        ocp@f1000000 {
                serial@12000 {
-                       status = "ok";
-                       pinctrl-0 = <&pmx_uart0>;
-                       pinctrl-names = "default";
+                       status = "okay";
                };
 
                serial@12100 {
-                       status = "ok";
-                       pinctrl-0 = <&pmx_uart1>;
-                       pinctrl-names = "default";
+                       status = "okay";
                };
 
                sata@80000 {
index 622a3ca12c2d758ef2917f020e64e689a40973d3..07f6bf6aba9163ac20a20f99560df7cf600a248b 100644 (file)
 
        ocp@f1000000 {
                serial@12000 {
-                       status = "ok";
-                       pinctrl-0 = <&pmx_uart0>;
-                       pinctrl-names = "default";
+                       status = "okay";
                };
 
                serial@12100 {
-                       status = "ok";
-                       pinctrl-0 = <&pmx_uart1>;
-                       pinctrl-names = "default";
+                       status = "okay";
                };
 
                sata@80000 {
index a015af4da9a2b7611f7c944db51908833dc3438e..e2c43aecc7b2d0d3687a4c338e1fbf1094e1c839 100644 (file)
@@ -45,8 +45,6 @@
                        };
                };
                serial@12000 {
-                       pinctrl-0 = <&pmx_uart0>;
-                       pinctrl-names = "default";
                        status = "okay";
                };
        };
index e137bd4e26fdaa699fb24844cf37b43a1bfd0f87..370af7f6931929c1b184715309a0cab617767c48 100644 (file)
 
                serial@12000 {
                        status = "okay";
-                       pinctrl-0 = <&pmx_uart0>;
-                       pinctrl-names = "default";
                };
 
                serial@12100 {
                        status = "okay";
-                       pinctrl-0 = <&pmx_uart1>;
-                       pinctrl-names = "default";
                };
 
                poweroff@12100 {
index 5bc57efbee9924467d894e84c318c5ee2a24377d..14b12189d464138229b96dd9d97b95ecb0bbdbb9 100644 (file)
@@ -86,9 +86,7 @@
                };
 
                serial@12000 {
-                       status = "ok";
-                       pinctrl-0 = <&pmx_uart0>;
-                       pinctrl-names = "default";
+                       status = "okay";
                };
 
                sata@80000 {
index 414d2246b37c9c43941e473e61e1412816947c41..21cb9aeb245518a3099141acdaa7928e75550e8a 100644 (file)
                };
                serial@12000 {
                        status = "okay";
-                       pinctrl-0 = <&pmx_uart0>;
-                       pinctrl-names = "default";
                };
                serial@12100 {
                        status = "okay";
-                       pinctrl-0 = <&pmx_uart1>;
-                       pinctrl-names = "default";
                };
                poweroff@12100 {
                        compatible = "qnap,power-off";
index fff28b71b474f587fe82887e912f24a845b827f5..f92c8c4e3908d3aab77fbb3263372adc14f53260 100644 (file)
                                marvell,function = "twsi0";
                        };
 
+                       /*
+                        * Default UART pinctrl setting without RTS/CTS,
+                        * overwrite marvell,pins on board level if required.
+                        */
                        pmx_uart0: pmx-uart0 {
                                marvell,pins = "mpp10", "mpp11";
                                marvell,function = "uart0";
                        reg-shift = <2>;
                        interrupts = <33>;
                        clocks = <&gate_clk 7>;
+                       pinctrl-0 = <&pmx_uart0>;
+                       pinctrl-names = "default";
                        status = "disabled";
                };
 
                        reg-shift = <2>;
                        interrupts = <34>;
                        clocks = <&gate_clk 7>;
+                       pinctrl-0 = <&pmx_uart1>;
+                       pinctrl-names = "default";
                        status = "disabled";
                };