Skip to content

Commit b8f2de0

Browse files
jprakash-qcRaj Aryan
authored andcommitted
thermal: qcom: add support for PMIC5 Gen3 ADC thermal monitoring
Add support for ADC_TM part of PMIC5 Gen3. This is an auxiliary driver under the Gen3 ADC driver, which implements the threshold setting and interrupt generating functionalities of QCOM ADC_TM drivers, used to support thermal trip points. Link: https://lore.kernel.org/all/20260526-gen3_adc_tm-v2-2-702fbac919ac@oss.qualcomm.com/ Signed-off-by: Jishnu Prakash <jishnu.prakash@oss.qualcomm.com>
1 parent 033c9cf commit b8f2de0

3 files changed

Lines changed: 448 additions & 0 deletions

File tree

drivers/thermal/qcom/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ config QCOM_SPMI_ADC_TM5
2121
Thermal client sets threshold temperature for both warm and cool and
2222
gets updated when a threshold is reached.
2323

24+
25+
config QCOM_SPMI_ADC_TM5_GEN3
26+
tristate "Qualcomm SPMI PMIC Thermal Monitor ADC5 Gen3"
27+
depends on QCOM_SPMI_ADC5_GEN3
28+
help
29+
This enables the auxiliary thermal driver for the ADC5 Gen3 thermal
30+
monitoring device. It shows up as a thermal zone with multiple trip points.
31+
Thermal client sets threshold temperature for both warm and cool and
32+
gets updated when a threshold is reached.
33+
2434
config QCOM_SPMI_MBG_TM
2535
tristate "Qualcomm SPMI PMIC MBG Temperature monitor"
2636
depends on QCOM_SPMI_ADC5_GEN3

drivers/thermal/qcom/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ obj-$(CONFIG_QCOM_TSENS) += qcom_tsens.o
44
qcom_tsens-y += tsens.o tsens-v2.o tsens-v1.o tsens-v0_1.o \
55
tsens-8960.o
66
obj-$(CONFIG_QCOM_SPMI_ADC_TM5) += qcom-spmi-adc-tm5.o
7+
obj-$(CONFIG_QCOM_SPMI_ADC_TM5_GEN3) += qcom-spmi-adc-tm5-gen3.o
78
obj-$(CONFIG_QCOM_SPMI_MBG_TM) += qcom-spmi-mbg-tm.o
89
obj-$(CONFIG_QCOM_SPMI_TEMP_ALARM) += qcom-spmi-temp-alarm.o
910
obj-$(CONFIG_QCOM_LMH) += lmh.o

0 commit comments

Comments
 (0)