[PATCH] arm64: dts: ti: k3-am642-evm/sk: Set serial console settings for stdout-path

Jonathan Humphreys posted 1 patch 1 year, 6 months ago
arch/arm64/boot/dts/ti/k3-am642-evm.dts | 2 +-
arch/arm64/boot/dts/ti/k3-am642-sk.dts  | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
[PATCH] arm64: dts: ti: k3-am642-evm/sk: Set serial console settings for stdout-path
Posted by Jonathan Humphreys 1 year, 6 months ago
Set serial console UART settings in the DT so that generic distros will
work even if the OS loader doesn't explicitly pass it.

Signed-off-by: Jonathan Humphreys <j-humphreys@ti.com>
---
 arch/arm64/boot/dts/ti/k3-am642-evm.dts | 2 +-
 arch/arm64/boot/dts/ti/k3-am642-sk.dts  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/ti/k3-am642-evm.dts
index e20e4ffd0f1f..d63293d85d5f 100644
--- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts
+++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts
@@ -18,7 +18,7 @@ / {
 	model = "Texas Instruments AM642 EVM";
 
 	chosen {
-		stdout-path = &main_uart0;
+		stdout-path = "serial2:115200n8";
 	};
 
 	aliases {
diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts
index 5b028b3a3192..c23730c395b5 100644
--- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts
@@ -18,7 +18,7 @@ / {
 	model = "Texas Instruments AM642 SK";
 
 	chosen {
-		stdout-path = &main_uart0;
+		stdout-path = "serial2:115200n8";
 	};
 
 	aliases {
-- 
2.34.1
Re: [PATCH] arm64: dts: ti: k3-am642-evm/sk: Set serial console settings for stdout-path
Posted by Nishanth Menon 1 year, 5 months ago
On 15:51-20240617, Jonathan Humphreys wrote:
> Set serial console UART settings in the DT so that generic distros will
> work even if the OS loader doesn't explicitly pass it.
> 
> Signed-off-by: Jonathan Humphreys <j-humphreys@ti.com>
> ---
>  arch/arm64/boot/dts/ti/k3-am642-evm.dts | 2 +-
>  arch/arm64/boot/dts/ti/k3-am642-sk.dts  | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/ti/k3-am642-evm.dts
> index e20e4ffd0f1f..d63293d85d5f 100644
> --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts
> +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts
> @@ -18,7 +18,7 @@ / {
>  	model = "Texas Instruments AM642 EVM";
>  
>  	chosen {
> -		stdout-path = &main_uart0;
> +		stdout-path = "serial2:115200n8";
>  	};
>  
>  	aliases {
> diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts
> index 5b028b3a3192..c23730c395b5 100644
> --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts
> +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts
> @@ -18,7 +18,7 @@ / {
>  	model = "Texas Instruments AM642 SK";
>  
>  	chosen {
> -		stdout-path = &main_uart0;
> +		stdout-path = "serial2:115200n8";

let the baudrate and uart settings be set by userspace as desired. Also
see commit 6b343136388fe1ef5837e45ab921705de76665ee

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D