thermal: qcom: add support for adc-tm5 PMIC thermal monitor
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 5 Feb 2021 00:01:18 +0000 (03:01 +0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 15 Feb 2021 20:28:53 +0000 (21:28 +0100)
commitca66dca5eda6bd16b7b27fed2a034f2396df5627
tree92e7a4119620f5226d4f6cd3867c6b7b9729b524
parente8ffd6c0756bd81f069dd67ea47e6908c791e742
thermal: qcom: add support for adc-tm5 PMIC thermal monitor

Add support for Thermal Monitoring part of PMIC5. This part is closely
coupled with ADC, using it's channels directly. ADC-TM support
generating interrupts on ADC value crossing low or high voltage bounds,
which is used to support thermal trip points.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210205000118.493610-3-dmitry.baryshkov@linaro.org
drivers/iio/adc/qcom-vadc-common.c
drivers/thermal/qcom/Kconfig
drivers/thermal/qcom/Makefile
drivers/thermal/qcom/qcom-spmi-adc-tm5.c [new file with mode: 0644]
include/linux/iio/adc/qcom-vadc-common.h