ath79: TP-Link EAP245 v1: convert ath10k to nvmem-cells
authorSander Vanheule <sander@svanheule.net>
Sat, 4 Jun 2022 15:27:51 +0000 (17:27 +0200)
committerSander Vanheule <sander@svanheule.net>
Thu, 16 Jun 2022 19:39:32 +0000 (21:39 +0200)
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>
target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts
target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata

index 3da450192c2ec3fbc1b0609bf034e9b11377102e..188326fd8046a2c18cd8b2bcc9ff9db8e9845930 100644 (file)
                };
        };
 };
+
+&art {
+       calibration_ath10k: calibration@5000 {
+               reg = <0x5000 0x844>;
+       };
+};
+
+&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";
+       };
+};
index 668fd76af3a43afabd5c1eee0246a56009d426da..650d444fe63dcd50c5bb7735bf45791041177947 100644 (file)
@@ -146,7 +146,6 @@ case "$FIRMWARE" in
                ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary romfs 0xf100) 2)
                ;;
        tplink,eap225-v1|\
-       tplink,eap245-v1|\
        tplink,re450-v2|\
        tplink,re450-v3|\
        tplink,re455-v1)