ramips: fix label-mac for Xiaomi RA75
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_linksys_e7350.dts
index ea8a6841488a8f7eddbc98402915553dbd19d20d..2bce2d759019224afdec1f751126a8d5de76cdc0 100644 (file)
                        label = "Factory";
                        reg = <0x100000 0x80000>;
                        read-only;
+
+                       nvmem-layout {
+                               compatible = "fixed-layout";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+
+                               eeprom_factory_0: eeprom@0 {
+                                       reg = <0x0 0xe00>;
+                               };
+                       };
                };
 
                partition@180000 {
        wifi@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";
        };
 };