thermal/drivers/qcom/tsens: Add support for tsens v1 without RPM
authorGeorge Moussalem <george.moussalem@outlook.com>
Fri, 28 Feb 2025 05:11:37 +0000 (09:11 +0400)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 16 May 2025 10:50:01 +0000 (12:50 +0200)
commit19f9b02ebc8fe3babefbe76a37c74c5f4c174de1
treebfec5b78041367568c94bf6a1cfdb1de71ee4249
parente3f90f167a49902cda2408f7e91cca0dcfd5040a
thermal/drivers/qcom/tsens: Add support for tsens v1 without RPM

Adding generic support for SoCs with tsens v1.0 IP with no RPM.
Due to lack of RPM, tsens has to be reset and enabled in the driver
init. SoCs can have support for more sensors than those which will
actually be enabled. As such, init will only enable those explicitly
added to the hw_ids array.

Co-developed-by: Sricharan Ramabadhran <quic_srichara@quicinc.com>
Signed-off-by: Sricharan Ramabadhran <quic_srichara@quicinc.com>
Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/DS7PR19MB8883C5D7974C7735E23923769DCC2@DS7PR19MB8883.namprd19.prod.outlook.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/qcom/tsens-v1.c
drivers/thermal/qcom/tsens.c
drivers/thermal/qcom/tsens.h