[PATCH v2 01/15] arm64: dts: mediatek: mt7981b: Configure UART0 pinmux
Sjoerd Simons
sjoerd at collabora.com
Sat Nov 1 06:32:46 PDT 2025
Add explicit pinctrl configuration for UART0
Signed-off-by: Sjoerd Simons <sjoerd at collabora.com>
---
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 at 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 at 11d00000 {
gpio-controller;
#gpio-cells = <2>;
#interrupt-cells = <2>;
+
+ uart0_pins: uart0-pins {
+ mux {
+ function = "uart";
+ groups = "uart0";
+ };
+ };
};
efuse at 11f20000 {
--
2.51.0
More information about the Linux-mediatek
mailing list