WIP: ipq806x: switch reset fix
[openwrt/staging/ynezz.git] / target / linux / ipq806x / files-4.14 / arch / arm / boot / dts / qcom-ipq8064-ea8500.dts
index 91c358d245641b8c48efb3634eddf62428da9ee6..e9a08693b184b559e7a936952f70544bee6652de 100644 (file)
@@ -40,9 +40,6 @@
        soc {
                pinmux@800000 {
 
-                       pinctrl-0 = <&switch_reset>;
-                       pinctrl-names = "default";
-
                        button_pins: button_pins {
                                mux {
                                        pins = "gpio65", "gpio67", "gpio68";
                        compatible = "virtual,mdio-gpio";
                        #address-cells = <1>;
                        #size-cells = <0>;
+
                        gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
-                       pinctrl-0 = <&mdio0_pins>;
+
+                       pinctrl-0 = <&mdio0_pins &switch_reset>;
                        pinctrl-names = "default";
 
+                       reset-gpios = <&qcom_pinmux 63 GPIO_ACTIVE_LOW>;
+                       reset-delay-us = <12000>;
+
                        phy0: ethernet-phy@0 {
                                reg = <0>;
                                qca,ar8327-initvals = <