linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] thermal: qcom-spmi-temp-alarm: add support for new TEMP_ALARM subtypes
@ 2022-12-07  2:04 David Collins
  2022-12-07  2:04 ` [PATCH v2 1/3] thermal: qcom-spmi-temp-alarm: enable stage 2 shutdown when required David Collins
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: David Collins @ 2022-12-07  2:04 UTC (permalink / raw)
  To: Amit Kucheria, Thara Gopinath, Andy Gross, Bjorn Andersson
  Cc: David Collins, Konrad Dybcio, Rafael J . Wysocki, Daniel Lezcano,
	Zhang Rui, linux-arm-msm, linux-pm, linux-kernel

Add support in the qcom-spmi-temp-alarm driver for the new PMIC
TEMP_ALARM peripheral subtypes: GEN2 rev 2 and LITE.  The GEN2 rev 2
subtype provides greater flexibility in temperature threshold
specification by using an independent register value to configure
each of the three thresholds.  The LITE subtype utilizes a simplified
set of control registers to configure two thresholds: warning and
shutdown.

Also add support to avoid a potential issue on certain versions of
the TEMP_ALARM GEN2 subtype when automatic stage 2 partial shutdown
is disabled.

Changes since v1 [1]:
* Updated the thermal API usage in the patches to work with the recent commit
  ca1b9a9eb3fd ("thermal/drivers/qcom: Switch to new of API")

[1]: https://lore.kernel.org/lkml/cover.1663282895.git.quic_collinsd@quicinc.com/

David Collins (3):
  thermal: qcom-spmi-temp-alarm: enable stage 2 shutdown when required
  thermal: qcom-spmi-temp-alarm: add support for GEN2 rev 2 PMIC
    peripherals
  thermal: qcom-spmi-temp-alarm: add support for LITE PMIC peripherals

 drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 406 +++++++++++++++++++-
 1 file changed, 391 insertions(+), 15 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-12-07 14:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-07  2:04 [PATCH v2 0/3] thermal: qcom-spmi-temp-alarm: add support for new TEMP_ALARM subtypes David Collins
2022-12-07  2:04 ` [PATCH v2 1/3] thermal: qcom-spmi-temp-alarm: enable stage 2 shutdown when required David Collins
2022-12-07  2:04 ` [PATCH v2 2/3] thermal: qcom-spmi-temp-alarm: add support for GEN2 rev 2 PMIC peripherals David Collins
2022-12-07  2:04 ` [PATCH v2 3/3] thermal: qcom-spmi-temp-alarm: add support for LITE " David Collins
2022-12-07  6:45   ` kernel test robot
2022-12-07 14:30   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).