ipq40xx: disable nodes instead of deleting them
authorRobert Marko <robert.marko@sartura.hr>
Wed, 8 Dec 2021 13:44:05 +0000 (14:44 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sun, 2 Oct 2022 21:04:38 +0000 (23:04 +0200)
There is no reason to delete the DT PHY nodes
as you can just disable them.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-magic-2-wifi-next.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wrtq-329acn.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-1200.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-lhgg-60ad.dts
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4029-aruba-glenmorangie.dtsi

index f1bd88f94294254f5bc966e21e6b51ae3919180f..29d51aa9e1c57eb6042de3122d5d83775d13f9f2 100644 (file)
@@ -24,9 +24,6 @@
                        pinctrl-names = "default";
                        reset-gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
                        reset-delay-us = <2000>;
-
-                       /delete-node/ ethernet-phy@0;
-                       /delete-node/ ethernet-phy@1;
                };
 
                crypto@8e3a000 {
        status = "okay";
 };
 
+&ethphy0 {
+       status = "disabled";
+};
+
+&ethphy1 {
+       status = "disabled";
+};
+
 &wifi0 {
        status = "okay";
        qcom,ath10k-calibration-variant = "devolo,magic-2-wifi-next";
index ed9996f097ed3258d589fa0675d7c85f1431c61b..2407698fe1c89ea9ade575b115b355e131850fc2 100644 (file)
 
                mdio@90000 {
                        status = "okay";
-
-                       /delete-node/ ethernet-phy@0;
-                       /delete-node/ ethernet-phy@1;
-                       /delete-node/ ethernet-phy@3;
                };
 
                tcsr@1949000 {
        status = "okay";
 };
 
+&ethphy0 {
+       status = "disabled";
+};
+
+&ethphy1 {
+       status = "disabled";
+};
+
+&ethphy3 {
+       status = "disabled";
+};
+
 &wifi0 {
        status = "okay";
        nvmem-cell-names = "pre-calibration";
index 459f4a3384f9616160c42ae7faf9219264456fcf..20b981a372e4294920d90ef7a6947e684e86d4ec 100644 (file)
                        status = "okay";
                        pinctrl-0 = <&mdio_pins>;
                        pinctrl-names = "default";
-
-                       /delete-node/ ethernet-phy@1;
-                       /delete-node/ ethernet-phy@2;
-                       /delete-node/ ethernet-phy@3;
-                       /delete-node/ ethernet-phy@4;
-                       /delete-node/ psgmii-phy@5;
                };
 
                tcsr@1949000 {
        status = "okay";
 };
 
+&ethphy0 {
+       status = "disabled";
+};
+
+&ethphy1 {
+       status = "disabled";
+};
+
+&ethphy2 {
+       status = "disabled";
+};
+
+&ethphy3 {
+       status = "disabled";
+};
+
+&ethphy4 {
+       status = "disabled";
+};
+
+&psgmiiphy {
+       status = "disabled";
+};
+
 &wifi0 {
        status = "okay";
        qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-1200";
index a91a7fae17e55aac7b72ebc44f893a8f2ddac51f..c208bf33eed54d1ebe6f2bd0fb5e5b3e56fd7c80 100644 (file)
 
                mdio@90000 {
                        status = "okay";
-
-                       /delete-node/ ethernet-phy@1;
-                       /delete-node/ ethernet-phy@2;
-                       /delete-node/ ethernet-phy@3;
-                       /delete-node/ ethernet-phy@4;
-                       /delete-node/ psgmii-phy@5;
                };
 
                counter@4a1000 {
                };
        };
 };
+
+&ethphy1 {
+       status = "disabled";
+};
+
+&ethphy2 {
+       status = "disabled";
+};
+
+&ethphy3 {
+       status = "disabled";
+};
+
+&ethphy4 {
+       status = "disabled";
+};
+
+&psgmiiphy {
+       status = "disabled";
+};
index da2067454c3c3fcfd81d93f62d05e1ce29e2b4fd..0925561ed0fc9799e072d2bca6a4b9caa1ffe5a1 100644 (file)
                        pinctrl-0 = <&mdio_pins>;
                        pinctrl-names = "default";
 
-                       /delete-node/ ethernet-phy@0;
-                       /delete-node/ ethernet-phy@1;
-                       /delete-node/ ethernet-phy@2;
-                       /delete-node/ ethernet-phy@3;
-                       /delete-node/ ethernet-phy@4;
-                       /delete-node/ psgmii-phy@5;
-
                        ethernet-phy@5 {
                                reg = <0x5>;
                        };
        };
 };
 
+&ethphy0 {
+       status = "disabled";
+};
+
+&ethphy1 {
+       status = "disabled";
+};
+
+&ethphy2 {
+       status = "disabled";
+};
+
+&ethphy3 {
+       status = "disabled";
+};
+
+&ethphy4 {
+       status = "disabled";
+};
+
+&psgmiiphy {
+       status = "disabled";
+};
+
 &wifi0 {
        status = "okay";
        nvmem-cell-names = "pre-calibration", "mac-address";