ipq806x: use mdio dedicated driver
authorAnsuel Smith <ansuelsmth@gmail.com>
Thu, 30 Jan 2020 01:48:59 +0000 (02:48 +0100)
committerPetr Štetiar <ynezz@true.cz>
Tue, 3 Mar 2020 22:38:23 +0000 (23:38 +0100)
Enable kernel config flag
Convert all dts to use the new mdio driver

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
14 files changed:
target/linux/ipq806x/files-5.4/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
target/linux/ipq806x/files-5.4/arch/arm/boot/dts/qcom-ipq8064-ap161.dts
target/linux/ipq806x/files-5.4/arch/arm/boot/dts/qcom-ipq8064-c2600.dts
target/linux/ipq806x/files-5.4/arch/arm/boot/dts/qcom-ipq8064-d7800.dts
target/linux/ipq806x/files-5.4/arch/arm/boot/dts/qcom-ipq8064-db149.dts
target/linux/ipq806x/files-5.4/arch/arm/boot/dts/qcom-ipq8064-ea8500.dts
target/linux/ipq806x/files-5.4/arch/arm/boot/dts/qcom-ipq8064-r7500.dts
target/linux/ipq806x/files-5.4/arch/arm/boot/dts/qcom-ipq8064-r7500v2.dts
target/linux/ipq806x/files-5.4/arch/arm/boot/dts/qcom-ipq8064-vr2600v.dts
target/linux/ipq806x/files-5.4/arch/arm/boot/dts/qcom-ipq8064-wg2600hp.dts
target/linux/ipq806x/files-5.4/arch/arm/boot/dts/qcom-ipq8064-wpq864.dts
target/linux/ipq806x/files-5.4/arch/arm/boot/dts/qcom-ipq8064-wxr-2533dhp.dts
target/linux/ipq806x/files-5.4/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts
target/linux/ipq806x/files-5.4/arch/arm/boot/dts/qcom-ipq8065-r7800.dts

index ec4535b55f7f28d0157733f90a6628446644a105..cf39355897788c2d6b56075eb06089d40069a045 100644 (file)
        };
 
        soc {
-               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";
 
@@ -94,7 +99,7 @@
        mdio0_pins: mdio0_pins {
                mux {
                        pins = "gpio0", "gpio1";
-                       function = "gpio";
+                       function = "mdio";
                        drive-strength = <8>;
                        bias-disable;
                };
index 5b181075c760830bd5d2a57d36e97ff5db8e9c66..32b32db2716c1780e5c3c8244a2bace9c40a9c89 100644 (file)
@@ -73,7 +73,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 0 &qcom_pinmux 0 0>;
+
+                       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";
 
index 0c3d8192b4afef7422c68d1f4d692f931952abd2..3a7b830daa125c935bde27543b422ffe71e4ed34 100644 (file)
@@ -94,7 +94,7 @@
                        mdio0_pins: mdio0_pins {
                                mux {
                                        pins = "gpio0", "gpio1";
-                                       function = "gpio";
+                                       function = "mdio";
                                        drive-strength = <8>;
                                        bias-disable;
                                };
                        force_gen1 = <1>;
                };
 
-               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";
 
index c3d8fab652706727861618a36c1bf2cd6ca0a534..b266670dab93943aae92afb069950ae01a605b83 100644 (file)
@@ -69,7 +69,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";
 
index 9d14b6583497f316c81904300baddd2f0f7daec2..eb8de37708712beff48b27c9e4c634b6c36d133f 100644 (file)
@@ -43,7 +43,7 @@
                        mdio0_pins: mdio0_pins {
                                mux {
                                        pins = "gpio0", "gpio1";
-                                       function = "gpio";
+                                       function = "mdio";
                                        drive-strength = <8>;
                                        bias-disable;
                                };
                        status = "okay";
                };
 
-               mdio0: mdio {
-                       compatible = "virtual,mdio-gpio";
+               mdio0: mdio@37000000 {
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
+
+                       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";
index 5cc4cf31d191bf3fecf931874ee2a893cf46967c..fd2f193b9e050577c731d0a83213005e40f7a9fd 100644 (file)
@@ -69,7 +69,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";
 
index f0909d1a8f61e625fa97c969800d960a98a1cb7b..6cd781d06e2ad716f9beeff2e4916a1b8449611c 100644 (file)
@@ -70,7 +70,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";
 
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";
 
index afccef5fa2ed57cf2186767d30501dcc1f5d1545..ef31bf00b04dfeb9ecacfd67e46712c0a3b905c8 100644 (file)
@@ -92,7 +92,7 @@
                        mdio0_pins: mdio0_pins {
                                mux {
                                        pins = "gpio0", "gpio1";
-                                       function = "gpio";
+                                       function = "mdio";
                                        drive-strength = <8>;
                                        bias-disable;
                                };
                        force_gen1 = <1>;
                };
 
-               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";
 
index 6667b1f473a376a8a73e8cd713258c5b7ddda0e2..73b8b526c20cb69705741cbb4f70576cfc63f8c1 100644 (file)
        };
 
        soc {
-               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";
 
        mdio0_pins: mdio0_pins {
                mux {
                        pins = "gpio0", "gpio1";
-                       function = "gpio";
+                       function = "mdio";
                        drive-strength = <8>;
                        bias-disable;
                };
index c409b2d6599bb8f303907a98fc845f52f4edc06e..a72395fb4658de12be0b065fb7618ee09c37276d 100644 (file)
                };
        };
 
-       mdio0: mdio {
+       mdio0: mdio@37000000 {
                #address-cells = <1>;
                #size-cells = <0>;
 
-               compatible = "virtual,mdio-gpio";
+               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";
 
-               gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
-                       <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
-
                ethernet-phy@0 {
                        reg = <0>;
                        qca,ar8327-initvals = <
        mdio0_pins: mdio0_pins {
                mux {
                        pins = "gpio0", "gpio1";
-                       function = "gpio";
+                       function = "mdio";
                        drive-strength = <8>;
                        bias-disable;
                };
index 21dfc9e9ebc7d80b18c81804928352353b6d6e24..401cd0c7f72b508240e61b971a4ffb16a86b5a1f 100644 (file)
                        };
                };
 
-               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";
 
        mdio0_pins: mdio0_pins {
                mux {
                        pins = "gpio0", "gpio1";
-                       function = "gpio";
+                       function = "mdio";
                        drive-strength = <8>;
                        bias-disable;
                };
index acecf9d3fa2e3900c616ae581ee334e5e363027b..65325164257fe9f9555daf7650def06f27aed4be 100644 (file)
@@ -70,7 +70,7 @@
                        mdio0_pins: mdio0_pins {
                                mux {
                                        pins = "gpio0", "gpio1";
-                                       function = "gpio";
+                                       function = "mdio";
                                        drive-strength = <8>;
                                        bias-disable;
                                };
                        force_gen1 = <1>;
                };
 
-               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";
 
index 8dc3d04e9e43a2d2931b94aa72a3a21271ef5a5a..f345a33c2ecb40090836a36e7166146210beb736 100644 (file)
                        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";
 
-
                        phy0: ethernet-phy@0 {
                                reg = <0>;
                                qca,ar8327-initvals = <