ARM: dts: qcom: add mode control for S12B regulator for Lahaina

PMIC PM8350 SMPS regulator S12B is a parent of several LDO
regulators.  Barring an application processor mode request, the
S12B 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 S12B so that application processor
consumers can vote to keep S12B in AUTO mode when needed.  This
avoids power faults during AOSS sleep.

Change-Id: I63332dee71a8cd4fdc4b53546ad1e86641dd1a17
This commit is contained in:
David Collins 2020-07-15 11:09:19 -07:00 • committed by Gerrit - the friendly Code Review server
commit 9c2029038a

View file

@ -142,12 +142,18 @@
rpmh-regulator-smpb12 {
compatible = "qcom,rpmh-vrm-regulator";
qcom,resource-name = "smpb12";
qcom,regulator-type = "pmic5-hfsmps";
qcom,supported-modes =
<RPMH_REGULATOR_MODE_RET
RPMH_REGULATOR_MODE_AUTO>;
qcom,mode-threshold-currents = <0 200000>;
S12B: pm8350_s12: regulator-pm8350-s12 {
regulator-name = "pm8350_s12";
qcom,set = <RPMH_REGULATOR_SET_ALL>;
regulator-min-microvolt = <1224000>;
regulator-max-microvolt = <1360000>;
qcom,init-voltage = <1256000>;
qcom,init-mode = <RPMH_REGULATOR_MODE_RET>;
};
};