1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 29066073cSRajendra Nayakconfig QCOM_TSENS 39066073cSRajendra Nayak tristate "Qualcomm TSENS Temperature Alarm" 4*28fc7c98SRafał Miłecki depends on NVMEM_QCOM_QFPROM 59066073cSRajendra Nayak depends on ARCH_QCOM || COMPILE_TEST 69066073cSRajendra Nayak help 79066073cSRajendra Nayak This enables the thermal sysfs driver for the TSENS device. It shows 89066073cSRajendra Nayak up in Sysfs as a thermal zone with multiple trip points. Disabling the 99066073cSRajendra Nayak thermal zone device via the mode file results in disabling the sensor. 109066073cSRajendra Nayak Also able to set threshold temperature for both hot and cold and update 119066073cSRajendra Nayak when a threshold is reached. 1272e9baf9SAmit Kucheria 13ca66dca5SDmitry Baryshkovconfig QCOM_SPMI_ADC_TM5 14ca66dca5SDmitry Baryshkov tristate "Qualcomm SPMI PMIC Thermal Monitor ADC5" 15ca66dca5SDmitry Baryshkov depends on OF && SPMI && IIO 16ca66dca5SDmitry Baryshkov select REGMAP_SPMI 17ca66dca5SDmitry Baryshkov select QCOM_VADC_COMMON 18ca66dca5SDmitry Baryshkov help 19ca66dca5SDmitry Baryshkov This enables the thermal driver for the ADC thermal monitoring 20ca66dca5SDmitry Baryshkov device. It shows up as a thermal zone with multiple trip points. 21ca66dca5SDmitry Baryshkov Thermal client sets threshold temperature for both warm and cool and 22ca66dca5SDmitry Baryshkov gets updated when a threshold is reached. 23ca66dca5SDmitry Baryshkov 2472e9baf9SAmit Kucheriaconfig QCOM_SPMI_TEMP_ALARM 2572e9baf9SAmit Kucheria tristate "Qualcomm SPMI PMIC Temperature Alarm" 2672e9baf9SAmit Kucheria depends on OF && SPMI && IIO 2772e9baf9SAmit Kucheria select REGMAP_SPMI 2872e9baf9SAmit Kucheria help 2972e9baf9SAmit Kucheria This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP) 3072e9baf9SAmit Kucheria PMIC devices. It shows up in sysfs as a thermal sensor with multiple 3172e9baf9SAmit Kucheria trip points. The temperature reported by the thermal sensor reflects the 3272e9baf9SAmit Kucheria real time die temperature if an ADC is present or an estimate of the 3372e9baf9SAmit Kucheria temperature based upon the over temperature stage value. 3453bca371SThara Gopinath 3553bca371SThara Gopinathconfig QCOM_LMH 3653bca371SThara Gopinath tristate "Qualcomm Limits Management Hardware" 379e5a4fb8SJackie Liu depends on ARCH_QCOM && QCOM_SCM 3853bca371SThara Gopinath help 3953bca371SThara Gopinath This enables initialization of Qualcomm limits management 4053bca371SThara Gopinath hardware(LMh). LMh allows for hardware-enforced mitigation for cpus based on 4153bca371SThara Gopinath input from temperature and current sensors. On many newer Qualcomm SoCs 4253bca371SThara Gopinath LMh is configured in the firmware and this feature need not be enabled. 4353bca371SThara Gopinath However, on certain SoCs like sdm845 LMh has to be configured from kernel. 44