ath79: TP-Link EAP225-Outdoor v1: convert ath10k to nvmem-cells

Add the PCIe node for the ath10k radio to the devicetree, and refer to
the art partition for the calibration data using nvmem-cells.

Use mac-address-increment to ensure the MAC address is set correctly,
and remove the device from the caldata extraction and patching script.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
This commit is contained in:
Sander Vanheule 2022-06-05 12:01:51 +02:00
parent 7cf3a37957
commit 23b9040745
2 changed files with 18 additions and 1 deletions

View File

@ -28,3 +28,21 @@
};
};
};
&art {
calibration_ath10k: calibration@5000 {
reg = <0x5000 0x2f20>;
};
};
&pcie {
wifi@0,0 {
compatible = "qcom,ath10k";
reg = <0 0 0 0 0>;
mac-address-increment = <1>;
nvmem-cells = <&macaddr_info_8>, <&calibration_ath10k>;
nvmem-cell-names = "mac-address", "calibration";
};
};

View File

@ -250,7 +250,6 @@ case "$FIRMWARE" in
ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
;;
tplink,eap225-outdoor-v1|\
tplink,eap225-v3|\
tplink,eap225-wall-v2)
caldata_extract "art" 0x5000 0x2f20