ramips: mt7621: convert MT7915 EEPROM to NVMEM format
[openwrt/staging/dangole.git] / target / linux / ramips / dts / mt7621_ubnt_unifi-6-lite.dts
index cd19893e1451dff952b153bb1b5816b7e5e726ce..d439e124e3f408fecd1148556f227909268991b1 100644 (file)
                                        eeprom_factory_0: eeprom@0 {
                                                reg = <0x0 0x400>;
                                        };
+
+                                       eeprom_factory_20000: eeprom@20000 {
+                                               reg = <0x20000 0xe00>;
+                                       };
+
+                                       precal_factory_20e10: precal@20e10 {
+                                               reg = <0x20e10 0x19c10>;
+                                       };
                                };
                        };
 
 &wlan_5g {
        compatible = "mediatek,mt76";
 
-       mediatek,mtd-eeprom = <&factory 0x20000>;
-
        /* This is a workaround.
         *
         * Ubiquiti uses a +2 offset in the first octet relative
         * mac80211 increases the first octet by two for each VAP, leading
         * to conflicting MAC addresses for subsequent interfaces.
         */
-       nvmem-cells = <&macaddr_eeprom_6 1>;
-       nvmem-cell-names = "mac-address";
+       nvmem-cells = <&macaddr_eeprom_6 1>, <&eeprom_factory_20000>, <&precal_factory_20e10>;
+       nvmem-cell-names = "mac-address", "eeprom", "precal";
 
        ieee80211-freq-limit = <5000000 6000000>;