ramips: convert rt2x00 EEPROM to NVMEM format
[openwrt/staging/stintel.git] / target / linux / ramips / dts / mt7620a_tplink_archer.dtsi
index 743d1e8db6646002a9bb771428f2907597acc57f..32a14a2b7502be660a3a4b3039db8f3f29087699 100644 (file)
                        };
 
                        rom: partition@7d0000 {
+                               compatible = "nvmem-cells";
                                label = "rom";
                                reg = <0x7d0000 0x10000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               macaddr_rom_f100: macaddr@f100 {
+                                       reg = <0xf100 0x6>;
+                               };
                        };
 
                        partition@7e0000 {
                        };
 
                        radio: partition@7f0000 {
+                               compatible = "nvmem-cells";
                                label = "radio";
                                reg = <0x7f0000 0x10000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               eeprom_radio_0: eeprom@0 {
+                                       reg = <0x0 0x200>;
+                               };
                        };
                };
        };
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&radio 0x0>;
+       nvmem-cells = <&eeprom_radio_0>;
+       nvmem-cell-names = "eeprom";
 };
 
 &pcie {
                ieee80211-freq-limit = <5000000 6000000>;
        };
 };
-
-&rom {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_rom_f100: macaddr@f100 {
-               reg = <0xf100 0x6>;
-       };
-};