[PATCH v2 6/8] arm64: dts: qcom: sm8150-mtp: Add regulators
Add the regulators found in the mtp platform. This platform consists of pmic PM8150, PM8150L and PM8009. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 327 1 file changed, 327 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts index 80b15f4f07c8..0513b24496f6 100644 --- a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts @@ -4,6 +4,7 @@ /dts-v1/; +#include #include "sm8150.dtsi" #include "pm8150.dtsi" #include "pm8150b.dtsi" @@ -20,6 +21,332 @@ chosen { stdout-path = "serial0:115200n8"; }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-min-microvolt = <370>; + regulator-max-microvolt = <370>; + }; + + /* +* Apparently RPMh does not provide support for PM8150 S4 because it +* is always-on; model it as a fixed regulator. +*/ + vreg_s4a_1p8: pm8150-s4 { + compatible = "regulator-fixed"; + regulator-name = "vreg_s4a_1p8"; + + regulator-min-microvolt = <180>; + regulator-max-microvolt = <180>; + + regulator-always-on; + regulator-boot-on; + + vin-supply = <&vph_pwr>; + }; +}; + +&apps_rsc { + pm8150-rpmh-regulators { + compatible = "qcom,pm8150-rpmh-regulators"; + qcom,pmic-id = "a"; + + vdd-s1-supply = <&vph_pwr>; + vdd-s2-supply = <&vph_pwr>; + vdd-s3-supply = <&vph_pwr>; + vdd-s4-supply = <&vph_pwr>; + vdd-s5-supply = <&vph_pwr>; + vdd-s6-supply = <&vph_pwr>; + vdd-s7-supply = <&vph_pwr>; + vdd-s8-supply = <&vph_pwr>; + vdd-s9-supply = <&vph_pwr>; + vdd-s10-supply = <&vph_pwr>; + + vdd-l1-l8-l11-supply = <&vreg_s6a_0p9>; + vdd-l2-l10-supply = <&vreg_bob>; + vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p9>; + vdd-l6-l9-supply = <&vreg_s8c_1p3>; + vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p0>; + vdd-l13-l16-l17-supply = <&vreg_bob>; + + vreg_s5a_2p0: smps5 { + regulator-min-microvolt = <1904000>; + regulator-max-microvolt = <200>; + }; + + vreg_s6a_0p9: smps6 { + regulator-min-microvolt = <92>; + regulator-max-microvolt = <1128000>; + }; + + vdda_wcss_pll: + vreg_l1a_0p75: ldo1 { + regulator-min-microvolt = <752000>; + regulator-max-microvolt = <752000>; + regulator-initial-mode = ; + }; + + vdd_pdphy: + vdda_usb_hs_3p1: + vreg_l2a_3p1: ldo2 { + regulator-min-microvolt = <3072000>; + regulator-max-microvolt = <3072000>; + regulator-initial-mode = ; + }; + + vreg_l3a_0p8: ldo3 { + regulator-min-microvolt = <48>; + regulator-max-microvolt = <932000>; + regulator-initial-mode = ; + }; + + vdd_usb_hs_core: + vdda_csi_0_0p9: + vdda_csi_1_0p9: + vdda_csi_2_0p9: + vdda_csi_3_0p9: + vdda_dsi_0_0p9: + vdda_dsi_1_0p9: + vdda_dsi_0_pll_0p9: + vdda_dsi_1_pll_0p9: + vdda_pcie_1ln_core: + vdda_pcie_2ln_core: + vdda_pll_hv_cc_ebi01: + vdda_pll_hv_cc_ebi23: + vdda_qrefs_0p875_5: + vdda_sp_sensor: + vdda_ufs_2ln_core_1: + vdda_ufs_2ln_core_2: + vdda_usb_ss_dp_core_1: + vdda_usb_ss_dp_core_2: + vdda_qlink_lv: + vdda_qlink_lv_ck: + vreg_l5a_0p875: ldo5 { + regulator-min-microvolt = <88>; + regulator-max-microvolt = <88>; + regulator-initial-mode = ; + }; + + vreg_l6a_1p2: ldo6 { + regulator-min-microvolt = <120>; + regulator-max-microvolt = <120>; + regulator-initial-mode = ; + }; + + vreg_l7a_1p8: ldo7 { + regulator-min-microvolt = <180>; + regulator-max-microvolt = <180>; + regulator-initial-mode = ; + }; + + vddpx_10: + vreg_l9
Re: [PATCH v2 6/8] arm64: dts: qcom: sm8150-mtp: Add regulators
On Tue, Aug 20, 2019 at 12:12:14PM +0530, Vinod Koul wrote: > Add the regulators found in the mtp platform. This platform consists of > pmic PM8150, PM8150L and PM8009. Is there a reason not to squash this this patch 5/8 ? > > Signed-off-by: Vinod Koul > --- > arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 327 > 1 file changed, 327 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts > b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts > index 80b15f4f07c8..0513b24496f6 100644 > --- a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts > +++ b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts > @@ -4,6 +4,7 @@ > > /dts-v1/; > > +#include > #include "sm8150.dtsi" > #include "pm8150.dtsi" > #include "pm8150b.dtsi" > @@ -20,6 +21,332 @@ > chosen { > stdout-path = "serial0:115200n8"; > }; > + > + vph_pwr: vph-pwr-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "vph_pwr"; > + regulator-min-microvolt = <370>; > + regulator-max-microvolt = <370>; > + }; > + > + /* > + * Apparently RPMh does not provide support for PM8150 S4 because it > + * is always-on; model it as a fixed regulator. > + */ > + vreg_s4a_1p8: pm8150-s4 { > + compatible = "regulator-fixed"; > + regulator-name = "vreg_s4a_1p8"; > + > + regulator-min-microvolt = <180>; > + regulator-max-microvolt = <180>; > + > + regulator-always-on; > + regulator-boot-on; > + > + vin-supply = <&vph_pwr>; > + }; > +}; > + > +&apps_rsc { > + pm8150-rpmh-regulators { > + compatible = "qcom,pm8150-rpmh-regulators"; > + qcom,pmic-id = "a"; > + > + vdd-s1-supply = <&vph_pwr>; > + vdd-s2-supply = <&vph_pwr>; > + vdd-s3-supply = <&vph_pwr>; > + vdd-s4-supply = <&vph_pwr>; > + vdd-s5-supply = <&vph_pwr>; > + vdd-s6-supply = <&vph_pwr>; > + vdd-s7-supply = <&vph_pwr>; > + vdd-s8-supply = <&vph_pwr>; > + vdd-s9-supply = <&vph_pwr>; > + vdd-s10-supply = <&vph_pwr>; > + > + vdd-l1-l8-l11-supply = <&vreg_s6a_0p9>; > + vdd-l2-l10-supply = <&vreg_bob>; > + vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p9>; > + vdd-l6-l9-supply = <&vreg_s8c_1p3>; > + vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p0>; > + vdd-l13-l16-l17-supply = <&vreg_bob>; > + > + vreg_s5a_2p0: smps5 { > + regulator-min-microvolt = <1904000>; > + regulator-max-microvolt = <200>; > + }; > + > + vreg_s6a_0p9: smps6 { > + regulator-min-microvolt = <92>; > + regulator-max-microvolt = <1128000>; > + }; > + > + vdda_wcss_pll: > + vreg_l1a_0p75: ldo1 { > + regulator-min-microvolt = <752000>; > + regulator-max-microvolt = <752000>; > + regulator-initial-mode = ; > + }; > + > + vdd_pdphy: > + vdda_usb_hs_3p1: > + vreg_l2a_3p1: ldo2 { > + regulator-min-microvolt = <3072000>; > + regulator-max-microvolt = <3072000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l3a_0p8: ldo3 { > + regulator-min-microvolt = <48>; > + regulator-max-microvolt = <932000>; > + regulator-initial-mode = ; > + }; > + > + vdd_usb_hs_core: > + vdda_csi_0_0p9: > + vdda_csi_1_0p9: > + vdda_csi_2_0p9: > + vdda_csi_3_0p9: > + vdda_dsi_0_0p9: > + vdda_dsi_1_0p9: > + vdda_dsi_0_pll_0p9: > + vdda_dsi_1_pll_0p9: > + vdda_pcie_1ln_core: > + vdda_pcie_2ln_core: > + vdda_pll_hv_cc_ebi01: > + vdda_pll_hv_cc_ebi23: > + vdda_qrefs_0p875_5: > + vdda_sp_sensor: > + vdda_ufs_2ln_core_1: > + vdda_ufs_2ln_core_2: > + vdda_usb_ss_dp_core_1: > + vdda_usb_ss_dp_core_2: > + vdda_qlink_lv: > + vdda_qlink_lv_ck: > + vreg_l5a_0p875: ldo5 { > + regulator-min-microvolt = <88>; > + regulator-max-microvolt = <88>; > + regulator-initial-mode = ; > + }; > + > + vreg_l6a_1p2: ldo6 { > + regulator-min-microvolt = <120>; > + regulator-max-microvolt = <120>; > + regulator-initial-mode = ; > + }; > + > + vreg_l7a_1p8: ldo7 { > + regulator-min-microvolt
Re: [PATCH v2 6/8] arm64: dts: qcom: sm8150-mtp: Add regulators
On 20-08-19, 14:26, Niklas Cassel wrote: > On Tue, Aug 20, 2019 at 12:12:14PM +0530, Vinod Koul wrote: > > Add the regulators found in the mtp platform. This platform consists of > > pmic PM8150, PM8150L and PM8009. > > Is there a reason not to squash this this patch 5/8 ? I typically like big chunks to split logically so that is the reason why I still kept this off from base dts one -- ~Vinod