ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_xiaomi_mi-router-cr660x.dtsi
index dfdbcc77d4379cd8a5a22c6649b87204f8153e53..a6c0033227eac7184112efa778ec1c7819bac713 100644 (file)
        nvmem-cell-names = "mac-address";
 };
 
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy4>;
+
+       nvmem-cells = <&macaddr_factory_3fffa>;
+       nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+       ethphy4: ethernet-phy@4 {
+               reg = <4>;
+       };
+};
+
 &switch0 {
        ports {
                port@0 {
                        status = "okay";
                        label = "lan3";
                };
-
-               port@4 {
-                       status = "okay";
-                       label = "wan";
-                       nvmem-cells = <&macaddr_factory_3fffa>;
-                       nvmem-cell-names = "mac-address";
-               };
        };
 };