ramips: add support for WAVLINK WL-WN573HX1
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_cudy_wr2100.dts
index 21d03322a75e1228594f4b14fb5b018011b52b2d..b2e75762a5d132910390be2ecb6e24ab934bcee8 100644 (file)
        };
 };
 
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy4>;
+
+       nvmem-cells = <&macaddr_bdinfo_de00>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <1>;
+};
+
+&mdio {
+       ethphy4: ethernet-phy@4 {
+               reg = <4>;
+       };
+};
+
 &switch0 {
        ports {
                port@0 {
                        status = "okay";
                        label = "lan4";
                };
-
-               port@4 {
-                       status = "okay";
-                       label = "wan";
-
-                       nvmem-cells = <&macaddr_bdinfo_de00>;
-                       nvmem-cell-names = "mac-address";
-                       mac-address-increment = <1>;
-               };
        };
 };