[PATCHv3 08/12] arm: mvebu: define and use common Armada XP UART2/3 pinctrl settings

Arnaud Ebalard arno at natisbad.org
Mon Nov 17 15:27:58 PST 2014


This patch defines common Armada XP pinctrl settings for uart2 and
uart3 interfaces (uart0 and uart1 rx/tx do not rely on MPP):

 uart2: MPP42-43 as default
 uart3: MPP44-45 as default

Suggested-by: Andrew Lunn <andrew at lunn.ch>
Signed-off-by: Arnaud Ebalard <arno at natisbad.org>
---
 arch/arm/boot/dts/armada-xp.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/armada-xp.dtsi b/arch/arm/boot/dts/armada-xp.dtsi
index 83bf32344a60..c7449f652fb5 100644
--- a/arch/arm/boot/dts/armada-xp.dtsi
+++ b/arch/arm/boot/dts/armada-xp.dtsi
@@ -48,6 +48,16 @@
 						       "mpp33", "mpp34", "mpp35";
 					marvell,function = "sd0";
 				};
+
+				uart2_pins: uart2-pins {
+					marvell,pins = "mpp42", "mpp43";
+					marvell,function = "uart2";
+				};
+
+				uart3_pins: uart3-pins {
+					marvell,pins = "mpp44", "mpp45";
+					marvell,function = "uart3";
+				};
 			};
 
 			i2c0: i2c at 11000 {
@@ -62,6 +72,8 @@
 
 			uart2: serial at 12200 {
 				compatible = "snps,dw-apb-uart";
+				pinctrl-0 = <&uart2_pins>;
+				pinctrl-names = "default";
 				reg = <0x12200 0x100>;
 				reg-shift = <2>;
 				interrupts = <43>;
@@ -72,6 +84,8 @@
 
 			uart3: serial at 12300 {
 				compatible = "snps,dw-apb-uart";
+				pinctrl-0 = <&uart3_pins>;
+				pinctrl-names = "default";
 				reg = <0x12300 0x100>;
 				reg-shift = <2>;
 				interrupts = <44>;
-- 
2.1.1





More information about the linux-arm-kernel mailing list