From d32eef47f43ff4f97167a3bbdf17acd6d9724fce Mon Sep 17 00:00:00 2001 From: Jishnu Prakash Date: Mon, 27 Jul 2020 18:15:58 +0530 Subject: [PATCH] ARM: dts: msm: Update PM6150a BOB configuration Add properties speicfying supported BOB modes and threshold currents to support clients setting load current on BOB instead of setting mode directly. Also set initial BOB mode and correct its hardware type. Change-Id: I95eb5cedfb854a0beb9c9b33dd8af8207301e242 --- qcom/holi-regulators.dtsi | 8 ++++++++ qcom/pm6150l-rpm-regulator.dtsi | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/qcom/holi-regulators.dtsi b/qcom/holi-regulators.dtsi index 734b49d54237..7badbe0dc954 100644 --- a/qcom/holi-regulators.dtsi +++ b/qcom/holi-regulators.dtsi @@ -356,10 +356,17 @@ rpm-regulator-bobe { status = "okay"; + qcom,supported-modes = + ; + qcom,mode-threshold-currents = <0 1000000 2000000>; + BOB: pm6150a_bob: regulator-pm6150a-bob { regulator-min-microvolt = <1650000>; regulator-max-microvolt = <5500000>; qcom,init-voltage = <1650000>; + qcom,init-bob-mode = ; status = "okay"; }; @@ -367,6 +374,7 @@ regulator-min-microvolt = <1650000>; regulator-max-microvolt = <5500000>; qcom,init-voltage = <1650000>; + qcom,init-bob-mode = ; status = "okay"; }; }; diff --git a/qcom/pm6150l-rpm-regulator.dtsi b/qcom/pm6150l-rpm-regulator.dtsi index 16e94f7319d4..532b7fc68bb1 100644 --- a/qcom/pm6150l-rpm-regulator.dtsi +++ b/qcom/pm6150l-rpm-regulator.dtsi @@ -271,7 +271,7 @@ qcom,resource-name = "bobe"; qcom,resource-id = <1>; qcom,regulator-type = <4>; - qcom,regulator-hw-type = "pmic5-ldo"; + qcom,regulator-hw-type = "pmic5-bob"; qcom,send-defaults; status = "disabled";