ath79: TP-Link EAP225 v3: convert ath10k to nvmem-cells
authorSander Vanheule <sander@svanheule.net>
Sun, 5 Jun 2022 10:03:15 +0000 (12:03 +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_eap225-v3.dts
target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata

index 3d4950eaf0f9ecff80e31491822a975965874fe5..ed599815c070ef68baea57f8224c9b84dedac66c 100644 (file)
                };
        };
 };
+
+&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";
+       };
+};
index b8dc2042ea003d7151db44c43966855415343b77..1c80966efeec8edc1d208a2c7dcde157adabf560 100644 (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-v3|\
        tplink,eap225-wall-v2)
                caldata_extract "art" 0x5000 0x2f20
                ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary info 0x8) 1)