ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / mt7621_humax_e10.dts
index 41587629c03576a092beeb8593481a6bf9e652be..638d73c3effe1e87f189f23ca7cea576d2e5fbf4 100644 (file)
@@ -15,7 +15,7 @@
                led-failsafe = &led_power;
                led-running = &led_power;
                led-upgrade = &led_power;
-               label-mac-device = &wan;
+               label-mac-device = &gmac1;
        };
 
        gpio-export {
        nvmem-cell-names = "mac-address";
 };
 
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy0>;
+
+       nvmem-cells = <&macaddr_factory_1000d>;
+       nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+       ethphy0: ethernet-phy@0 {
+               reg = <0>;
+       };
+};
+
 &switch0 {
        ports {
-               wan: port@0 {
-                       status = "okay";
-                       label = "wan";
-                       nvmem-cells = <&macaddr_factory_1000d>;
-                       nvmem-cell-names = "mac-address";
-               };
-
                port@1 {
                        status = "okay";
                        label = "lan";