Skip to contentSkip to conversation

arm64: dts: arm: Add stdout-path

PATCH Applied Debbie Martin 3 participants 3 messages Jul 30, 2024 – Aug 9, 2024

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

PATCH 1/1 arm64: dts: arm: Add stdout-path

Add stdout-path to the Arm devicetrees to specify the primary console. This means that distributions can boot without the need for platform-specific command line parameters i.e. they can use earlycon with no parameters and no console argument is needed at all.

---
 arch/arm64/boot/dts/arm/foundation-v8.dtsi | 4 +++-
 arch/arm64/boot/dts/arm/fvp-base-revc.dts  | 4 +++-
 arch/arm64/boot/dts/arm/rtsm_ve-aemv8a.dts | 4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/arm/foundation-v8.dtsi +3 -1
index 93f1e7c026b8..083be35495b3 100644
@@ -18,7 +18,9 @@ / {
 	#address-cells = <2>;
 	#size-cells = <2>;
 
-	chosen { };
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
 
 	aliases {
 		serial0 = &v2m_serial0;
arch/arm64/boot/dts/arm/fvp-base-revc.dts +3 -1
index 85f1c15cc65d..19973ab4ea6b 100644
@@ -24,7 +24,9 @@ / {
 	#address-cells = <2>;
 	#size-cells = <2>;
 
-	chosen { };
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
 
 	aliases {
 		serial0 = &v2m_serial0;
arch/arm64/boot/dts/arm/rtsm_ve-aemv8a.dts +3 -1
index afdf954206f1..7f7226711d4b 100644
@@ -23,7 +23,9 @@ / {
 	#address-cells = <2>;
 	#size-cells = <2>;
 
-	chosen { };
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
 
 	aliases {
 		serial0 = &v2m_serial0;
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · On Tue, 30 Jul 2024 11:37:58 +0100 Debbie Martin <[email protected]> wrote:

Add stdout-path to the Arm devicetrees to specify the primary console. This means that distributions can boot without the need for platform-specific command line parameters i.e. they can use earlycon with no parameters and no console argument is needed at all.

Looks good to me, and aligns with what the other DTs do:

Quoted 1 line

Cheers,
Andre

Quoted 51 lines
---
 arch/arm64/boot/dts/arm/foundation-v8.dtsi | 4 +++-
 arch/arm64/boot/dts/arm/fvp-base-revc.dts  | 4 +++-
 arch/arm64/boot/dts/arm/rtsm_ve-aemv8a.dts | 4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/arm/foundation-v8.dtsi +3 -1
index 93f1e7c026b8..083be35495b3 100644
@@ -18,7 +18,9 @@ / {
 	#address-cells = <2>;
 	#size-cells = <2>;
 
-	chosen { };
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
 
 	aliases {
 		serial0 = &v2m_serial0;
arch/arm64/boot/dts/arm/fvp-base-revc.dts +3 -1
index 85f1c15cc65d..19973ab4ea6b 100644
@@ -24,7 +24,9 @@ / {
 	#address-cells = <2>;
 	#size-cells = <2>;
 
-	chosen { };
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
 
 	aliases {
 		serial0 = &v2m_serial0;
arch/arm64/boot/dts/arm/rtsm_ve-aemv8a.dts +3 -1
index afdf954206f1..7f7226711d4b 100644
@@ -23,7 +23,9 @@ / {
 	#address-cells = <2>;
 	#size-cells = <2>;
 
-	chosen { };
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
 
 	aliases {
 		serial0 = &v2m_serial0;
Applied
#2 lore raw
In reply to Debbie Martin
Quoted 5 lines · Debbie Martin

Add stdout-path to the Arm devicetrees to specify the primary console. This means that distributions can boot without the need for platform-specific command line parameters i.e. they can use earlycon with no parameters and no console argument is needed at all.

Applied to sudeep.holla/linux (for-next/juno/updates), thanks!

[1/1] arm64: dts: arm: Add stdout-path

      https://git.kernel.org/sudeep.holla/c/9d4a984a53be

--
Regards,
Sudeep