ramips: fix EEPROM size for I-O DATA WN-DEAX1800GR
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_asiarf_ap7621.dtsi
index bc54d14083bbcde762b2158fb8ea08a3ec07a578..bea0b79df5eb95cd74ff8759d67285a0e4bff5ce 100644 (file)
                compatible = "gpio-leds";
 
                wlan1 {
-                       label = "ap7621-001:orange:wlan1";
+                       label = "orange:wlan1";
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
                wlan0 {
-                       label = "ap7621-001:orange:wlan0";
+                       label = "orange:wlan0";
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &state_default {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};