ARM: dts: qcom: msm8974: move regulators to board files
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 28 Sep 2023 11:03:05 +0000 (14:03 +0300)
committerBjorn Andersson <andersson@kernel.org>
Tue, 14 Nov 2023 17:26:00 +0000 (11:26 -0600)
The vph-pwr and boost regulators (even if they are unified by design)
are not a property of SoC, so move them to board files.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230928110309.1212221-33-dmitry.baryshkov@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm/boot/dts/qcom/qcom-apq8074-dragonboard.dts
arch/arm/boot/dts/qcom/qcom-msm8974-lge-nexus5-hammerhead.dts
arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi
arch/arm/boot/dts/qcom/qcom-msm8974.dtsi
arch/arm/boot/dts/qcom/qcom-msm8974pro-fairphone-fp2.dts
arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts
arch/arm/boot/dts/qcom/qcom-msm8974pro-samsung-klte.dts
arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-castor.dts

index 950fa652f9856aec4ad15cb59985046859bba65a..d7fb3e0e888633d3c59fac307ab9f8893c29bf96 100644 (file)
                        no-map;
                };
        };
+
+       vreg_boost: vreg-boost {
+               compatible = "regulator-fixed";
+
+               regulator-name = "vreg-boost";
+               regulator-min-microvolt = <3150000>;
+               regulator-max-microvolt = <3150000>;
+
+               regulator-always-on;
+               regulator-boot-on;
+
+               gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&boost_bypass_n_pin>;
+       };
+
+       vreg_vph_pwr: vreg-vph-pwr {
+               compatible = "regulator-fixed";
+               regulator-name = "vph-pwr";
+
+               regulator-min-microvolt = <3600000>;
+               regulator-max-microvolt = <3600000>;
+
+               regulator-always-on;
+       };
 };
 
 &blsp1_uart2 {
index da99f770d4f57b669d0853f9ee00b71cb54e6663..ca402b4a68bd7bbf53603ebc2569e75ac88f8ca5 100644 (file)
                enable-gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
        };
 
+       vreg_boost: vreg-boost {
+               compatible = "regulator-fixed";
+
+               regulator-name = "vreg-boost";
+               regulator-min-microvolt = <3150000>;
+               regulator-max-microvolt = <3150000>;
+
+               regulator-always-on;
+               regulator-boot-on;
+
+               gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&boost_bypass_n_pin>;
+       };
+
+       vreg_vph_pwr: vreg-vph-pwr {
+               compatible = "regulator-fixed";
+               regulator-name = "vph-pwr";
+
+               regulator-min-microvolt = <3600000>;
+               regulator-max-microvolt = <3600000>;
+
+               regulator-always-on;
+       };
+
        vreg_wlan: wlan-regulator {
                compatible = "regulator-fixed";
 
index 23ae474698aa7b02c1f49996428071ed2683d1e4..a43341ae4495d67e5213049ee0fa792b28acb87d 100644 (file)
                        pmsg-size = <0x80000>;
                };
        };
+
+       vreg_boost: vreg-boost {
+               compatible = "regulator-fixed";
+
+               regulator-name = "vreg-boost";
+               regulator-min-microvolt = <3150000>;
+               regulator-max-microvolt = <3150000>;
+
+               regulator-always-on;
+               regulator-boot-on;
+
+               gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&boost_bypass_n_pin>;
+       };
+
+       vreg_vph_pwr: vreg-vph-pwr {
+               compatible = "regulator-fixed";
+               regulator-name = "vph-pwr";
+
+               regulator-min-microvolt = <3600000>;
+               regulator-max-microvolt = <3600000>;
+
+               regulator-always-on;
+       };
 };
 
 &blsp1_i2c2 {
index 0bc2e66d15b15621aa506ff2a3e0ad7fd300035e..b3a0a71c6369a117c8fa9ea792b1bf195386462e 100644 (file)
                             <GIC_PPI 1 0xf08>;
                clock-frequency = <19200000>;
        };
-
-       vreg_boost: vreg-boost {
-               compatible = "regulator-fixed";
-
-               regulator-name = "vreg-boost";
-               regulator-min-microvolt = <3150000>;
-               regulator-max-microvolt = <3150000>;
-
-               regulator-always-on;
-               regulator-boot-on;
-
-               gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
-               enable-active-high;
-
-               pinctrl-names = "default";
-               pinctrl-0 = <&boost_bypass_n_pin>;
-       };
-
-       vreg_vph_pwr: vreg-vph-pwr {
-               compatible = "regulator-fixed";
-               regulator-name = "vph-pwr";
-
-               regulator-min-microvolt = <3600000>;
-               regulator-max-microvolt = <3600000>;
-
-               regulator-always-on;
-       };
 };
index 6c4153689b39e5af4c65a40c844a44031b17aa7a..66c422004dcd8324763dc16178451b263ef038c7 100644 (file)
                enable-gpios = <&tlmm 86 GPIO_ACTIVE_HIGH>;
                vcc-supply = <&pm8941_l18>;
        };
+
+       vreg_boost: vreg-boost {
+               compatible = "regulator-fixed";
+
+               regulator-name = "vreg-boost";
+               regulator-min-microvolt = <3150000>;
+               regulator-max-microvolt = <3150000>;
+
+               regulator-always-on;
+               regulator-boot-on;
+
+               gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&boost_bypass_n_pin>;
+       };
+
+       vreg_vph_pwr: vreg-vph-pwr {
+               compatible = "regulator-fixed";
+               regulator-name = "vph-pwr";
+
+               regulator-min-microvolt = <3600000>;
+               regulator-max-microvolt = <3600000>;
+
+               regulator-always-on;
+       };
 };
 
 &blsp1_i2c2 {
index c0ca264d8140dba2050792fbdc0d5916e11a0684..6d1412aec45ae42f416a392e6e04b03f580760c9 100644 (file)
                        debounce-interval = <150>;
                };
        };
+
+       vreg_boost: vreg-boost {
+               compatible = "regulator-fixed";
+
+               regulator-name = "vreg-boost";
+               regulator-min-microvolt = <3150000>;
+               regulator-max-microvolt = <3150000>;
+
+               regulator-always-on;
+               regulator-boot-on;
+
+               gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&boost_bypass_n_pin>;
+       };
+
+       vreg_vph_pwr: vreg-vph-pwr {
+               compatible = "regulator-fixed";
+               regulator-name = "vph-pwr";
+
+               regulator-min-microvolt = <3600000>;
+               regulator-max-microvolt = <3600000>;
+
+               regulator-always-on;
+       };
 };
 
 &blsp1_i2c1 {
index 325feb89b343abdf5cb3485d22b2082496e6c2e2..ca3aa16b4b1027268d74558c20d0ceb384742b7e 100644 (file)
                enable-active-high;
        };
 
-       /delete-node/ vreg-boost;
+       vreg_vph_pwr: vreg-vph-pwr {
+               compatible = "regulator-fixed";
+               regulator-name = "vph-pwr";
+
+               regulator-min-microvolt = <3600000>;
+               regulator-max-microvolt = <3600000>;
+
+               regulator-always-on;
+       };
 };
 
 &blsp1_i2c2 {
index 0798cce3dbea01c560e5d341109d8d8ce2b4ad39..818ff58350317e4aaf02dcf453b38808abef311f 100644 (file)
                pinctrl-0 = <&lcd_dcdc_en_pin_a>;
        };
 
+       vreg_boost: vreg-boost {
+               compatible = "regulator-fixed";
+
+               regulator-name = "vreg-boost";
+               regulator-min-microvolt = <3150000>;
+               regulator-max-microvolt = <3150000>;
+
+               regulator-always-on;
+               regulator-boot-on;
+
+               gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&boost_bypass_n_pin>;
+       };
+
+       vreg_vph_pwr: vreg-vph-pwr {
+               compatible = "regulator-fixed";
+               regulator-name = "vph-pwr";
+
+               regulator-min-microvolt = <3600000>;
+               regulator-max-microvolt = <3600000>;
+
+               regulator-always-on;
+       };
+
        vreg_wlan: wlan-regulator {
                compatible = "regulator-fixed";