ARM: dts: qcom: apq8064: declare SAW2 regulators
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 2 Jan 2024 05:17:37 +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-17-0472ec237f49@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm/boot/dts/qcom/qcom-apq8064.dtsi

index fd35b75de5fb9a6e32d2c2c067147d2cc763d672..9a5ba978775aaa7c784cc676f799cf400333a26f 100644 (file)
                saw0: power-manager@2089000 {
                        compatible = "qcom,apq8064-saw2-v1.1-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,apq8064-saw2-v1.1-cpu", "qcom,saw2";
                        reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
-                       regulator;
+
+                       saw1_vreg: regulator {
+                               regulator-min-microvolt = <850000>;
+                               regulator-max-microvolt = <1300000>;
+                       };
                };
 
                saw2: power-manager@20a9000 {
                        compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
                        reg = <0x020a9000 0x1000>, <0x02009000 0x1000>;
-                       regulator;
+
+                       saw2_vreg: regulator {
+                               regulator-min-microvolt = <850000>;
+                               regulator-max-microvolt = <1300000>;
+                       };
                };
 
                saw3: power-manager@20b9000 {
                        compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
                        reg = <0x020b9000 0x1000>, <0x02009000 0x1000>;
-                       regulator;
+
+                       saw3_vreg: regulator {
+                               regulator-min-microvolt = <850000>;
+                               regulator-max-microvolt = <1300000>;
+                       };
                };
 
                sps_sic_non_secure: sps-sic-non-secure@12100000 {