ramips: mt7621: convert to nvmem-layout
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_xiaomi_mi-router-3-pro.dts
index 62111520c011fdcc3804bfcd2239938b0a25221f..a403cd3e14ff18d69d5afcf9725f606a7eaa4bab 100644 (file)
                };
 
                factory: partition@c0000 {
-                       compatible = "nvmem-cells";
                        label = "factory";
                        reg = <0x0c0000 0x40000>;
-                       #address-cells = <1>;
-                       #size-cells = <1>;
                        read-only;
 
-                       eeprom_factory_0: eeprom@0 {
-                               reg = <0x0 0x4da8>;
-                       };
+                       nvmem-layout {
+                               compatible = "fixed-layout";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
 
-                       eeprom_factory_8000: eeprom@8000 {
-                               reg = <0x8000 0x4da8>;
-                       };
+                               eeprom_factory_0: eeprom@0 {
+                                       reg = <0x0 0x4da8>;
+                               };
 
-                       macaddr_factory_e000: macaddr@e000 {
-                               reg = <0xe000 0x6>;
-                       };
+                               eeprom_factory_8000: eeprom@8000 {
+                                       reg = <0x8000 0x4da8>;
+                               };
+
+                               macaddr_factory_e000: macaddr@e000 {
+                                       reg = <0xe000 0x6>;
+                               };
 
-                       macaddr_factory_e006: macaddr@e006 {
-                               reg = <0xe006 0x6>;
+                               macaddr_factory_e006: macaddr@e006 {
+                                       reg = <0xe006 0x6>;
+                               };
                        };
                };