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