ramips: convert mt76 PCIe NIC EEPROM to NVMEM format for legacy SoCs
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_lenovo_newifi-y1.dtsi
index 0360cff26fc42b14e99fbeadc5fe72f78e1393c7..f30b1265fed2943bd69a7c3aa8f1f93c348af60c 100644 (file)
                                        reg = <0x0 0x200>;
                                };
 
+                               eeprom_factory_8000: eeprom@8000 {
+                                       reg = <0x8000 0x200>;
+                               };
+
                                macaddr_factory_28: macaddr@28 {
                                        reg = <0x28 0x6>;
                                };
@@ -95,7 +99,8 @@
 &pcie0 {
        mt76@0,0 {
                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>;
        };
 };