ramips: convert rt2x00 EEPROM to NVMEM format
[openwrt/staging/nbd.git] / target / linux / ramips / dts / mt7620a_asus_rp-n53.dts
index 4c72c642724b00988e3a0ed250fe7cdd18f6e316..00fcb5ec42ebfd87216a07b4b9bb6ed265b5edf5 100644 (file)
                        };
 
                        factory: partition@40000 {
+                               compatible = "nvmem-cells";
                                label = "factory";
                                reg = <0x40000 0x10000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               eeprom_factory_0: eeprom@0 {
+                                       reg = <0x0 0x200>;
+                               };
+
+                               eeprom_factory_8000: eeprom@8000 {
+                                       reg = <0x8000 0x200>;
+                               };
                        };
 
                        partition@50000 {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0x0>;
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };
 
 &state_default {
                compatible = "pci1814,5592";
                reg = <0x0000 0 0 0 0>;
                ralink,2ghz = <0>;
-               ralink,mtd-eeprom = <&factory 0x8000>;
+               nvmem-cells = <&eeprom_factory_8000>;
+               nvmem-cell-names = "eeprom";
        };
 };