ramips: fix factory partition size for SNR-CPE-W4N
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_tozed_zlt-s12-pro.dts
index 5a94bbda829de0c97c8cba23a66fbcb00c49d117..d90c0b4b59c832e62530c762aca603f06e218593 100644 (file)
                        };
 
                        factory: partition@40000 {
+                               compatible = "nvmem-cells";
                                label = "factory";
                                reg = <0x40000 0x10000>;
-                               read-only;
-
-                               compatible = "nvmem-cells";
                                #address-cells = <1>;
                                #size-cells = <1>;
+                               read-only;
+
+                               eeprom_factory_0: eeprom@0 {
+                                       reg = <0x0 0x400>;
+                               };
+
+                               eeprom_factory_8000: eeprom@8000 {
+                                       reg = <0x8000 0x200>;
+                               };
 
                                macaddr_factory_e000: macaddr@e000 {
                                        reg = <0xe000 0x6>;
        wifi0: mt76@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x8000>;
+               nvmem-cells = <&eeprom_factory_8000>;
+               nvmem-cell-names = "eeprom";
                ieee80211-freq-limit = <5000000 6000000>;
        };
 };
        wifi1: mt76@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";
                ieee80211-freq-limit = <2400000 2500000>;
        };
 };