ARM: dts: qcom: msm8960: declare SAW2 regulators
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 2 Jan 2024 05:17:38 +0000 (07:17 +0200)
committerBjorn Andersson <andersson@kernel.org>
Fri, 16 Feb 2024 21:22:20 +0000 (15:22 -0600)
The SAW2 (SPM and AVS Wrapper) among other things is yet another way to
handle CPU-related PMIC regulators. Provide a way to control voltage of
these regulators.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240102-saw2-spm-regulator-v7-18-0472ec237f49@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm/boot/dts/qcom/qcom-msm8960.dtsi

index 3078c8b..922f9e4 100644 (file)
                saw0: power-manager@2089000 {
                        compatible = "qcom,msm8960-saw2-cpu", "qcom,saw2";
                        reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
-                       regulator;
+
+                       saw0_vreg: regulator {
+                               regulator-min-microvolt = <850000>;
+                               regulator-max-microvolt = <1300000>;
+                       };
                };
 
                saw1: power-manager@2099000 {
                        compatible = "qcom,msm8960-saw2-cpu", "qcom,saw2";
                        reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
-                       regulator;
+
+                       saw1_vreg: regulator {
+                               regulator-min-microvolt = <850000>;
+                               regulator-max-microvolt = <1300000>;
+                       };
                };
 
                gsbi5: gsbi@16400000 {