@@ -194,6 +194,8 @@ gmac1: mac@1 {
};
mdio: mdio-bus {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mdio_pins>;
#address-cells = <1>;
#size-cells = <0>;
};
@@ -206,6 +208,8 @@ switch: switch@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";
};
The uart0, mdio and switch nodes are not connected to pin groups unlike most of the other nodes. Signed-off-by: Leith Bade <leith@bade.nz> --- .../dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+)