ARM: dts: msm8974: castor: Define pm8841 regulators
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 21 Nov 2022 21:22:25 +0000 (22:22 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 28 Dec 2022 02:55:19 +0000 (20:55 -0600)
Define the pm8841 regulators under SMD/RPM, to allow the modem
remoteproc to set the voltage during boot of the remote processor.

Entries are just copied from the Honami dts.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221121212226.321514-1-luca@z3ntu.xyz
arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts

index 3b1cc39..e3f5647 100644 (file)
 
 &rpm_requests {
        regulators-0 {
+               compatible = "qcom,rpm-pm8841-regulators";
+
+               pm8841_s1: s1 {
+                       regulator-min-microvolt = <675000>;
+                       regulator-max-microvolt = <1050000>;
+               };
+
+               pm8841_s2: s2 {
+                       regulator-min-microvolt = <500000>;
+                       regulator-max-microvolt = <1050000>;
+               };
+
+               pm8841_s3: s3 {
+                       regulator-min-microvolt = <500000>;
+                       regulator-max-microvolt = <1050000>;
+               };
+
+               pm8841_s4: s4 {
+                       regulator-min-microvolt = <500000>;
+                       regulator-max-microvolt = <1050000>;
+               };
+       };
+
+       regulators-1 {
                compatible = "qcom,rpm-pm8941-regulators";
 
                vdd_l1_l3-supply = <&pm8941_s1>;