mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
Add initial thermal support by wiring up a per-radio (pdev) hwmon temperature sensor backed by the existing WMI pdev temperature command and event. When userspace reads the sysfs file temp1_input, the driver sends WMI_PDEV_GET_TEMPERATURE_CMDID (tag WMI_TAG_PDEV_GET_TEMPERATURE_CMD) and waits for the corresponding WMI_PDEV_TEMPERATURE_EVENTID (tag WMI_TAG_PDEV_TEMPERATURE_EVENT) to get the temperature and pdev_id. Export the reported value in millidegrees Celsius as required by hwmon. The temperature reported is per-radio (pdev). In a multi-radio wiphy under a single phy, a separate hwmon device is created for each radio. Sample command and output: $ cat /sys/devices/pci0000:00/.../ieee80211/phyX/hwmonY/temp1_input $ 50000 Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01243-QCAHKSWPL_SILICONZ-1 Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00302-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.115823.3 Co-developed-by: Aishwarya R <aishwarya.r@oss.qualcomm.com> Signed-off-by: Aishwarya R <aishwarya.r@oss.qualcomm.com> Signed-off-by: Maharaja Kennadyrajan <maharaja.kennadyrajan@oss.qualcomm.com> Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com> Link: https://patch.msgid.link/20260223132622.43464-1-maharaja.kennadyrajan@oss.qualcomm.com Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
39 lines
831 B
Makefile
39 lines
831 B
Makefile
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
obj-$(CONFIG_ATH12K) += ath12k.o
|
|
ath12k-y += core.o \
|
|
hal.o \
|
|
wmi.o \
|
|
mac.o \
|
|
reg.o \
|
|
htc.o \
|
|
qmi.o \
|
|
dp.o \
|
|
dp_tx.o \
|
|
dp_rx.o \
|
|
dp_htt.o \
|
|
dp_peer.o \
|
|
debug.o \
|
|
ce.o \
|
|
peer.o \
|
|
dbring.o \
|
|
mhi.o \
|
|
pci.o \
|
|
dp_mon.o \
|
|
fw.o \
|
|
p2p.o
|
|
|
|
ath12k-$(CONFIG_ATH12K_AHB) += ahb.o
|
|
|
|
obj-$(CONFIG_ATH12K) += wifi7/
|
|
|
|
ath12k-$(CONFIG_ATH12K_DEBUGFS) += debugfs.o debugfs_htt_stats.o debugfs_sta.o
|
|
ath12k-$(CONFIG_ACPI) += acpi.o
|
|
ath12k-$(CONFIG_ATH12K_TRACING) += trace.o
|
|
ath12k-$(CONFIG_PM) += wow.o
|
|
ath12k-$(CONFIG_ATH12K_COREDUMP) += coredump.o
|
|
ath12k-$(CONFIG_NL80211_TESTMODE) += testmode.o
|
|
ath12k-$(CONFIG_THERMAL) += thermal.o
|
|
|
|
# for tracing framework to find trace.h
|
|
CFLAGS_trace.o := -I$(src)
|