ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / mt7621_dlink_dir-853-r1.dts
index c0ad172939aba804ac5bf82e38f191e882098638..8ec6ef3a7d29b672302129c1284459ee9142b458 100644 (file)
@@ -12,7 +12,7 @@
        model = "D-Link DIR-853 R1";
 
        aliases {
-               label-mac-device = &wan;
+               label-mac-device = &gmac1;
 
                led-boot = &led_power_orange;
                led-failsafe = &led_power_blue;
        mac-address-increment = <(-1)>;
 };
 
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy4>;
+
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <(-2)>;
+};
+
+&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";
-                       mac-address-increment = <(-2)>;
-               };
        };
 };