]> git.ipfire.org Git - thirdparty/openwrt.git/commit
mac80211: read calibration variant from device tree 21767/head
authorAndrew LaMarche <andrewjlamarche@gmail.com>
Thu, 29 Jan 2026 00:52:36 +0000 (00:52 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Tue, 7 Jul 2026 06:32:11 +0000 (08:32 +0200)
commit24ab1e83d0524d8cd783b6fafc4c4eacab69aa94
treed6227e5449b64075091f3ae1b00618df63897acb
parent5b6bc962bd1a7cf61176400b82304e0fcfe71f61
mac80211: read calibration variant from device tree

ath10k and ath11k support reading calibration variants from the device
tree to locate the correct Board Description File (BDF). The ath12k-wsi
binding already describes using qcom,calibration-variant but it is not
implemented in the driver.

Many ath12k designs expose all the radios under a single phy, each of
which typically require a separate BDF. Without this, the radios may not
come up or will not be calibrated correctly.

Fix this by parsing the device tree for the generation-agnostic
qcom,calibration-variant. This allows the driver to properly select,
read and apply the correct BDF.

Additionally, the ath12k-wsi binding documentation describes using the
generation-specific qcom,ath12k-calibration-variant binding as well as
the generation-agnostic qcom,calibration-variant binding to load
board-specific calibration data from the device tree. However, the
driver never implemented either of these.

Given that no devices currently supported use
qcom,ath12k-calibration-variant and the previous patch implements
qcom,calibration-variant, drop the generation-specific version from the
binding to prevent future confusion.

Tested on Askey SBE1V1K.

Signed-off-by: Andrew LaMarche <andrewjlamarche@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21767
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
package/kernel/mac80211/patches/ath12k/700-ath12k-read-calibration-variant-from-dt.patch [new file with mode: 0644]
target/linux/generic/pending-6.18/796-dt-bindings-wireless-ath12k-drop-qcom-ath12k-cali.patch [new file with mode: 0644]