From 9c2029038acb8456691f365dccae5dc5c8cf6249 Mon Sep 17 00:00:00 2001 From: David Collins Date: Wed, 15 Jul 2020 11:09:19 -0700 Subject: [PATCH] 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 --- qcom/lahaina-regulators.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/lahaina-regulators.dtsi b/qcom/lahaina-regulators.dtsi index 96130bfffee4..c7579bec6687 100644 --- a/qcom/lahaina-regulators.dtsi +++ b/qcom/lahaina-regulators.dtsi @@ -142,12 +142,18 @@ rpmh-regulator-smpb12 { compatible = "qcom,rpmh-vrm-regulator"; qcom,resource-name = "smpb12"; + qcom,regulator-type = "pmic5-hfsmps"; + qcom,supported-modes = + ; + qcom,mode-threshold-currents = <0 200000>; S12B: pm8350_s12: regulator-pm8350-s12 { regulator-name = "pm8350_s12"; qcom,set = ; regulator-min-microvolt = <1224000>; regulator-max-microvolt = <1360000>; qcom,init-voltage = <1256000>; + qcom,init-mode = ; }; };