ramips: mt7628: move mtd-eeprom out of root DTSI
[openwrt/staging/stintel.git] / target / linux / ramips / dts / mt7628an_cudy_wr1000.dts
index c977d5c993d69c39db92396a2671b8ffe1ab6590..82f0e7c690a0e7d0bd0b047d5b48b0f572ea0223 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
 
 #include "mt7628an.dtsi"
 
                compatible = "gpio-leds";
 
                lan1 {
-                       label = "wr1000:blue:lan1";
+                       label = "blue:lan1";
                        gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
                };
 
                lan2 {
-                       label = "wr1000:blue:lan2";
+                       label = "blue:lan2";
                        gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "wr1000:blue:wan";
+                       label = "blue:wan";
                        gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
                };
 
                wlan2g {
-                       label = "wr1000:blue:wlan2g";
+                       label = "blue:wlan2g";
                        gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                led_wps: wps {
-                       label = "wr1000:blue:wps";
+                       label = "blue:wps";
                        gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
                };
        };
 
 &wmac {
        status = "okay";
+
+       mediatek,mtd-eeprom = <&factory 0x0>;
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        mediatek,portmap = <0x2f>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};