ramips: mt7621: convert to nvmem-layout
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_ubnt_unifi-6-lite.dts
index 8f78a60557c9090e6ba52ae04ccd1ea3e3c3ee36..488a40db5c3d2e23f8cc544f2ee0b8759ab8ded7 100644 (file)
                        };
 
                        factory: partition@70000 {
-                               compatible = "nvmem-cells";
                                label = "factory";
                                reg = <0x70000 0x40000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                read-only;
 
-                               eeprom_factory_0: eeprom@0 {
-                                       reg = <0x0 0x400>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x400>;
+                                       };
                                };
                        };
 
                        eeprom: partition@b0000 {
-                               compatible = "nvmem-cells";
                                label = "eeprom";
                                reg = <0xb0000 0x10000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                read-only;
 
-                               macaddr_eeprom_0: macaddr@0 {
-                                       reg = <0x0 0x6>;
-                               };
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_eeprom_0: macaddr@0 {
+                                               reg = <0x0 0x6>;
+                                       };
 
-                               macaddr_eeprom_6: macaddr@6 {
-                                       reg = <0x6 0x6>;
+                                       macaddr_eeprom_6: macaddr@6 {
+                                               reg = <0x6 0x6>;
+                                       };
                                };
                        };