]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: mediatek: mt7981b: OpenWrt One: set console UART to 115200
authorBryan Hinton <bryan@bryanhinton.com>
Mon, 22 Sep 2025 03:58:10 +0000 (22:58 -0500)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 13 Oct 2025 09:34:15 +0000 (11:34 +0200)
Use the new uart0 label for the console and make the speed explicit by
setting stdout-path = "serial0:115200n8" under /chosen. This keeps the
DTS OS-agnostic: no bootargs or distribution-specific properties are
added.

Drop the 'current-speed' property from uart0 as it is not allowed by the
mediatek UART binding. The baud is already provided via stdout-path.

Verification: Boot-tested with mainline Image+DTB via U-Boot on OpenWrt
One (MT7981B). Serial console active at 115200, DTB decompile
confirms serial0 alias and stdout-path set correctly.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/r/202509211032.0rJjPoYE-lkp@intel.com/
Signed-off-by: Bryan Hinton <bryan@bryanhinton.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts

index 4f6cbb49128722e4b8f63d32847e77da198b5027..968b91f55bb27a8cb455e40acb0678287d589b16 100644 (file)
@@ -8,8 +8,20 @@
        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";
+};