Skip to contentSkip to conversation

arm: dts: berlin: use stdout-path

PATCH RESEND Applied Jisheng Zhang 2 participants 4 messages Sep 14, 2015 – Sep 20, 2015 Device tree bindings

lore
Share & tools
lore
#0 lore raw

cover arm: dts: berlin: use stdout-path

These two simple patches use stdout-path to specify the console. The first patch add aliases for serial uarts. The second patch removes the console argument from the command line, uses stdout-path instead.

Jisheng Zhang (2):
arm: dts: berlin: add aliases for serial
arm: dts: berlin: use stdout-path

 arch/arm/boot/dts/berlin2-sony-nsz-gs7.dts        | 3 ++-
 arch/arm/boot/dts/berlin2.dtsi                    | 6 ++++++
 arch/arm/boot/dts/berlin2cd-google-chromecast.dts | 3 ++-
 arch/arm/boot/dts/berlin2cd.dtsi                  | 5 +++++
 arch/arm/boot/dts/berlin2q-marvell-dmp.dts        | 3 ++-
 arch/arm/boot/dts/berlin2q.dtsi                   | 5 +++++
 6 files changed, 22 insertions(+), 3 deletions(-)
Signature · 1 line
2.5.1
#1 lore raw

PATCH RESEND 1/2 arm: dts: berlin: add aliases for serial

This is to prepare for the using stdout-path in next commit.

---
 arch/arm/boot/dts/berlin2.dtsi   | 6 ++++++
 arch/arm/boot/dts/berlin2cd.dtsi | 5 +++++
 arch/arm/boot/dts/berlin2q.dtsi  | 5 +++++
 3 files changed, 16 insertions(+)
arch/arm/boot/dts/berlin2.dtsi +6 -0
index ef811de..40cf262 100644
@@ -47,6 +47,12 @@
 	model = "Marvell Armada 1500 (BG2) SoC";
 	compatible = "marvell,berlin2", "marvell,berlin";
 
+	aliases {
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
+	};
+
 	cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;
arch/arm/boot/dts/berlin2cd.dtsi +5 -0
index 900213d..6246aec 100644
@@ -47,6 +47,11 @@
 	model = "Marvell Armada 1500-mini (BG2CD) SoC";
 	compatible = "marvell,berlin2cd", "marvell,berlin";
 
+	aliases {
+		serial0 = &uart0;
+		serial1 = &uart1;
+	};
+
 	cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;
arch/arm/boot/dts/berlin2q.dtsi +5 -0
index 63a4849..380fa18 100644
@@ -43,6 +43,11 @@
 	model = "Marvell Armada 1500 pro (BG2-Q) SoC";
 	compatible = "marvell,berlin2q", "marvell,berlin";
 
+	aliases {
+		serial0 = &uart0;
+		serial1 = &uart1;
+	};
+
 	cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;
Signature · 1 line
2.5.1
#2 lore raw

PATCH RESEND 2/2 arm: dts: berlin: use stdout-path

In reply to Jisheng Zhang

Use stdout-path to specify the console and remove the console argument from the kernel command line.

---
 arch/arm/boot/dts/berlin2-sony-nsz-gs7.dts        | 3 ++-
 arch/arm/boot/dts/berlin2cd-google-chromecast.dts | 3 ++-
 arch/arm/boot/dts/berlin2q-marvell-dmp.dts        | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)
arch/arm/boot/dts/berlin2-sony-nsz-gs7.dts +2 -1
index 5c99fb3..3c0907b 100644
@@ -45,7 +45,8 @@
 	compatible = "sony,nsz-gs7", "marvell,berlin2", "marvell,berlin";
 
 	chosen {
-		bootargs = "console=ttyS0,115200 earlyprintk";
+		bootargs = "earlyprintk";
+		stdout-path = "serial0:115200n8";
 	};
 
 	memory {
arch/arm/boot/dts/berlin2cd-google-chromecast.dts +2 -1
index 772165a..8ba8b50 100644
@@ -46,7 +46,8 @@
 	compatible = "google,chromecast", "marvell,berlin2cd", "marvell,berlin";
 
 	chosen {
-		bootargs = "console=ttyS0,115200 earlyprintk";
+		bootargs = "earlyprintk";
+		stdout-path = "serial0:115200n8";
 	};
 
 	memory {
arch/arm/boot/dts/berlin2q-marvell-dmp.dts +2 -1
index 4a749e5..da28c97 100644
@@ -49,7 +49,8 @@
 	};
 
 	choosen {
-		bootargs = "console=ttyS0,115200 earlyprintk";
+		bootargs = "earlyprintk";
+		stdout-path = "serial0:115200n8";
 	};
 
 	regulators {
Signature · 1 line
2.5.1
#3 lore raw
In reply to Jisheng Zhang
Quoted 8 lines · Jisheng Zhang

These two simple patches use stdout-path to specify the console. The first patch add aliases for serial uarts. The second patch removes the console argument from the command line, uses stdout-path instead.

Jisheng Zhang (2):
arm: dts: berlin: add aliases for serial
arm: dts: berlin: use stdout-path

Applied to berlin/dt.

Thanks,
Sebastian

Quoted 8 lines
  arch/arm/boot/dts/berlin2-sony-nsz-gs7.dts        | 3 ++-
  arch/arm/boot/dts/berlin2.dtsi                    | 6 ++++++
  arch/arm/boot/dts/berlin2cd-google-chromecast.dts | 3 ++-
  arch/arm/boot/dts/berlin2cd.dtsi                  | 5 +++++
  arch/arm/boot/dts/berlin2q-marvell-dmp.dts        | 3 ++-
  arch/arm/boot/dts/berlin2q.dtsi                   | 5 +++++
  6 files changed, 22 insertions(+), 3 deletions(-)