ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_iptime_a6004ns-m.dtsi
index a033d7f665350b79a6fd389ac1c0320f7c744886..b00fbeb47f913885583884db00ca7939b3e0793c 100644 (file)
        nvmem-cell-names = "mac-address";
 };
 
+&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@1 {
                        status = "okay";
                        label = "lan1";