This patch defines common Armada 370 pinctrl settings for uart0 and
uart1 interfaces:

 uart0: MPP0-1 as default
 uart1: MPP41-42 as default

Note: this patch has the potential to break out-of-tree users w/o
specific pinctrl settings for their uart interfaces if the default
above does not match their config.

Suggested-by: Andrew Lunn <[email protected]>
Acked-by: Andrew Lunn <[email protected]>
Signed-off-by: Arnaud Ebalard <[email protected]>
---
 arch/arm/boot/dts/armada-370.dtsi | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/arch/arm/boot/dts/armada-370.dtsi 
b/arch/arm/boot/dts/armada-370.dtsi
index f1227c53e92d..fbd835a3c62c 100644
--- a/arch/arm/boot/dts/armada-370.dtsi
+++ b/arch/arm/boot/dts/armada-370.dtsi
@@ -121,6 +121,21 @@
                                reg = <0x11100 0x20>;
                        };
 
+                       /*
+                        * Default UART pinctrl setting without RTS/CTS, can
+                        * be overwritten on board level if a different
+                        * configuration is used.
+                        */
+                       uart0: serial@12000 {
+                               pinctrl-0 = <&uart0_pins>;
+                               pinctrl-names = "default";
+                       };
+
+                       uart1: serial@12100 {
+                               pinctrl-0 = <&uart1_pins>;
+                               pinctrl-names = "default";
+                       };
+
                        system-controller@18200 {
                                compatible = 
"marvell,armada-370-xp-system-controller";
                                reg = <0x18200 0x100>;
@@ -281,6 +296,16 @@
                marvell,function = "spi1";
        };
 
+       uart0_pins: uart0-pins {
+               marvell,pins = "mpp0", "mpp1";
+               marvell,function = "uart0";
+       };
+
+       uart1_pins: uart1-pins {
+               marvell,pins = "mpp41", "mpp42";
+               marvell,function = "uart1";
+       };
+
        sdio_pins1: sdio-pins1 {
                marvell,pins = "mpp9",  "mpp11", "mpp12",
                                "mpp13", "mpp14", "mpp15";
-- 
2.1.1


--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to