18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ciconfig QCOM_TSENS
38c2ecf20Sopenharmony_ci	tristate "Qualcomm TSENS Temperature Alarm"
48c2ecf20Sopenharmony_ci	depends on QCOM_QFPROM
58c2ecf20Sopenharmony_ci	depends on ARCH_QCOM || COMPILE_TEST
68c2ecf20Sopenharmony_ci	help
78c2ecf20Sopenharmony_ci	  This enables the thermal sysfs driver for the TSENS device. It shows
88c2ecf20Sopenharmony_ci	  up in Sysfs as a thermal zone with multiple trip points. Disabling the
98c2ecf20Sopenharmony_ci	  thermal zone device via the mode file results in disabling the sensor.
108c2ecf20Sopenharmony_ci	  Also able to set threshold temperature for both hot and cold and update
118c2ecf20Sopenharmony_ci	  when a threshold is reached.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciconfig QCOM_SPMI_TEMP_ALARM
148c2ecf20Sopenharmony_ci	tristate "Qualcomm SPMI PMIC Temperature Alarm"
158c2ecf20Sopenharmony_ci	depends on OF && SPMI && IIO
168c2ecf20Sopenharmony_ci	select REGMAP_SPMI
178c2ecf20Sopenharmony_ci	help
188c2ecf20Sopenharmony_ci	  This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP)
198c2ecf20Sopenharmony_ci	  PMIC devices. It shows up in sysfs as a thermal sensor with multiple
208c2ecf20Sopenharmony_ci	  trip points. The temperature reported by the thermal sensor reflects the
218c2ecf20Sopenharmony_ci	  real time die temperature if an ADC is present or an estimate of the
228c2ecf20Sopenharmony_ci	  temperature based upon the over temperature stage value.
23