ath11k: add thermal sensor device support
authorPradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Sat, 15 Feb 2020 00:25:22 +0000 (05:55 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 11 Mar 2020 16:47:18 +0000 (18:47 +0200)
commita41d10348b01fe48dc21c1e6d83a6bb3e4838df2
tree0cbbf47b643c64f670accde1f820adf2bc844020
parent2a63bbca06b2508a8ae72956cddffbb53605e9b8
ath11k: add thermal sensor device support

Temperature sensor generates electrical analog voltage from temperature
of each chain. The analog voltage is converted to digital value through
ADC. For reading temperature values fom user space, hw monitoring device
is used.

Whenever the user requests for current temperature, the driver sends WMI
command and wait for response. For reading temperature,

cat /sys/class/ieee80211/phy*/device/hwmon/hwmon2/temp1_input

Signed-off-by: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath11k/core.c
drivers/net/wireless/ath/ath11k/mac.c
drivers/net/wireless/ath/ath11k/thermal.c
drivers/net/wireless/ath/ath11k/thermal.h
drivers/net/wireless/ath/ath11k/wmi.c
drivers/net/wireless/ath/ath11k/wmi.h