1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 29066073cSRajendra Nayakconfig QCOM_TSENS 39066073cSRajendra Nayak tristate "Qualcomm TSENS Temperature Alarm" 428fc7c98SRafał 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 24c3dce117SSatya Priya Kakitapalliconfig QCOM_SPMI_MBG_TM 25c3dce117SSatya Priya Kakitapalli tristate "Qualcomm SPMI PMIC MBG Temperature monitor" 26c3dce117SSatya Priya Kakitapalli depends on QCOM_SPMI_ADC5_GEN3 27c3dce117SSatya Priya Kakitapalli select REGMAP_SPMI 28c3dce117SSatya Priya Kakitapalli help 29c3dce117SSatya Priya Kakitapalli This enables Qualcomm PMIC MBG (Master Bandgap) thermal monitor. 30c3dce117SSatya Priya Kakitapalli 31c3dce117SSatya Priya Kakitapalli The MBG block monitors PMIC die temperature in hardware and raises an 32c3dce117SSatya Priya Kakitapalli interrupt when the programmed threshold is crossed. 33c3dce117SSatya Priya Kakitapalli 34c3dce117SSatya Priya Kakitapalli Temperature is read from the associated ADC channel, and threshold 35c3dce117SSatya Priya Kakitapalli interrupts are forwarded to the thermal framework as trip-violation 36c3dce117SSatya Priya Kakitapalli events. Current support handles a single LVL1 upper (hot) trip. 37c3dce117SSatya Priya Kakitapalli 38*948ee3a7SJishnu Prakashconfig QCOM_SPMI_ADC_TM5_GEN3 39*948ee3a7SJishnu Prakash tristate "Qualcomm SPMI PMIC Thermal Monitor ADC5 Gen3" 40*948ee3a7SJishnu Prakash depends on QCOM_SPMI_ADC5_GEN3 41*948ee3a7SJishnu Prakash help 42*948ee3a7SJishnu Prakash This enables the auxiliary thermal driver for the ADC5 Gen3 thermal 43*948ee3a7SJishnu Prakash monitoring device. It shows up as a thermal zone with multiple trip points. 44*948ee3a7SJishnu Prakash Thermal client sets threshold temperature for both warm and cool and 45*948ee3a7SJishnu Prakash gets updated when a threshold is reached. 46*948ee3a7SJishnu Prakash 4772e9baf9SAmit Kucheriaconfig QCOM_SPMI_TEMP_ALARM 4872e9baf9SAmit Kucheria tristate "Qualcomm SPMI PMIC Temperature Alarm" 4972e9baf9SAmit Kucheria depends on OF && SPMI && IIO 5072e9baf9SAmit Kucheria select REGMAP_SPMI 5172e9baf9SAmit Kucheria help 5272e9baf9SAmit Kucheria This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP) 5372e9baf9SAmit Kucheria PMIC devices. It shows up in sysfs as a thermal sensor with multiple 5472e9baf9SAmit Kucheria trip points. The temperature reported by the thermal sensor reflects the 5572e9baf9SAmit Kucheria real time die temperature if an ADC is present or an estimate of the 5672e9baf9SAmit Kucheria temperature based upon the over temperature stage value. 5753bca371SThara Gopinath 5853bca371SThara Gopinathconfig QCOM_LMH 5953bca371SThara Gopinath tristate "Qualcomm Limits Management Hardware" 6057eda47bSDmitry Baryshkov depends on ARCH_QCOM || COMPILE_TEST 6157eda47bSDmitry Baryshkov select QCOM_SCM 6253bca371SThara Gopinath help 6353bca371SThara Gopinath This enables initialization of Qualcomm limits management 6453bca371SThara Gopinath hardware(LMh). LMh allows for hardware-enforced mitigation for cpus based on 6553bca371SThara Gopinath input from temperature and current sensors. On many newer Qualcomm SoCs 6653bca371SThara Gopinath LMh is configured in the firmware and this feature need not be enabled. 6753bca371SThara Gopinath However, on certain SoCs like sdm845 LMh has to be configured from kernel. 68