ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_glinet_gl-mt1300.dts
index 384da1bfa9faaa67fd73fb15a664b3b3ca655a8b..a332a87a5727571b429cb5ac0f3435a362dedda9 100644 (file)
@@ -14,7 +14,7 @@
                led-failsafe = &led_run;
                led-running = &led_run;
                led-upgrade = &led_run;
-               label-mac-device = &wan;
+               label-mac-device = &gmac1;
        };
 
        chosen {
        mac-address-increment = <1>;
 };
 
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy4>;
+
+       nvmem-cells = <&macaddr_factory_4000>;
+       nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+       ethphy4: ethernet-phy@4 {
+               reg = <4>;
+       };
+};
+
 &switch0 {
        ports {
                port@2 {
                        status = "okay";
                        label = "lan2";
                };
-
-               wan: port@4 {
-                       status = "okay";
-                       label = "wan";
-                       nvmem-cells = <&macaddr_factory_4000>;
-                       nvmem-cell-names = "mac-address";
-               };
        };
 };