[PATCH 3/4] arm64: dts: mediatek: mt7986: add missing pin groups to BPI-R3
Leith Bade
leith at bade.nz
Thu Jun 27 00:58:55 PDT 2024
The uart0, mdio and switch nodes are not connected to pin groups unlike
most of the other nodes.
Signed-off-by: Leith Bade <leith at bade.nz>
---
.../dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 27 +++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
index 2cccbec39d34..54087001cc8c 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
@@ -194,6 +194,8 @@ gmac1: mac at 1 {
};
mdio: mdio-bus {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mdio_pins>;
#address-cells = <1>;
#size-cells = <0>;
};
@@ -206,6 +208,8 @@ switch: switch at 31 {
interrupt-controller;
#interrupt-cells = <1>;
interrupts-extended = <&pio 66 IRQ_TYPE_LEVEL_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&switch_pins>;
reset-gpios = <&pio 32 GPIO_ACTIVE_HIGH>;
};
};
@@ -335,6 +339,13 @@ mux {
};
};
+ uart0_pins: uart0-pins {
+ mux {
+ function = "uart";
+ groups = "uart0";
+ };
+ };
+
uart1_pins: uart1-pins {
mux {
function = "uart";
@@ -349,6 +360,20 @@ mux {
};
};
+ mdio_pins: mdio-pins {
+ mux {
+ function = "eth";
+ groups = "mdc_mdio";
+ };
+ };
+
+ switch_pins: switch-pins {
+ mux {
+ function = "eth";
+ groups = "switch_int";
+ };
+ };
+
wf_2g_5g_pins: wf-2g-5g-pins {
mux {
function = "wifi";
@@ -471,6 +496,8 @@ &trng {
};
&uart0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart0_pins>;
status = "okay";
};
--
2.25.1
More information about the Linux-mediatek
mailing list