mediatek: use nvmem to set wifi mac for cetron ct3003

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2024-09-12 21:20:23 +08:00
parent 60ff3c42d6
commit f921d645cc
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 13 additions and 3 deletions

View File

@ -125,7 +125,6 @@
reg = <0x180000 0x100000>;
read-only;
compatible = "nvmem-cells";
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
@ -237,4 +236,17 @@
nvmem-cells = <&eeprom_factory_0>;
nvmem-cell-names = "eeprom";
status = "okay";
band@0 {
reg = <0>;
nvmem-cells = <&macaddr_art_0 1>;
nvmem-cell-names = "mac-address";
};
band@1 {
reg = <1>;
nvmem-cells = <&macaddr_art_0 2>;
nvmem-cell-names = "mac-address";
};
};

View File

@ -51,8 +51,6 @@ case "$board" in
;;
bananapi,bpi-r4|\
bananapi,bpi-r4-poe|\
cetron,ct3003|\
cetron,ct3003-ubootmod|\
nokia,ea0326gmp)
addr=$(cat /sys/class/net/eth0/address)
[ "$PHYNBR" = "0" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress