ramips: convert mt76 PCIe NIC EEPROM to NVMEM format for legacy SoCs
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_keenetic_kn-1613.dts
index 510bada246dc6c9e1a4bbbcad69712e2217800da..117f278f129f010b15c24eda8a04a1ac0215d7e2 100644 (file)
                                        reg = <0x0 0x400>;
                                };
 
+                               eeprom_factory_400: eeprom@400 {
+                                       reg = <0x400 0x4da8>;
+                               };
+
                                macaddr_factory_4: macaddr@4 {
                                        reg = <0x4 0x6>;
                                };
        wifi@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x0400>;
+               nvmem-cells = <&eeprom_factory_400>;
+               nvmem-cell-names = "eeprom";
                ieee80211-freq-limit = <5000000 6000000>;
        };
 };