Skip to contentSkip to conversation

ARM: dts: bcm283x: Fix console path on RPi3

PATCH New Loic Poulain 2 participants 2 messages Sep 14, 2017 – Sep 17, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: bcm283x: Fix console path on RPi3

Contrary to other RPi devices, RPi3 uses uart0 to communicate with the BCM43438 bluetooth controller. uart1 is then used for the console. Today, the console configuration is inherited from the bcm283x dtsi (bootargs) which is not the correct one for the RPi3. This leads to routing issue and confuses the Bluetooth controller with unexpected data.

This patch introduces chosen/stdout path to configure console to uart0 on bcm283x family and overwrite it to uart1 in the RPi3 dts.

Create serial0/1 aliases referring to uart0 ant uart1 paths. Remove unneeded earlyprintk.

Fixes 4188ea2aeb6d ("ARM: bcm283x: Define UART pinmuxing on board level")
---
 arch/arm/boot/dts/bcm2837-rpi-3-b.dts | 5 +++++
 arch/arm/boot/dts/bcm283x.dtsi        | 7 ++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)
arch/arm/boot/dts/bcm2837-rpi-3-b.dts +5 -0
index 20725ca..f1c0811 100644
@@ -8,6 +8,11 @@
 	compatible = "raspberrypi,3-model-b", "brcm,bcm2837";
 	model = "Raspberry Pi 3 Model B";
 
+	chosen {
+		/* 8250 auxiliar UART instead of pl011 */
+		stdout-path = "serial1:115200n8";
+	};
+
 	memory {
 		reg = <0 0x40000000>;
 	};
arch/arm/boot/dts/bcm283x.dtsi +6 -1
index 431dcfc..013431e 100644
@@ -20,8 +20,13 @@
 	#address-cells = <1>;
 	#size-cells = <1>;
 
+	aliases {
+		serial0 = &uart0;
+		serial1 = &uart1;
+	};
+
 	chosen {
-		bootargs = "earlyprintk console=ttyAMA0";
+		stdout-path = "serial0:115200n8";
 	};
 
 	thermal-zones {
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 ARM: dts: bcm283x: Fix console path on RPi3

Hi Loic,

Quoted 44 lines

Loic Poulain <[email protected]> hat am 14. September 2017 um 22:48 geschrieben:

Contrary to other RPi devices, RPi3 uses uart0 to communicate with the BCM43438 bluetooth controller. uart1 is then used for the console. Today, the console configuration is inherited from the bcm283x dtsi (bootargs) which is not the correct one for the RPi3. This leads to routing issue and confuses the Bluetooth controller with unexpected data.

This patch introduces chosen/stdout path to configure console to uart0 on bcm283x family and overwrite it to uart1 in the RPi3 dts.

Create serial0/1 aliases referring to uart0 ant uart1 paths. Remove unneeded earlyprintk.

Fixes 4188ea2aeb6d ("ARM: bcm283x: Define UART pinmuxing on board level")
---
 arch/arm/boot/dts/bcm2837-rpi-3-b.dts | 5 +++++
 arch/arm/boot/dts/bcm283x.dtsi        | 7 ++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)
arch/arm/boot/dts/bcm2837-rpi-3-b.dts +5 -0
index 20725ca..f1c0811 100644
@@ -8,6 +8,11 @@
 	compatible = "raspberrypi,3-model-b", "brcm,bcm2837";
 	model = "Raspberry Pi 3 Model B";
 
+	chosen {
+		/* 8250 auxiliar UART instead of pl011 */
+		stdout-path = "serial1:115200n8";
+	};
+
 	memory {
 		reg = <0 0x40000000>;
 	};
arch/arm/boot/dts/bcm283x.dtsi +0 -0
index 431dcfc..013431e 100644

arch/arm/boot/dts/bcm283x.dtsi line 27

Quoted 8 lines
arch/arm/boot/dts/bcm283x.dtsi +5 -0
@@ -20,8 +20,13 @@
 	#address-cells = <1>;
 	#size-cells = <1>;
 
+	aliases {
+		serial0 = &uart0;
+		serial1 = &uart1;
+	};
+

looks good, but since the bcm2835-rpi-zero-w.dts also defines this, please remove it there.

Quoted 14 lines
arch/arm/boot/dts/bcm283x.dtsi +1 -1
 	chosen {
-		bootargs = "earlyprintk console=ttyAMA0";
+		stdout-path = "serial0:115200n8";
 	};
 
 	thermal-zones {
Signature · 7 lines
1.9.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel