#size-cells = <1>;
uboot: partition@0 {
+ compatible = "nvmem-cells";
label = "u-boot";
reg = <0x0 0x20000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
};
partition@20000 {
};
radio: partition@7f0000 {
+ compatible = "nvmem-cells";
label = "radio";
reg = <0x7f0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_radio_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ eeprom_radio_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
};
};
};
};
ðernet {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
- ralink,mtd-eeprom = <&radio 0x0>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&eeprom_radio_0>, <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "eeprom", "mac-address";
};
&pcie {
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&radio 0x8000>;
- mtd-mac-address = <&uboot 0x1fc00>;
- mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>;
+ nvmem-cells = <&eeprom_radio_8000>, <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "eeprom", "mac-address";
+ mac-address-increment = <2>;
};
};