ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_xiaomi_mi-router-4a-3g-v2.dtsi
index 4c469a2836fa27a6d4e8ee8b6de18d3925d06e62..a0ee79ae23ce473087a5099f92d2aec30dcc5f3c 100644 (file)
@@ -11,7 +11,7 @@
                led-failsafe = &led_status_yellow;
                led-running = &led_status_blue;
                led-upgrade = &led_status_yellow;
-               label-mac-device = &wan;
+               label-mac-device = &gmac1;
        };
 
        chosen {
        nvmem-cell-names = "mac-address";
 };
 
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy4>;
+
+       nvmem-cells = <&macaddr_factory_e006>;
+       nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+       ethphy4: ethernet-phy@4 {
+               reg = <4>;
+       };
+};
+
 &switch0 {
        ports {
                port@2 {
                        status = "okay";
                        label = "lan1";
                };
-
-               wan: port@4 {
-                       status = "okay";
-                       label = "wan";
-                       nvmem-cells = <&macaddr_factory_e006>;
-                       nvmem-cell-names = "mac-address";
-               };
        };
 };