]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf5d02052e491c05dc63756bace4cf472a5dced7
tree0cbbf47b643c64f670accde1f820adf2bc844020
parent4bda8dc377bf2c3449c0d26a3c9807fe0eddf335
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