ramips: mt7621: convert Linksys devices EEPROM to NVMEM format
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3052_unbranded_wr512-3gn-4m.dts
index d3393c074926c1dd6546ec242492bb15f59f7bf4..6002342fc9e5858f2185d8d54ae4fc8031539174 100644 (file)
@@ -2,7 +2,7 @@
 
 / {
        compatible = "unbranded,wr512-3gn-4m", "unbranded,wr512-3gn", "ralink,rt3052-soc";
-       model = "WR512-3GN (4M)";
+       model = "Unbranded WR512-3GN (4M)";
 
        flash@1f000000 {
                compatible = "cfi-flash";
                                label = "factory";
                                reg = <0x40000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x200>;
+                                       };
+                               };
                        };
 
                        partition@50000 {