ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_asus_rt-n56u-b1.dts
index 63ab424b881c4a67bbddbf0673285eb654dbb2a5..c8d286e7ed154ba0deabcbdd6c5e87e44776992f 100644 (file)
@@ -10,7 +10,7 @@
        model = "ASUS RT-N56U B1";
 
        aliases {
-               label-mac-device = &wan;
+               label-mac-device = &gmac1;
                led-boot = &led_power;
                led-failsafe = &led_power;
                led-running = &led_power;
        nvmem-cell-names = "mac-address";
 };
 
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy4>;
+
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+       ethphy4: ethernet-phy@4 {
+               reg = <4>;
+       };
+};
+
 &switch0 {
        ports {
                port@0 {
                        status = "okay";
                        label = "lan1";
                };
-
-               wan: port@4 {
-                       status = "okay";
-                       label = "wan";
-                       nvmem-cells = <&macaddr_factory_4>;
-                       nvmem-cell-names = "mac-address";
-               };
        };
 };