Skip to contentSkip to conversation

riscv: dts: spacemit: set console baud rate on OrangePi RV2

PATCH Superseded Jennifer Berringer 3 participants 3 messages May 20 – May 22

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: dts: spacemit: set console baud rate on OrangePi RV2

Set the baud rate to 115200, matching what is used by U-Boot on this platform so that the console is usable even when console options are not specified in cmdline.

Fixes bab8dea259100 ("riscv: dts: spacemit: Add OrangePi RV2 board device tree")
---
 arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts +1 -1
index 7c49bce427f30..07dbd292eee33 100644
@@ -22,7 +22,7 @@ aliases {
 	};
 
 	chosen {
-		stdout-path = "serial0";
+		stdout-path = "serial0:115200n8";
 	};
 
 	pcie_vcc3v3: regulator-pcie-vcc3v3 {

base-commit: e2518e8cb1dde64af2d1bb246639bb7ef7523f7a

Signature · 1 line
2.53.0
maintainer Reviewed-by on v1 1/1
#1 lore raw

Hi Jennifer,

Quoted 6 lines · Jennifer Berringer

Set the baud rate to 115200, matching what is used by U-Boot on this platform so that the console is usable even when console options are not specified in cmdline.

Fixes bab8dea259100 ("riscv: dts: spacemit: Add OrangePi RV2 board device tree")
Quoted 22 lines
---
 arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts +1 -1
index 7c49bce427f30..07dbd292eee33 100644
@@ -22,7 +22,7 @@ aliases {
 	};
 
 	chosen {
-		stdout-path = "serial0";
+		stdout-path = "serial0:115200n8";
 	};
 
 	pcie_vcc3v3: regulator-pcie-vcc3v3 {

base-commit: e2518e8cb1dde64af2d1bb246639bb7ef7523f7a

Signature · 1 line
2.53.0
Signature · 1 line
Yixun Lan (dlan)
Tested-by on v1 1/1
#2 lore raw
In reply to Jennifer Berringer

Hello Jennifer,

Quoted 24 lines · Jennifer Berringer

Set the baud rate to 115200, matching what is used by U-Boot on this platform so that the console is usable even when console options are not specified in cmdline.

Fixes bab8dea259100 ("riscv: dts: spacemit: Add OrangePi RV2 board device tree")
---
  arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts +1 -1
index 7c49bce427f30..07dbd292eee33 100644
@@ -22,7 +22,7 @@ aliases {
  	};
 
  	chosen {
-		stdout-path = "serial0";
+		stdout-path = "serial0:115200n8";
  	};
 
  	pcie_vcc3v3: regulator-pcie-vcc3v3 {
Quoted 1 line

base-commit: e2518e8cb1dde64af2d1bb246639bb7ef7523f7a

I did the same patch, a few days ago, and tested it OK, but did not have time to do a proper submission.

So, if it's useful, you can add my:

Regards