ARM: dts: kirkwood: lsxl: fix serial line
authorMichael Walle <michael@walle.cc>
Tue, 16 Aug 2022 00:10:24 +0000 (02:10 +0200)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Fri, 2 Sep 2022 14:13:41 +0000 (16:13 +0200)
Commit 327e15428977 ("ARM: dts: kirkwood: consolidate common pinctrl
settings") unknowingly broke the serial output on this board. Before
this commit, the pinmux was still configured by the bootloader and the
kernel didn't reconfigured it again. This was an oversight by the
initial board support where the pinmux for the serial line was never
configured by the kernel. But with this commit, the serial line will be
reconfigured to the wrong pins. This is especially confusing, because
the output still works, but the input doesn't. Presumingly, the input is
reconfigured to MPP10, but the output is connected to both MPP11 and
MPP5.

Override the pinmux in the board device tree.

Fixes: 327e15428977 ("ARM: dts: kirkwood: consolidate common pinctrl settings")
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm/boot/dts/kirkwood-lsxl.dtsi

index 7b151ac..321a40a 100644 (file)
 
        ocp@f1000000 {
                pinctrl: pin-controller@10000 {
+                       /* Non-default UART pins */
+                       pmx_uart0: pmx-uart0 {
+                               marvell,pins = "mpp4", "mpp5";
+                       };
+
                        pmx_power_hdd: pmx-power-hdd {
                                marvell,pins = "mpp10";
                                marvell,function = "gpo";