ipq40xx: wpj428: fix missing MDIO GPIO reset and pinmux
[oweals/openwrt.git] / target / linux / ipq40xx / files-4.19 / arch / arm / boot / dts / qcom-ipq4028-wpj428.dts
index cf8540c10176ef29470dd833df3c12b5cb26a3f5..1bcf5e80bf3bded159b4b2e8901c7c5550b835ed 100644 (file)
 
                mdio@90000 {
                        status = "okay";
+                       pinctrl-0 = <&mdio_pins>;
+                       pinctrl-names = "default";
+                       reset-gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
+                       reset-delay-us = <2000>;
                };
 
                ess-psgmii@98000 {
 };
 
 &tlmm {
+       mdio_pins: mdio_pinmux {
+               mux_1 {
+                       pins = "gpio53";
+                       function = "mdio";
+                       bias-pull-up;
+               };
+
+               mux_2 {
+                       pins = "gpio52";
+                       function = "mdc";
+                       bias-pull-up;
+               };
+       };
+
        serial_pins: serial_pinmux {
                mux {
                        pins = "gpio60", "gpio61";