ramips: convert MT7603 EEPROM to NVMEM format
[openwrt/staging/dangole.git] / target / linux / ramips / dts / mt7621_comfast_cf-ew72-v2.dts
index 8b7b4a035ea2d301625b9680cbd39bac13603698..b3a823b1f0850d511014173379bf15e3d52924d4 100644 (file)
                                compatible = "nvmem-cells";
                                reg = <0x40000 0x10000>;
                                read-only;
+
                                nvmem-layout {
                                        compatible = "fixed-layout";
                                        #address-cells = <1>;
                                        #size-cells = <1>;
+
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x400>;
+                                       };
+
                                        macaddr_factory_e000: macaddr@e000 {
                                                compatible = "mac-base";
                                                reg = <0xe000 0x6>;
        wifi_2_4_ghz: wifi@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";
                // Wi-Fi device reads it's MAC address from EEPROM (&factory + 4)
                // adding anything related to mac-address here will cause use random MAC
        };