&gsw {
phy-mode = "rmii";
- mtd-mac-address = <&boardconfig 0x16>;
+ nvmem-cells = <&macaddr_boardconfig_16>;
+ nvmem-cell-names = "mac-address";
};
&localbus {
wifi0: wifi@1814,0601 {
compatible = "pci1814,0601";
reg = <0x7000 0 0 0 0>;
- mtd-mac-address = <&boardconfig 0x16>;
+ nvmem-cells = <&macaddr_boardconfig_16>;
+ nvmem-cell-names = "mac-address";
ralink,mtd-eeprom = <&boardconfig 0x410>;
ralink,mtd-eeprom-swap;
};
status = "okay";
gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
};
+
+&boardconfig {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ reg = <0x16 0x6>;
+ };
+};