^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) config QCOM_TSENS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) tristate "Qualcomm TSENS Temperature Alarm"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) depends on QCOM_QFPROM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) depends on ARCH_QCOM || COMPILE_TEST
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) This enables the thermal sysfs driver for the TSENS device. It shows
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) up in Sysfs as a thermal zone with multiple trip points. Disabling the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) thermal zone device via the mode file results in disabling the sensor.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Also able to set threshold temperature for both hot and cold and update
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) when a threshold is reached.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) config QCOM_SPMI_TEMP_ALARM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) tristate "Qualcomm SPMI PMIC Temperature Alarm"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) depends on OF && SPMI && IIO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) select REGMAP_SPMI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) PMIC devices. It shows up in sysfs as a thermal sensor with multiple
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) trip points. The temperature reported by the thermal sensor reflects the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) real time die temperature if an ADC is present or an estimate of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) temperature based upon the over temperature stage value.