/ {
aliases {
+ label-mac-device = ð0;
led-boot = &led_status;
led-failsafe = &led_status;
led-upgrade = &led_status;
phy-mode = "rgmii-rxid";
pll-data = <0xae000000 0x80000101 0x80001313>;
+ nvmem-cells = <&macaddr_uboot_ethaddr 0>;
+ nvmem-cell-names = "mac-address";
+
gmac-config {
device = <&gmac>;
wifi@0,0 {
compatible = "qcom,ath10k";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&cal_art_5000>;
- nvmem-cell-names = "calibration";
+ nvmem-cells = <&cal_art_5000>, <&macaddr_uboot_ethaddr 1>;
+ nvmem-cell-names = "calibration", "mac-address";
};
};
};
partition@40000 {
+ compatible = "u-boot,env";
label = "u-boot-env";
reg = <0x40000 0x10000>;
read-only;
+
+ macaddr_uboot_ethaddr: ethaddr {
+ #nvmem-cell-cells = <1>;
+ };
};
partition@50000 {
&wmac {
status = "okay";
- nvmem-cells = <&cal_art_1000>;
- nvmem-cell-names = "calibration";
+ nvmem-cells = <&cal_art_1000>, <&macaddr_uboot_ethaddr 0>;
+ nvmem-cell-names = "calibration", "mac-address";
};
[ "$PHYNBR" -eq 1 ] && \
mtd_get_mac_ascii bdcfg "wlanmac" > /sys${DEVPATH}/macaddress
;;
- elecom,wab-i1750-ps|\
- elecom,wab-s1167-ps|\
- elecom,wab-s600-ps)
- # set the 5G MAC address (= ethaddr + 1)
- [ "$PHYNBR" -eq 0 ] && \
- macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" 1 > /sys${DEVPATH}/macaddress
- # set the 2.4G MAC address (= ethaddr)
- [ "$PHYNBR" -eq 1 ] && \
- mtd_get_mac_ascii u-boot-env "ethaddr" > /sys${DEVPATH}/macaddress
- ;;
engenius,ecb1200|\
engenius,ecb1750)
[ "$PHYNBR" -eq 0 ] && \