compatible = "sitecom,wlr-7100", "qca,ar9344";
aliases {
- label-mac-device = ð0;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
phy-mode = "rgmii";
phy-handle = <&phy0>;
- nvmem-cells = <&macaddr_uboot_ethaddr 0>;
- nvmem-cell-names = "mac-address";
-
gmac-config {
device = <&gmac>;
rgmii-gmac0 = <1>;
wifi@0,0 {
compatible = "qcom,ath10k";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&cal_art_5000>, <&macaddr_uboot_ethaddr 1>;
- nvmem-cell-names = "calibration", "mac-address";
+ nvmem-cells = <&cal_art_5000>;
+ nvmem-cell-names = "calibration";
};
};
read-only;
};
- uenv: partition@30000 {
+ partition@30000 {
label = "u-boot-env";
reg = <0x030000 0x010000>;
read-only;
nvmem-layout {
compatible = "u-boot,env";
env-size = <0x1000>;
-
- macaddr_uboot_ethaddr: ethaddr {
- #nvmem-cell-cells = <1>;
- };
};
};
&wmac {
status = "okay";
- nvmem-cells = <&cal_art_1000>, <&macaddr_uboot_ethaddr 0>;
- nvmem-cell-names = "calibration", "mac-address";
+ nvmem-cells = <&cal_art_1000>;
+ nvmem-cell-names = "calibration";
led {
led-sources = <14>;
siemens,ws-ap3610)
mtd_get_mac_ascii cfg1 RADIOADDR${PHYNBR} > /sys${DEVPATH}/macaddress
;;
+ sitecom,wlr-7100)
+ [ "$PHYNBR" -eq 0 ] && \
+ macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" 1 > /sys${DEVPATH}/macaddress
+ [ "$PHYNBR" -eq 1 ] && \
+ macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" > /sys${DEVPATH}/macaddress
tplink,deco-s4-v2)
base_mac=$(mtd_get_mac_encrypted_deco $(find_mtd_part config))
[ "$PHYNBR" -eq 0 ] && \