ramips: convert rt2x00 EEPROM to NVMEM format
[openwrt/staging/stintel.git] / target / linux / ramips / dts / rt2880_ralink_v11st-fe.dts
index 39045bf0267806ee6ba066ebabf7bbce7f30165a..5d518df2528e0f959b0f0c9696f2f44cdf45d89b 100644 (file)
                        };
 
                        factory: partition@40000 {
-                               reg = <0x00040000 0x00010000>;
+                               compatible = "nvmem-cells";
                                label = "factory";
+                               reg = <0x00040000 0x00010000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               eeprom_factory_0: eeprom@0 {
+                                       reg = <0x0 0x200>;
+                               };
                        };
 
                        partition@50000 {
@@ -80,5 +87,6 @@
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0x0>;
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };