ramips: convert MT7613 and MT7615 EEPROM to NVMEM format for MT7621
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_iptime_a3002mesh.dts
index 678ce0680643b7a9c8f8db4247269be84f6eb31e..fc51b9ac4f048da8527f79a712b58e25adb79af3 100644 (file)
                        };
 
                        factory: partition@30000 {
+                               compatible = "nvmem-cells";
                                label = "factory";
                                reg = <0x30000 0x10000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               eeprom_factory_0: eeprom@0 {
+                                       reg = <0x0 0x4da8>;
+                               };
                        };
 
                        partition@40000 {
        wifi@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x0000>;
+               nvmem-cells = <&eeprom_factory_0>;
+               nvmem-cell-names = "eeprom";
        };
 };