Skip to content

thermal: qcom-spmi-temp-alarm: add support for new TEMP_ALARM subtypes

David Collins linux-arm-msm linux-pm lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/23 patches 3 repliesIn review
  2. v3 posting 1/23 patches 0 repliesSuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches0 repliesSuperseded

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3thermal: qcom-spmi-temp-alarm: enable stage 2 shutdown when requireddrivers/thermal/qcom/qcom-spmi-temp-alarm.c+30 -21 reply
2/3thermal: qcom-spmi-temp-alarm: add support for GEN2 rev 2 PMIC peripheralsdrivers/thermal/qcom/qcom-spmi-temp-alarm.c+156 -60 replies
3/3thermal: qcom-spmi-temp-alarm: add support for LITE PMIC peripheralsdrivers/thermal/qcom/qcom-spmi-temp-alarm.c+208 -91 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [RESEND PATCH v3 0/3] thermal: qcom-spmi-temp-alarm: add support for new TEMP_ALARM subtypes

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 v2 [1]:
* Added missing header <linux/bitfield.h> in the third patch

Changes since v1 [2]:
* 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/[email protected]/
[2]: https://lore.kernel.org/lkml/[email protected]/

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 | 407 +++++++++++++++++++-
 1 file changed, 392 insertions(+), 15 deletions(-)
Signature · 1 line
2.25.1