ramips: mt7621: convert to nvmem-layout
[openwrt/staging/nbd.git] / target / linux / ramips / dts / mt7621_asus_rt-ax54.dts
index 571d8375a4b8c55860d6a15223ebf32d067dc418..8466cda587bf0ea7005ac7333b77e59499211ddb 100644 (file)
                };
 
                factory: partition@1e0000 {
-                       compatible = "nvmem-cells";
                        label = "factory";
                        reg = <0x1e0000 0x100000>;
-                       #address-cells = <1>;
-                       #size-cells = <1>;
                        read-only;
 
-                       eeprom_factory_0: eeprom@0 {
-                               reg = <0x0 0xe00>;
-                       };
+                       nvmem-layout {
+                               compatible = "fixed-layout";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
 
-                       macaddr_factory_4: macaddr@4 {
-                               reg = <0x4 0x6>;
+                               macaddr_factory_4: macaddr@4 {
+                                       reg = <0x4 0x6>;
+                               };
                        };
                };
 
        wifi@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               nvmem-cells = <&eeprom_factory_0>;
-               nvmem-cell-names = "eeprom";
+               mediatek,mtd-eeprom = <&factory 0x0000>;
                mediatek,disable-radar-background;
        };
 };