ramips: convert rt2x00 EEPROM to NVMEM format
[openwrt/staging/nbd.git] / target / linux / ramips / dts / mt7620a_tplink_re2x0-v1.dtsi
index e6d9b8576d98d7042dd0e7e361713e5273228c84..9e4e646020969eb060f9401f09f51cd162136bca 100644 (file)
                        #size-cells = <1>;
 
                        uboot: partition@0 {
+                               compatible = "nvmem-cells";
                                label = "u-boot";
                                reg = <0x0 0x20000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               macaddr_uboot_1fc00: macaddr@1fc00 {
+                                       reg = <0x1fc00 0x6>;
+                               };
                        };
 
                        partition@20000 {
                        };
 
                        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>;
+                               };
                        };
                };
        };
@@ -77,9 +91,8 @@
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&radio 0x0>;
-       nvmem-cells = <&macaddr_uboot_1fc00>;
-       nvmem-cell-names = "mac-address";
+       nvmem-cells = <&eeprom_radio_0>, <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "eeprom", "mac-address";
 };
 
 &pcie {
                ieee80211-freq-limit = <5000000 6000000>;
        };
 };
-
-&uboot {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_uboot_1fc00: macaddr@1fc00 {
-               reg = <0x1fc00 0x6>;
-       };
-};