ramips: mt7621: convert MT7915 EEPROM to NVMEM format
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_tplink_archer-ax23-v1.dts
index 1bc3f7e4f50de62efa483ef4d196f2bb33d72387..4de71d9e4295808f3c71ce14f5835aa70194cdb5 100644 (file)
                                label = "radio";
                                reg = <0xff0000 0x010000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_radio_0: eeprom@0 {
+                                               reg = <0x0 0xe00>;
+                                       };
+                               };
                        };
                };
        };
        wifi@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&radio 0x0>;
-               nvmem-cells = <&macaddr_config_8 0>;
-               nvmem-cell-names = "mac-address";
+               nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8 0>;
+               nvmem-cell-names = "eeprom", "mac-address";
                mediatek,disable-radar-background;
        };
 };