arm64: dts: marvell: add UART muxing on Armada 7K/8K
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 30 Aug 2017 10:16:06 +0000 (12:16 +0200)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Tue, 19 Sep 2017 13:50:19 +0000 (15:50 +0200)
This commit adds the relevant details in the Armada 7K/8K Device Tree
to properly mux the UART used for the serial console. Since there is
basically only one possible muxing for the UART0 on the AP, the muxing
configuration is described in armada-ap806.dtsi, and selected from the
individual boards (other boards could be using a different UART).

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm64/boot/dts/marvell/armada-7040-db.dts
arch/arm64/boot/dts/marvell/armada-8040-db.dts
arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
arch/arm64/boot/dts/marvell/armada-ap806.dtsi

index 9c3bdf8..64a8e02 100644 (file)
 
 &uart0 {
        status = "okay";
+       pinctrl-0 = <&uart0_pins>;
+       pinctrl-names = "default";
 };
 
 
index 0d7b2ae..2a9b68e 100644 (file)
 /* Accessible over the mini-USB CON9 connector on the main board */
 &uart0 {
        status = "okay";
+       pinctrl-0 = <&uart0_pins>;
+       pinctrl-names = "default";
 };
 
 
index acf5c7d..e7a7cbe 100644 (file)
 
 &uart0 {
        status = "okay";
+       pinctrl-0 = <&uart0_pins>;
+       pinctrl-names = "default";
 };
 
 &ap_sdhci0 {
index 4d36071..1eb51e0 100644 (file)
 
                                ap_pinctrl: pinctrl {
                                        compatible = "marvell,ap806-pinctrl";
+
+                                       uart0_pins: uart0-pins {
+                                               marvell,pins = "mpp11", "mpp19";
+                                               marvell,function = "uart0";
+                                       };
                                };
 
                                ap_gpio: gpio {