From: bryan@bryanhinton.com
To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org
Cc: angelogioacchino.delregno@collabora.com, conor+dt@kernel.org,
krzk+dt@kernel.org, matthias.bgg@gmail.com, robh@kernel.org,
Bryan Hinton <bryan@bryanhinton.com>
Subject: [PATCH 2/2] arm64: dts: mediatek: mt7981b: OpenWrt One: set console UART to 115200
Date: Fri, 19 Sep 2025 19:06:12 -0500 [thread overview]
Message-ID: <20250920000619.2643457-3-bryan@bryanhinton.com> (raw)
In-Reply-To: <20250920000619.2643457-1-bryan@bryanhinton.com>
Use the new uart0 label for the console and make the speed explicit by
adding current-speed = <115200>. This keeps the DTS OS-agnostic: no
bootargs or distribution-specific properties are added.
Verification: Boot-tested with mainline Image+DTB via U-Boot on OpenWrt
One (MT7981B). Serial console active at 115200 baud, and DTB decompile
confirms serial0 alias and stdout-path set correctly.
Signed-off-by: Bryan Hinton <bryan@bryanhinton.com>
---
.../arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts b/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
index 4f6cbb491287..1d2c3a21019c 100644
--- a/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
@@ -8,8 +8,21 @@ / {
compatible = "openwrt,one", "mediatek,mt7981b";
model = "OpenWrt One";
+ aliases {
+ serial0 = &uart0;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+
memory@40000000 {
reg = <0 0x40000000 0 0x40000000>;
device_type = "memory";
};
};
+
+&uart0 {
+ status = "okay";
+ current-speed = <115200>; /* 0x1c200 */
+};
--
2.51.0
next prev parent reply other threads:[~2025-09-20 0:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-20 0:06 [PATCH 0/2] arm64: dts: mt7981/openwrt-one: UART labels and console bryan
2025-09-20 0:06 ` [PATCH 1/2] arm64: dts: mediatek: mt7981b: add labels for UART0/1/2 nodes bryan
2025-09-20 0:06 ` bryan [this message]
2025-09-20 2:36 ` [PATCH 2/2] arm64: dts: mediatek: mt7981b: OpenWrt One: set console UART to 115200 Daniel Golle
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=20250920000619.2643457-3-bryan@bryanhinton.com \
--to=bryan@bryanhinton.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=robh@kernel.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;
as well as URLs for NNTP newsgroup(s).