[PATCH] riscv: dts: spacemit: set console baud rate on OrangePi RV2

Jennifer Berringer posted 1 patch 4 days, 11 hours ago
arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] riscv: dts: spacemit: set console baud rate on OrangePi RV2
Posted by Jennifer Berringer 4 days, 11 hours ago
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")
Signed-off-by: Jennifer Berringer <jberring@redhat.com>
---
 arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
index 7c49bce427f30..07dbd292eee33 100644
--- a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
+++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
@@ -22,7 +22,7 @@ aliases {
 	};
 
 	chosen {
-		stdout-path = "serial0";
+		stdout-path = "serial0:115200n8";
 	};
 
 	pcie_vcc3v3: regulator-pcie-vcc3v3 {

base-commit: e2518e8cb1dde64af2d1bb246639bb7ef7523f7a
-- 
2.53.0
Re: [PATCH] riscv: dts: spacemit: set console baud rate on OrangePi RV2
Posted by Vincent Legoll 2 days, 13 hours ago
Hello Jennifer,

On 5/20/26 13:11, Jennifer Berringer wrote:
> 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")
> Signed-off-by: Jennifer Berringer <jberring@redhat.com>
> ---
>   arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
> index 7c49bce427f30..07dbd292eee33 100644
> --- a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
> +++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
> @@ -22,7 +22,7 @@ aliases {
>   	};
>   
>   	chosen {
> -		stdout-path = "serial0";
> +		stdout-path = "serial0:115200n8";
>   	};
>   
>   	pcie_vcc3v3: regulator-pcie-vcc3v3 {
>
> 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:

Tested-by: Vincent Legoll <legoll@online.fr>

Regards
Re: [PATCH] riscv: dts: spacemit: set console baud rate on OrangePi RV2
Posted by Yixun Lan 4 days, 11 hours ago
Hi Jennifer, 

On 07:11 Wed 20 May     , Jennifer Berringer wrote:
> 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")
> Signed-off-by: Jennifer Berringer <jberring@redhat.com>

Reviewed-by: Yixun Lan <dlan@kernel.org>

> ---
>  arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
> index 7c49bce427f30..07dbd292eee33 100644
> --- a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
> +++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
> @@ -22,7 +22,7 @@ aliases {
>  	};
>  
>  	chosen {
> -		stdout-path = "serial0";
> +		stdout-path = "serial0:115200n8";
>  	};
>  
>  	pcie_vcc3v3: regulator-pcie-vcc3v3 {
> 
> base-commit: e2518e8cb1dde64af2d1bb246639bb7ef7523f7a
> -- 
> 2.53.0
> 

-- 
Yixun Lan (dlan)