From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 1/3] MIPS: dts: add /chosen/stdout-path where it is missing
Date: Thu, 22 Aug 2024 13:56:59 +0200 [thread overview]
Message-ID: <20240822115701.1184099-1-a.fatoum@pengutronix.de> (raw)
A number of MIPS boards don't have a stdout-path set and instead rely on
CONFIG_CONSOLE_ACTIVATE_ALL/FIRST to enable a console.
This can get problematic if more consoles are added in future, or
CONFIG_CONSOLE_ACTIVATE_NONE is to be used. So on systems that currently
have a single console, let's have /chosen/stdout-path point at it.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
arch/mips/dts/black-swift.dts | 4 ++++
arch/mips/dts/dlink-dir-320.dts | 4 ++++
arch/mips/dts/img-ci20.dts | 4 ++++
arch/mips/dts/loongson-ls1b.dts | 4 ++++
arch/mips/dts/rzx50.dts | 4 ++++
5 files changed, 20 insertions(+)
diff --git a/arch/mips/dts/black-swift.dts b/arch/mips/dts/black-swift.dts
index af817dbfc7e1..6bb26d427f2d 100644
--- a/arch/mips/dts/black-swift.dts
+++ b/arch/mips/dts/black-swift.dts
@@ -13,6 +13,10 @@ aliases {
spiflash = &spiflash;
};
+ chosen {
+ stdout-path = &uart;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x00000000 0x4000000>;
diff --git a/arch/mips/dts/dlink-dir-320.dts b/arch/mips/dts/dlink-dir-320.dts
index d19c3087d017..beec40f3dcc5 100644
--- a/arch/mips/dts/dlink-dir-320.dts
+++ b/arch/mips/dts/dlink-dir-320.dts
@@ -7,6 +7,10 @@ / {
#address-cells = <1>;
#size-cells = <1>;
+ chosen {
+ stdout-path = &serial0;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x00000000 0x2000000>;
diff --git a/arch/mips/dts/img-ci20.dts b/arch/mips/dts/img-ci20.dts
index e1d3280c4e11..71038890d977 100644
--- a/arch/mips/dts/img-ci20.dts
+++ b/arch/mips/dts/img-ci20.dts
@@ -14,6 +14,10 @@ / {
model = "MIPS Creator CI20";
compatible = "img,ci20";
+ chosen {
+ stdout-path = &uart0;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x10000000>;
diff --git a/arch/mips/dts/loongson-ls1b.dts b/arch/mips/dts/loongson-ls1b.dts
index 89cce5636bcf..30520a34f53b 100644
--- a/arch/mips/dts/loongson-ls1b.dts
+++ b/arch/mips/dts/loongson-ls1b.dts
@@ -6,6 +6,10 @@ / {
model = "Loongson Tech LS1B Demo Board";
compatible = "loongson,ls1b";
+ chosen {
+ stdout-path = &serial2;
+ };
+
oscillator: oscillator {
#clock-cells = <0>;
compatible = "fixed-clock";
diff --git a/arch/mips/dts/rzx50.dts b/arch/mips/dts/rzx50.dts
index bd3631f7c451..93211a97a59f 100644
--- a/arch/mips/dts/rzx50.dts
+++ b/arch/mips/dts/rzx50.dts
@@ -6,6 +6,10 @@ / {
model = "Ritmix RZX-50";
compatible = "ritmix,rzx50";
+ chosen {
+ stdout-path = &serial1;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x00000000 0x4000000>;
--
2.39.2
next reply other threads:[~2024-08-22 11:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-22 11:56 Ahmad Fatoum [this message]
2024-08-22 11:57 ` [PATCH 2/3] MIPS: qemu-malta: explicitly set stdout-path Ahmad Fatoum
2024-08-22 11:57 ` [PATCH 3/3] test: mips: use new qemu-maltael_defconfig Ahmad Fatoum
2024-08-23 8:05 ` [PATCH 1/3] MIPS: dts: add /chosen/stdout-path where it is missing Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240822115701.1184099-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox