Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 951ae6f6 authored by David Collins's avatar David Collins
Browse files

ARM: dts: qcom: add mode control for S8C regulator for Kona

PMIC PM8150A SMPS regulator S8C is a parent of several LDO
regulators.  Barring an application processor mode request, the
S8C mode transitions from AUTO to retention when entering AOSS
sleep.  This can cause brown-outs if any of the child LDOs is
drawing significant current.

Add mode control support for S8C so that application processor
consumers can vote to keep S8C in AUTO mode when needed.  This
avoids power faults during AOSS sleep.

Change-Id: I6acb53aba1f08a3deec05b0661e1b07bbb5379a2
parent ee09dba8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -531,12 +531,18 @@
	rpmh-regulator-smpc8 {
		compatible = "qcom,rpmh-vrm-regulator";
		qcom,resource-name = "smpc8";
		qcom,regulator-type = "pmic5-hfsmps";
		qcom,supported-modes =
			<RPMH_REGULATOR_MODE_RET
			 RPMH_REGULATOR_MODE_AUTO>;
		qcom,mode-threshold-currents = <0 200000>;
		S8C: pm8150a_s8: regulator-pm8150a-s8 {
			regulator-name = "pm8150a_s8";
			qcom,set = <RPMH_REGULATOR_SET_ALL>;
			regulator-min-microvolt = <1200000>;
			regulator-max-microvolt = <1400000>;
			qcom,init-voltage = <1200000>;
			qcom,init-mode = <RPMH_REGULATOR_MODE_RET>;
		};
	};