ramips: mt7621: nix mac-address-increment
[openwrt/openwrt.git] / target / linux / ramips / dts / rt2880_dlink_dap-1522-a1.dts
index ff714d12730bf8b5a33a88c37f4dc8e7cec30556..105a3c49d486ca7df07650d6f0cef064345d6663 100644 (file)
                                label = "factory";
                                reg = <0x30000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_2000: eeprom@2000 {
+                                               reg = <0x2000 0x200>;
+                                       };
+
+                                       macaddr_factory_2004: macaddr@2004 {
+                                               reg = <0x2004 0x6>;
+                                       };
+                               };
                        };
 
                        partition@40000 {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0x2000>;
-};
-
-&factory {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_factory_2004: macaddr@2004 {
-               reg = <0x2004 0x6>;
-       };
+       nvmem-cells = <&eeprom_factory_2000>;
+       nvmem-cell-names = "eeprom";
 };