ipq806x: use mdio dedicated driver
[openwrt/openwrt.git] / target / linux / ipq806x / files-5.4 / arch / arm / boot / dts / qcom-ipq8064-r7500v2.dts
index da67e36c6bb463d408fb73613990ed47e3c7c5f3..283ececd76804cfe67c2a2ab90ea9afa9bceb970 100644 (file)
@@ -74,7 +74,7 @@
                        mdio0_pins: mdio0_pins {
                                mux {
                                        pins = "gpio0", "gpio1";
-                                       function = "gpio";
+                                       function = "mdio";
                                        drive-strength = <8>;
                                        bias-disable;
                                };
                        };
                };
 
-               mdio0: mdio {
-                       compatible = "virtual,mdio-gpio";
+               mdio0: mdio@37000000 {
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
-                               <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
+
+                       compatible = "qcom,ipq8064-mdio", "syscon";
+                       reg = <0x37000000 0x200000>;
+                       resets = <&gcc GMAC_CORE1_RESET>;
+                       reset-names = "stmmaceth";
+                       clocks = <&gcc GMAC_CORE1_CLK>;
+                       clock-names = "stmmaceth";
+
                        pinctrl-0 = <&mdio0_pins>;
                        pinctrl-names = "default";