phy-handle = <&phy0>;
- nvmem-cells = <&macaddr_mrd_1fff8>;
+ nvmem-cells = <&macaddr_mrd_1fff8 0>;
nvmem-cell-names = "mac-address";
};
};
precal_factory_1010: precal@1010 {
reg = <0x1010 0x6f010>;
};
-
- macaddr: macaddr@a {
- reg = <0xa 0x6>;
- };
};
};
#size-cells = <1>;
macaddr_mrd_1fff8: macaddr@1fff8 {
+ compatible = "mac-base";
reg = <0x1fff8 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
&wifi {
nvmem-cells = <&eeprom_factory_0>, <&precal_factory_1010>;
nvmem-cell-names = "eeprom", "precal";
+ #address-cells = <1>;
+ #size-cells = <0>;
status = "okay";
+
+ band@0 {
+ reg = <0>;
+ nvmem-cells = <&macaddr_mrd_1fff8 1>;
+ nvmem-cell-names = "mac-address";
+ };
+
+ band@1 {
+ reg = <1>;
+ nvmem-cells = <&macaddr_mrd_1fff8 2>;
+ nvmem-cell-names = "mac-address";
+ };
};
addr=$(mtd_get_mac_binary factory 0x04)
[ "$PHYNBR" = "1" ] && macaddr_setbit_la $(macaddr_add $addr -0x300000) > /sys${DEVPATH}/macaddress
;;
- zyxel,nwa50ax-pro)
- hw_mac_addr="$(mtd_get_mac_binary mrd 0x1fff8)"
- [ "$PHYNBR" = "0" ] && macaddr_add $hw_mac_addr 1 > /sys${DEVPATH}/macaddress
- [ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr 2 > /sys${DEVPATH}/macaddress
- ;;
esac