Re: [PATCH v4 3/3] thermal: qcom: add support for PMIC5 Gen3 ADC thermal monitoring
Jishnu Prakash <[email protected]> Wed, 5 Aug 2026 16:17:14 +0530
| Newsgroups | org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pm |
|---|---|
| Message-ID | <[email protected]> |
On 7/27/2026 9:13 PM, Daniel Lezcano wrote: > > Hi, > > Andy ? Are fine with these changes ? > Hi Andy, I have addressed all your V3 comments in this V4 patch. Can you please check and confirm if it looks fine to you ? Thanks, Jishnu > > > On 7/22/26 13:26, Jishnu Prakash wrote: >> Add support for ADC_TM part of PMIC5 Gen3 in an auxiliary driver >> under the Gen3 ADC driver. Its functionality is similar to that of >> PMIC5 Gen2 ADC_TM, which implements the threshold setting and >> interrupt generating functions, used to support thermal trip points. >> >> In Gen3 ADC, the register interface is implemented on one or more SDAM >> (Shared Direct Access Memory) peripherals instead of dedicated ADC >> peripherals. Each ADC SDAM has eight channels which can be configured >> for either immediate reads (main ADC driver's functionality) or ADC_TM >> reads. By convention, the first channel of the first ADC SDAM is reserved >> for all immediate reads and remaining channels across all SDAMs are used >> for ADC_TM functionality. >> >> On the first SDAM, the interrupt line and configuration registers are >> shared between the main ADC and auxiliary ADC_TM drivers. Access to the >> registers is protected through a mutex shared between the drivers. The >> ADC_TM driver accesses this mutex and some other functions shared from >> the main driver (like adc5_gen3_get_scaled_reading() for immediate channel >> reads in the .get_temp() callback) through APIs exported into a shared >> namespace. >> >> Signed-off-by: Jishnu Prakash <[email protected]> >> --- >> drivers/thermal/qcom/Kconfig | 9 + >> drivers/thermal/qcom/Makefile | 1 + >> drivers/thermal/qcom/qcom-spmi-adc-tm5-gen3.c | 434 ++++++++++++++++++++++++++ >> 3 files changed, 444 insertions(+) >>