ath79: move eth0 to parent DTSI for ar9344 TP-Link CPE devices
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 6 Nov 2019 12:51:20 +0000 (13:51 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 6 Nov 2019 12:51:20 +0000 (13:51 +0100)
The &eth0 node is the same for all TP-Link CPE devices in ar9344,
so move it to parent DTSI. While at it, do some minor DTS
harmonizations.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/dts/ar9344_tplink_cpe510.dtsi
target/linux/ath79/dts/ar9344_tplink_cpe610-v1.dts
target/linux/ath79/dts/ar9344_tplink_cpexxx-v1.dtsi
target/linux/ath79/dts/ar9344_tplink_cpexxx.dtsi

index ff96401afc5e82b7866818d83c87016efa172390..41a944374084a49e552b4d43f383abc913988d5a 100644 (file)
        };
 };
 
-&eth0 {
-       status = "okay";
-
-       mtd-mac-address = <&info 0x08>;
-
-       phy-mode = "mii";
-       phy-handle = <&swphy4>;
-};
-
 &eth1 {
        status = "okay";
+
        compatible = "syscon", "simple-mfd";
 };
index 2b0f52cf4f330d32e0453fb20206a3c9d9929fe8..cb614a9dfb1fa08a7ee4ea65a90e62aeed9595be 100644 (file)
        };
 };
 
-&eth0 {
-       status = "okay";
-
-       mtd-mac-address = <&info 0x08>;
-
-       phy-mode = "mii";
-       phy-handle = <&swphy4>;
-};
-
 &eth1 {
        status = "okay";
 
index 3ba964edde5fb71547126c4a786cb2622b81e270..440ba8a8b364c102e7fc3f705c3b3f52b6b962b1 100644 (file)
                switch-only-mode = <1>;
        };
 };
-
-&eth0 {
-       status = "okay";
-
-       phy-handle = <&swphy4>;
-
-       mtd-mac-address = <&info 0x8>;
-};
index dc7313b58afafc22a9f62bac6977527c8f5e8a56..d002dfeb3cc7e09110f6ea64cb2e889776f9671d 100644 (file)
 };
 
 &spi {
-       num-cs = <1>;
-
        status = "okay";
 
+       num-cs = <1>;
+
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
        mtd-cal-data = <&art 0x1000>;
        mtd-mac-address = <&info 0x08>;
 };
+
+&eth0 {
+       status = "okay";
+
+       phy-handle = <&swphy4>;
+
+       mtd-mac-address = <&info 0x8>;
+};