ramips: convert MT7603 EEPROM to NVMEM format
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_linksys_e5600.dts
index 3b23a25f8b5163da6975d810b9193cfd722634e6..32015b6a2afb0968e5602143f9f6d853f9ad49ad 100644 (file)
                };
 
                factory: partition@c0000 {
+                       compatible = "nvmem-cells";
                        label = "factory";
                        reg = <0xc0000 0x40000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
                        read-only;
+
+                       eeprom_factory_0: eeprom@0 {
+                               reg = <0x0 0x400>;
+                       };
                };
 
                partition@100000 {
        mt76@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x0000>;
+               nvmem-cells = <&eeprom_factory_0>;
+               nvmem-cell-names = "eeprom";
        };
 };