ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_iptime_a3004ns-dual.dts
index fa3f146e81c6d26f60eff7ee088b65d1ea365b0f..c08b6427e7697b479ba0a77d5b0253c13a770214 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";