ramips: mt7621: convert I-O DATA devices EEPROM to NVMEM format
[openwrt/staging/svanheule.git] / target / linux / ramips / dts / mt7621_iodata_wn-dx1167r.dts
index 4492f43f9fbbb0648d7c7b791659b7da6d5b2632..c8aaa80b542f3eb1691e6114b5bb4a0d66bfc6e9 100644 (file)
@@ -7,6 +7,11 @@
        model = "I-O DATA WN-DX1167R";
 };
 
+/* override EEPROM size to 0x4da8 for MT7615 */
+&eeprom_factory_0 {
+       reg = <0x0 0x4da8>;
+};
+
 &partitions {
        partition@6b00000 {
                label = "idmkey";
@@ -25,6 +30,7 @@
        wifi@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x0>;
+               nvmem-cells = <&eeprom_factory_0>;
+               nvmem-cell-names = "eeprom";
        };
 };