Skip to content

Commit

Permalink
ath79: TP-Link EAP245 v1: convert ath10k to nvmem-cells
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
svanheule committed Jun 16, 2022
1 parent e71b5d2 commit d618827
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 18 additions & 0 deletions target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts
Expand Up @@ -42,3 +42,21 @@
};
};
};

&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";
};
};
Expand Up @@ -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)
Expand Down

0 comments on commit d618827

Please sign in to comment.