ramips: mt7628: use mac-base
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_tl-wr840n-v5.dts
index 01a1a7f09e288fef8431d1a21decc846a3ef7590..3e639668bbaa0df62e7d7bbf0593507d1549dfe9 100644 (file)
                                label = "factory";
                                reg = <0x3f0000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x400>;
+                                       };
+
+                                       macaddr_factory_f100: macaddr@f100 {
+                                               reg = <0xf100 0x6>;
+                                       };
+                               };
                        };
                };
        };
 &wmac {
        status = "okay";
 
-       mediatek,mtd-eeprom = <&factory 0x0>;
-
-       nvmem-cells = <&macaddr_factory_f100>;
-       nvmem-cell-names = "mac-address";
+       nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_f100>;
+       nvmem-cell-names = "eeprom", "mac-address";
 };
 
 &ethernet {
                function = "gpio";
        };
 };
-
-&factory {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_factory_f100: macaddr@f100 {
-               reg = <0xf100 0x6>;
-       };
-};