arm/dt: msm8974: Switch from native to RPM control of most regulators
Switch control of most PMIC PM8941 and PM8841 regulators from
direct native control via qpnp-regulator to indirect RPM control
via rpm-regulator-smd for MSM8974.
Also select MSM_RPM_REGULATOR_SMD for MSM8974 in the MSM8974
Kconfig file. This is necessary because acpuclock-krait requires
that either CONFIG_MSM_RPM_REGULATOR_SMD not be defined or that
it be defined and that the rpm-regulator-smd devices are
available. This requires that the switch from qpnp-regulator to
rpm-regulator-smd devices happen at the same time as
CONFIG_MSM_RPM_REGULATOR_SMD is defined.
Add more supply bindings in msm8974.dtsi so that the
acpuclock-krait driver may be able to successfully call
rpm_regulator_get().
Specify a qcom,consumer-supplies binding in the pm8841_s2_corner
device node for clock-8974.
Modify the voltage ranges for PM8841 SMPS 1 and SMPS 2. The
ranges when using qpnp-regulator control were:
S1 - 900000 to 1150000 uV
S2 - 900000 to 1150000 uV
Change these ranges to:
S1 - 675000 to 1050000 uV
S2 - 500000 to 1050000 uV
When using RPM control, it is safe to allow requests all the way
down to retention voltage levels. The max_uV change is a
correction. 1.15 V is not a supported voltage for S1 or S2.
Change-Id: I6dee530ebc20466ec740cbb07773d13912b7a728
Signed-off-by: David Collins <collinsd@codeaurora.org>
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig
index 27f72e0..4f0c261 100644
--- a/arch/arm/mach-msm/Kconfig
+++ b/arch/arm/mach-msm/Kconfig
@@ -246,6 +246,7 @@
select MSM_QDSP6_APR
select MSM_QDSP6V2_CODECS
select MSM_AUDIO_QDSP6V2 if SND_SOC
+ select MSM_RPM_REGULATOR_SMD
config ARCH_FSM9XXX
bool "FSM9XXX"