[PATCH v2 01/15] arm64: dts: mediatek: mt7981b: Configure UART0 pinmux
From: Sjoerd Simons
Date: Sat Nov 01 2025 - 09:33:50 EST
Add explicit pinctrl configuration for UART0
Signed-off-by: Sjoerd Simons <sjoerd@xxxxxxxxxxxxx>
---
V1 -> V2: Move pinctrl to the soc dtsi as it's the only available
pinmux for the uart. And very rare for the pins to be used for
anything else.
---
arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
index 58c99f2a25218..4fa35bbf0a9cd 100644
--- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
@@ -102,6 +102,8 @@ uart0: serial@11002000 {
clocks = <&infracfg CLK_INFRA_UART0_SEL>,
<&infracfg CLK_INFRA_UART0_CK>;
clock-names = "baud", "bus";
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart0_pins>;
status = "disabled";
};
@@ -229,6 +231,13 @@ pio: pinctrl@11d00000 {
gpio-controller;
#gpio-cells = <2>;
#interrupt-cells = <2>;
+
+ uart0_pins: uart0-pins {
+ mux {
+ function = "uart";
+ groups = "uart0";
+ };
+ };
};
efuse@11f20000 {
--
2.51.0