ramips: mt7621: convert Ubiquiti devices EEPROM to NVMEM format
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_ubnt_unifi-nanohd.dts
index b4000464f7be6e6aaeaa1c1193596186024dccd7..d81a23852d721c5fdb31246e3441c2b6da83bcb7 100644 (file)
                                label = "factory";
                                reg = <0x70000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x400>;
+                                       };
+
+                                       eeprom_factory_8000: eeprom@8000 {
+                                               reg = <0x8000 0x4da8>;
+                                       };
+                               };
                        };
 
                        eeprom: partition@80000 {
 };
 
 &wlan_2g {
-       mediatek,mtd-eeprom = <&factory 0x0>;
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };
 
 &wlan_5g {
-       mediatek,mtd-eeprom = <&factory 0x8000>;
+       nvmem-cells = <&eeprom_factory_8000>;
+       nvmem-cell-names = "eeprom";
 };