ramips: convert MT7603 EEPROM to NVMEM format
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_buffalo_wsr-1166dhp.dts
index a8d76b544e2576e2b67330e89866d1fa4595330c..85aca456cb6a7655db4fa230be0980250c9b52fd 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 0x400>;
+                               };
                        };
 
                        partition@50000 {
 &pcie1 {
        mt76@0,0 {
                reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x0000>;
+               nvmem-cells = <&eeprom_factory_0>;
+               nvmem-cell-names = "eeprom";
        };
 };