ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_iptime_a3002mesh.dts
index dc63adedf0435cfda5ea619a2d3fbc5c3a0501be..678ce0680643b7a9c8f8db4247269be84f6eb31e 100644 (file)
        mac-address-increment = <(2)>;
 };
 
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy0>;
+
+       nvmem-cells = <&macaddr_uboot_1fc40>;
+       nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+       ethphy0: ethernet-phy@0 {
+               reg = <0>;
+       };
+};
+
 &switch0 {
        ports {
-               port@0 {
-                       status = "okay";
-                       label = "wan";
-                       nvmem-cells = <&macaddr_uboot_1fc40>;
-                       nvmem-cell-names = "mac-address";
-               };
-
                port@3 {
                        status = "okay";
                        label = "lan1";