linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/12] sc8280xp-pmic updates and X13s thermal zone support
@ 2022-10-29  5:14 Manivannan Sadhasivam
  2022-10-29  5:14 ` [PATCH v2 01/12] dt-bindings: iio: qcom: adc7-pm8350: Allow specifying SID for channels Manivannan Sadhasivam
                   ` (12 more replies)
  0 siblings, 13 replies; 38+ messages in thread
From: Manivannan Sadhasivam @ 2022-10-29  5:14 UTC (permalink / raw)
  To: andersson
  Cc: konrad.dybcio, robh+dt, krzysztof.kozlowski+dt, johan+linaro,
	quic_jprakash, linux-arm-msm, devicetree, linux-kernel, steev,
	Manivannan Sadhasivam

Hello,

This series adds below updates to sc8280xp-pmics:

PM8280_{1/2}:
- Temp alarm
- Thermal zones
- VADC channels
- ADC_TM5 channels

PMK8280:
- ADC7 block
- VADC channels
- TM5 block

PMR735A:
- VADC channels

Also adds the thermal zone support to Lenovo X13s based on the thermistor
SYS_THERM6 that provides the laptop skin temperature.

The sc8280xp-pmics is based on the new PMIC7 architecture. In this, all the
ADC/TM5 measurements are collected by the primary PMIC PMK8280 from other
slave PMICs PM8280_{1/2}, PMR735A using the Programmable Boot Sequence (PBS)
and exposed them over the individual channels.

PMK8280 uses the Slave ID (SID) for identifying each slave PMICs in a system.
This ID is not static for each PMIC but rather set for each platform by the
hardware designers. So this series allows the configurable SID by modifying the
binding to accept SID values instead of hardcoding them.

This series is tested on Lenovo X13s laptop by monitoring the temperature of
the 8 on-board thermistors through IIO interface. The thermal zone support is
validated by adding loads to the CPUs and making sure the skin temperature stays
below the threshold provided in DT.

Thanks,
Mani

Changes in v2:

* Fixed issues reported by Krzysztof and "make dtbs_check"
* Collected reviews from Krzysztof
* Added the Lenovo X13s thermal zone patch

Manivannan Sadhasivam (12):
  dt-bindings: iio: qcom: adc7-pm8350: Allow specifying SID for channels
  arm64: dts: qcom: sc8280xp-pmics: Add temp alarm for PM8280_{1/2}
    PMICs
  arm64: dts: qcom: sc8280xp-pmics: Add thermal zones for PM8280_{1/2}
    PMICs
  arm64: dts: qcom: sc8280xp-pmics: Add support for PMK8280 RESIN input
  arm64: dts: qcom: sc8280xp-pmics: Add PMK8280 ADC7 block
  arm64: dts: qcom: sc8280xp-pmics: Add support for TM5 block in PMK8280
  arm64: dts: qcom: sc8280xp-x13s: Enable PMK8280 RESIN input
  arm64: dts: qcom: sc8280xp-x13s: Add PMK8280 VADC channels
  arm64: dts: qcom: sc8280xp-x13s: Add PM8280_{1/2} VADC channels
  arm64: dts: qcom: sc8280xp-x13s: Add PMR735A VADC channel
  arm64: dts: qcom: sc8280xp-x13s: Add PM8280_{1/2} ADC_TM5 channels
  arm64: dts: qcom: sc8280xp-x13s: Add thermal zone support

 .../bindings/thermal/qcom-spmi-adc-tm5.yaml   |   6 +-
 .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts    | 204 ++++++++++++++++++
 arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi  |  83 +++++++
 .../dt-bindings/iio/qcom,spmi-adc7-pm8350.h   |  90 ++++----
 4 files changed, 333 insertions(+), 50 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2022-11-03 12:12 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-29  5:14 [PATCH v2 00/12] sc8280xp-pmic updates and X13s thermal zone support Manivannan Sadhasivam
2022-10-29  5:14 ` [PATCH v2 01/12] dt-bindings: iio: qcom: adc7-pm8350: Allow specifying SID for channels Manivannan Sadhasivam
2022-10-29 22:07   ` Dmitry Baryshkov
2022-10-31 21:33   ` Rob Herring
2022-11-02 20:06   ` Krzysztof Kozlowski
2022-10-29  5:14 ` [PATCH v2 02/12] arm64: dts: qcom: sc8280xp-pmics: Add temp alarm for PM8280_{1/2} PMICs Manivannan Sadhasivam
2022-10-29 14:13   ` Konrad Dybcio
2022-10-29  5:14 ` [PATCH v2 03/12] arm64: dts: qcom: sc8280xp-pmics: Add thermal zones " Manivannan Sadhasivam
2022-10-29 14:13   ` Konrad Dybcio
2022-10-29  5:14 ` [PATCH v2 04/12] arm64: dts: qcom: sc8280xp-pmics: Add support for PMK8280 RESIN input Manivannan Sadhasivam
2022-10-29 14:15   ` Konrad Dybcio
2022-10-29  5:14 ` [PATCH v2 05/12] arm64: dts: qcom: sc8280xp-pmics: Add PMK8280 ADC7 block Manivannan Sadhasivam
2022-10-29 14:15   ` Konrad Dybcio
2022-10-29 14:17     ` Konrad Dybcio
2022-11-02 20:07   ` Krzysztof Kozlowski
2022-10-29  5:14 ` [PATCH v2 06/12] arm64: dts: qcom: sc8280xp-pmics: Add support for TM5 block in PMK8280 Manivannan Sadhasivam
2022-10-29 14:16   ` Konrad Dybcio
2022-10-29  5:14 ` [PATCH v2 07/12] arm64: dts: qcom: sc8280xp-x13s: Enable PMK8280 RESIN input Manivannan Sadhasivam
2022-10-29 14:16   ` Konrad Dybcio
2022-10-29  5:14 ` [PATCH v2 08/12] arm64: dts: qcom: sc8280xp-x13s: Add PMK8280 VADC channels Manivannan Sadhasivam
2022-10-29 14:18   ` Konrad Dybcio
2022-11-02 20:07   ` Krzysztof Kozlowski
2022-10-29  5:14 ` [PATCH v2 09/12] arm64: dts: qcom: sc8280xp-x13s: Add PM8280_{1/2} " Manivannan Sadhasivam
2022-10-29 14:20   ` Konrad Dybcio
2022-11-02 20:08   ` Krzysztof Kozlowski
2022-10-29  5:14 ` [PATCH v2 10/12] arm64: dts: qcom: sc8280xp-x13s: Add PMR735A VADC channel Manivannan Sadhasivam
2022-10-29 14:20   ` Konrad Dybcio
2022-11-02 20:08   ` Krzysztof Kozlowski
2022-10-29  5:14 ` [PATCH v2 11/12] arm64: dts: qcom: sc8280xp-x13s: Add PM8280_{1/2} ADC_TM5 channels Manivannan Sadhasivam
2022-10-29 14:21   ` Konrad Dybcio
2022-11-02 20:08   ` Krzysztof Kozlowski
2022-10-29  5:14 ` [PATCH v2 12/12] arm64: dts: qcom: sc8280xp-x13s: Add thermal zone support Manivannan Sadhasivam
2022-10-29 14:29   ` Konrad Dybcio
2022-10-29 19:07     ` Steev Klimaszewski
2022-11-03  5:50     ` Manivannan Sadhasivam
2022-11-03 10:02       ` Konrad Dybcio
2022-11-03 12:12         ` Manivannan Sadhasivam
2022-10-29 19:26 ` [PATCH v2 00/12] sc8280xp-pmic updates and X13s " Steev Klimaszewski

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).