ramips: convert rt2x00 EEPROM to NVMEM format
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050_dlink_dir-615-d.dts
index e84c9d9cb78a6713e53eed2f8d4381880f1ab67f..4fe519780dc062253c42d682df2ef9a604c9a43a 100644 (file)
                        };
 
                        devdata: partition@30000 {
+                               compatible = "nvmem-cells";
                                label = "devdata";
                                reg = <0x30000 0x10000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               eeprom_devdata_4000: eeprom@4000 {
+                                       reg = <0x4000 0x200>;
+                               };
                        };
 
                        partition@40000 {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&devdata 0x4000>;
+       nvmem-cells = <&eeprom_devdata_4000>;
+       nvmem-cell-names = "eeprom";
 };
 
 &state_default {