ramips: convert MT7915 EEPROM to NVMEM format
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_ubnt_unifi-6-lite.dts
index 8f78a60557c9090e6ba52ae04ccd1ea3e3c3ee36..c0b6b7758595213d8df4725cf1ceeab557df2f7c 100644 (file)
                                eeprom_factory_0: eeprom@0 {
                                        reg = <0x0 0x400>;
                                };
+
+                               eeprom_factory_20000: eeprom@20000 {
+                                       reg = <0x20000 0xe00>;
+                               };
                        };
 
                        eeprom: partition@b0000 {
 &wlan_5g {
        compatible = "mediatek,mt76";
 
-       mediatek,mtd-eeprom = <&factory 0x20000>;
-
-       nvmem-cells = <&macaddr_eeprom_6>;
-       nvmem-cell-names = "mac-address";
+       nvmem-cells = <&eeprom_factory_20000>, <&macaddr_eeprom_6>;
+       nvmem-cell-names = "eeprom", "mac-address";
 
        /* This is a workaround.
         *