devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 00/22] soc: qcom: spm: add support for SPM regulator
@ 2024-01-02  5:17 Dmitry Baryshkov
  2024-01-02  5:17 ` [PATCH v7 01/22] dt-bindings: soc: qcom: merge qcom,saw2.txt into qcom,spm.yaml Dmitry Baryshkov
                   ` (22 more replies)
  0 siblings, 23 replies; 36+ messages in thread
From: Dmitry Baryshkov @ 2024-01-02  5:17 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
	Konrad Dybcio, Andy Gross
  Cc: devicetree, linux-kernel, linux-arm-msm, Rob Herring

The apq8064 rework to use cacheinfo takes more than expected, so I've
spanwed this series. It is an excerpt of the APQ8064 cpufreq series
[1], so it it continues the version numbering for those patches.

The Subsystem Power Manager (SPM) / SPM AutoVoltageScaling Wrapper2
(SAW2) are hardware blocks used on some of Qualcomm platforms to handle
the voltage rails. It does this by bypassing RPM and directly
interfacing the PMIC. Extend current SPM driver to export this
regulator.

[1] https://lore.kernel.org/linux-arm-msm/20230827115033.935089-1-dmitry.baryshkov@linaro.org/

Changes since v6:
- Added SoC-specific compat strings on MSM8960, IPQ4019, IPQ8064
  platforms (Luca)
- Fixed saw2 node names on few remaining platforms.

Changes since v5:
- Added patch that moves SPM structs out of the header file
- Removed support for L2 SAW regulator (Stephan Gerhold).
  msm8960/apq8064 do not use this SAW2 to manage this regulator and
  other platforms will need changes anyway.

---
Dmitry Baryshkov (22):
      dt-bindings: soc: qcom: merge qcom,saw2.txt into qcom,spm.yaml
      dt-bindings: soc: qcom: qcom,saw2: add missing compatible strings
      dt-bindings: soc: qcom: qcom,saw2: define optional regulator node
      soc: qcom: spm: remove driver-internal structures from the driver API
      soc: qcom: spm: add support for voltage regulator
      ARM: dts: qcom: apq8084: use new compat string for L2 SAW2 unit
      ARM: dts: qcom: msm8974: use new compat string for L2 SAW2 unit
      ARM: dts: qcom: msm8960: use SoC-specific compatibles for SAW2 devices
      ARM: dts: qcom: ipq4019: use SoC-specific compatibles for SAW2 devices
      ARM: dts: qcom: ipq8064: use SoC-specific compatibles for SAW2 devices
      ARM: dts: qcom: apq8064: rename SAW nodes to power-manager
      ARM: dts: qcom: apq8084: rename SAW nodes to power-manager
      ARM: dts: qcom: msm8960: rename SAW nodes to power-manager
      ARM: dts: qcom: msm8974: rename SAW nodes to power-manager
      ARM: dts: qcom: ipq4019: rename SAW nodes to power-manager
      ARM: dts: qcom: ipq8064: rename SAW nodes to power-manager
      ARM: dts: qcom: apq8064: declare SAW2 regulators
      ARM: dts: qcom: msm8960: declare SAW2 regulators
      ARM: dts: qcom: apq8084: drop 'regulator' property from SAW2 device
      ARM: dts: qcom: msm8974: drop 'regulator' property from SAW2 device
      ARM: dts: qcom: ipq4019: drop 'regulator' property from SAW2 devices
      ARM: dts: qcom: ipq8064: drop 'regulator' property from SAW2 devices

 .../devicetree/bindings/arm/msm/qcom,saw2.txt      |  58 -----
 .../soc/qcom/{qcom,spm.yaml => qcom,saw2.yaml}     |  45 +++-
 arch/arm/boot/dts/qcom/qcom-apq8064.dtsi           |  32 ++-
 arch/arm/boot/dts/qcom/qcom-apq8084.dtsi           |  13 +-
 arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi           |  25 +-
 arch/arm/boot/dts/qcom/qcom-ipq8064.dtsi           |  10 +-
 arch/arm/boot/dts/qcom/qcom-msm8960.dtsi           |  20 +-
 arch/arm/boot/dts/qcom/qcom-msm8974.dtsi           |  13 +-
 drivers/soc/qcom/spm.c                             | 254 ++++++++++++++++++++-
 include/soc/qcom/spm.h                             |  23 +-
 10 files changed, 353 insertions(+), 140 deletions(-)
---
base-commit: 39676dfe52331dba909c617f213fdb21015c8d10
change-id: 20240101-saw2-spm-regulator-af0f81c15cdc

Best regards,
-- 
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>


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

end of thread, other threads:[~2024-02-16 23:10 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-02  5:17 [PATCH v7 00/22] soc: qcom: spm: add support for SPM regulator Dmitry Baryshkov
2024-01-02  5:17 ` [PATCH v7 01/22] dt-bindings: soc: qcom: merge qcom,saw2.txt into qcom,spm.yaml Dmitry Baryshkov
2024-01-02  5:17 ` [PATCH v7 02/22] dt-bindings: soc: qcom: qcom,saw2: add missing compatible strings Dmitry Baryshkov
2024-01-02 21:58   ` Krzysztof Kozlowski
2024-01-02  5:17 ` [PATCH v7 03/22] dt-bindings: soc: qcom: qcom,saw2: define optional regulator node Dmitry Baryshkov
2024-01-02  5:17 ` [PATCH v7 04/22] soc: qcom: spm: remove driver-internal structures from the driver API Dmitry Baryshkov
2024-01-02  5:17 ` [PATCH v7 05/22] soc: qcom: spm: add support for voltage regulator Dmitry Baryshkov
2024-01-02 17:15   ` Konrad Dybcio
2024-01-02  5:17 ` [PATCH v7 06/22] ARM: dts: qcom: apq8084: use new compat string for L2 SAW2 unit Dmitry Baryshkov
2024-01-02 17:06   ` Konrad Dybcio
2024-01-02  5:17 ` [PATCH v7 07/22] ARM: dts: qcom: msm8974: " Dmitry Baryshkov
2024-01-02 17:06   ` Konrad Dybcio
2024-01-02  5:17 ` [PATCH v7 08/22] ARM: dts: qcom: msm8960: use SoC-specific compatibles for SAW2 devices Dmitry Baryshkov
2024-01-02 17:06   ` Konrad Dybcio
2024-01-02  5:17 ` [PATCH v7 09/22] ARM: dts: qcom: ipq4019: " Dmitry Baryshkov
2024-01-02 17:07   ` Konrad Dybcio
2024-01-02  5:17 ` [PATCH v7 10/22] ARM: dts: qcom: ipq8064: " Dmitry Baryshkov
2024-01-02 17:07   ` Konrad Dybcio
2024-01-02  5:17 ` [PATCH v7 11/22] ARM: dts: qcom: apq8064: rename SAW nodes to power-manager Dmitry Baryshkov
2024-01-02  5:17 ` [PATCH v7 12/22] ARM: dts: qcom: apq8084: " Dmitry Baryshkov
2024-01-02 17:07   ` Konrad Dybcio
2024-01-02  5:17 ` [PATCH v7 13/22] ARM: dts: qcom: msm8960: " Dmitry Baryshkov
2024-01-02 17:07   ` Konrad Dybcio
2024-01-02  5:17 ` [PATCH v7 14/22] ARM: dts: qcom: msm8974: " Dmitry Baryshkov
2024-01-02 17:07   ` Konrad Dybcio
2024-01-02  5:17 ` [PATCH v7 15/22] ARM: dts: qcom: ipq4019: " Dmitry Baryshkov
2024-01-02 17:08   ` Konrad Dybcio
2024-01-02  5:17 ` [PATCH v7 16/22] ARM: dts: qcom: ipq8064: " Dmitry Baryshkov
2024-01-02 17:08   ` Konrad Dybcio
2024-01-02  5:17 ` [PATCH v7 17/22] ARM: dts: qcom: apq8064: declare SAW2 regulators Dmitry Baryshkov
2024-01-02  5:17 ` [PATCH v7 18/22] ARM: dts: qcom: msm8960: " Dmitry Baryshkov
2024-01-02  5:17 ` [PATCH v7 19/22] ARM: dts: qcom: apq8084: drop 'regulator' property from SAW2 device Dmitry Baryshkov
2024-01-02  5:17 ` [PATCH v7 20/22] ARM: dts: qcom: msm8974: " Dmitry Baryshkov
2024-01-02  5:17 ` [PATCH v7 21/22] ARM: dts: qcom: ipq4019: drop 'regulator' property from SAW2 devices Dmitry Baryshkov
2024-01-02  5:17 ` [PATCH v7 22/22] ARM: dts: qcom: ipq8064: " Dmitry Baryshkov
2024-02-16 23:10 ` (subset) [PATCH v7 00/22] soc: qcom: spm: add support for SPM regulator Bjorn Andersson

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