};
macaddr_eeprom_6: macaddr@6 {
+ compatible = "mac-base";
reg = <0x6 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&wifi {
+ #address-cells = <1>;
+ #size-cells = <0>;
status = "okay";
+
+ band@0 {
+ reg = <0>;
+ nvmem-cells = <&macaddr_eeprom_6 0>;
+ nvmem-cell-names = "mac-address";
+ };
+
+ band@1 {
+ reg = <1>;
+ nvmem-cells = <&macaddr_eeprom_6 1>;
+ nvmem-cell-names = "mac-address";
+ };
};
tplink,tl-xtr8488)
[ "$PHYNBR" = "1" ] && get_mac_label > /sys${DEVPATH}/macaddress
;;
- ubnt,unifi-6-plus)
- addr=$(mtd_get_mac_binary EEPROM 0x6)
- [ "$PHYNBR" = "0" ] && echo "$addr" > /sys${DEVPATH}/macaddress
- [ "$PHYNBR" = "1" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress
- ;;
routerich,ax3000|\
routerich,ax3000-ubootmod|\
zbtlink,zbt-z8102ax|\