};
romfile: partition@fc0000 {
+ compatible = "nvmem-cells";
label = "romfile";
reg = <0xfc0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ macaddr_romfile_f100: romfile@f100 {
+ reg = <0xf100 0x6>;
+ };
};
partition@fd0000 {
};
radio: partition@fe0000 {
+ compatible = "nvmem-cells";
label = "radio";
reg = <0xfe0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_radio_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
};
};
};
mt76@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&macaddr_romfile_f100>;
- nvmem-cell-names = "mac-address";
- mediatek,mtd-eeprom = <&radio 0x0>;
- mtd-mac-address = <&romfile 0xf100>;
+ nvmem-cells = <&eeprom_radio_0>, <&macaddr_romfile_f100>;
+ nvmem-cell-names = "eeprom", "mac-address";
ieee80211-freq-limit = <2400000 2500000>;
};
};
};
};
};
-
-&romfile {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_romfile_f100: romfile@f100 {
- reg = <0xf100 0x6>;
- };
-};