ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_asiarf_ap7621-nv1.dts
index 907b6d1470109d4d976ce2ba32e7e27a395080cc..dabc1a3bd340184fc54704e329ba7c50d8b9e7ff 100644 (file)
@@ -7,16 +7,24 @@
        model = "AsiaRF AP7621-NV1";
 };
 
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy0>;
+
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <1>;
+};
+
+&mdio {
+       ethphy0: ethernet-phy@0 {
+               reg = <0>;
+       };
+};
+
 &switch0 {
        ports {
-               port@0 {
-                       status = "okay";
-                       label = "wan";
-                       nvmem-cells = <&macaddr_factory_e000>;
-                       nvmem-cell-names = "mac-address";
-                       mac-address-increment = <1>;
-               };
-
                port@2 {
                        status = "okay";
                        label = "lan1";