Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt: bindings: add new dt entry for pre calibration in qcom, ath10k.txt

There two things done in this patch,

1) Existing device tree entry 'qcom,ath10k-calibration-data' carries
not only calibration data, it carries board specific data too.
So, make appropriate update in doc.

2) ipq4019 wifi needs new devie tree entry to carry calibration
data alone (called pre cal data, it doesn't include any other info).
Using 'qcom,ath10k-calibration-data' for ipq4019 would alter
the purpose of it. Hence, add new device tree entry called
'qcom,ath10k-pre-calibration-data' to carry only pre calibration data.

Signed-off-by: Raja Mani <rmani@qti.qualcomm.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>

authored by

Raja Mani and committed by
Kalle Valo
a47aaa69 8866c727

+16 -7
+16 -7
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt
··· 5 5 * "qcom,ath10k" 6 6 * "qcom,ipq4019-wifi" 7 7 8 - PCI based devices uses compatible string "qcom,ath10k" and takes only 9 - calibration data via "qcom,ath10k-calibration-data". Rest of the properties 10 - are not applicable for PCI based devices. 8 + PCI based devices uses compatible string "qcom,ath10k" and takes calibration 9 + data along with board specific data via "qcom,ath10k-calibration-data". 10 + Rest of the properties are not applicable for PCI based devices. 11 11 12 12 AHB based devices (i.e. ipq4019) uses compatible string "qcom,ipq4019-wifi" 13 - and also uses most of the properties defined in this doc. 13 + and also uses most of the properties defined in this doc (except 14 + "qcom,ath10k-calibration-data"). It uses "qcom,ath10k-pre-calibration-data" 15 + to carry pre calibration data. 16 + 17 + In general, entry "qcom,ath10k-pre-calibration-data" and 18 + "qcom,ath10k-calibration-data" conflict with each other and only one 19 + can be provided per device. 14 20 15 21 Optional properties: 16 22 - reg: Address and length of the register set for the device. ··· 41 35 - qcom,msi_addr: MSI interrupt address. 42 36 - qcom,msi_base: Base value to add before writing MSI data into 43 37 MSI address register. 44 - - qcom,ath10k-calibration-data : calibration data as an array, the 45 - length can vary between hw versions 38 + - qcom,ath10k-calibration-data : calibration data + board specific data 39 + as an array, the length can vary between 40 + hw versions. 41 + - qcom,ath10k-pre-calibration-data : pre calibration data as an array, 42 + the length can vary between hw versions. 46 43 47 44 Example (to supply the calibration data alone): 48 45 ··· 114 105 "legacy"; 115 106 qcom,msi_addr = <0x0b006040>; 116 107 qcom,msi_base = <0x40>; 117 - qcom,ath10k-calibration-data = [ 01 02 03 ... ]; 108 + qcom,ath10k-pre-calibration-data = [ 01 02 03 ... ]; 118 109 };