regulator: add QCOM RPMh regulator driver
authorDavid Collins <collinsd@codeaurora.org>
Sat, 14 Jul 2018 01:50:59 +0000 (18:50 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 10 Aug 2018 16:30:29 +0000 (17:30 +0100)
commit46fc033eba42f5a4fb583b2ab53f0a9918468452
treed094438bf9135787f0347733ee230ca2bc3433f7
parent0db021f7a2731cc559f0c5beb19ff3f677ff8626
regulator: add QCOM RPMh regulator driver

Add the QCOM RPMh regulator driver to manage PMIC regulators
which are controlled via RPMh on some Qualcomm Technologies, Inc.
SoCs.  RPMh is a hardware block which contains several
accelerators which are used to manage various hardware resources
that are shared between the processors of the SoC.  The final
hardware state of a regulator is determined within RPMh by
performing max aggregation of the requests made by all of the
processors.

Add support for PMIC regulator control via the voltage regulator
manager (VRM) and oscillator buffer (XOB) RPMh accelerators.
VRM supports manipulation of enable state, voltage, and mode.
XOB supports manipulation of enable state.

Signed-off-by: David Collins <collinsd@codeaurora.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig
drivers/regulator/Makefile
drivers/regulator/qcom-rpmh-regulator.c [new file with mode: 0644]