ramips: add support for WAVLINK WL-WN573HX1
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_totolink_a7000r.dts
index f217cdf66259d37fc9b780816510b829c8fd5209..bba0d4a5d37090eb4d78c1c468ba42af9b261d93 100644 (file)
@@ -20,7 +20,7 @@
                compatible = "gpio-leds";
 
                led_sys: sys {
-                       label = "a7000r:blue:sys";
+                       label = "blue:sys";
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
+};
+
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy4>;
+
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <1>;
+};
+
+&mdio {
+       ethphy4: ethernet-phy@4 {
+               reg = <4>;
+       };
 };
 
 &switch0 {
                        status = "okay";
                        label = "lan4";
                };
-
-               port@4 {
-                       status = "okay";
-                       label = "wan";
-                       mtd-mac-address = <&factory 0xe000>;
-                       mtd-mac-address-increment = <1>;
-               };
        };
 };
 
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};