]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Support ROHM BD71815 regulators
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Mon, 5 Apr 2021 11:44:16 +0000 (14:44 +0300)
committerLee Jones <lee.jones@linaro.org>
Wed, 14 Apr 2021 09:20:50 +0000 (10:20 +0100)
commit58e26b73d3215de87fe31a98148f1d56f88aa29f
tree02fc32b50b1a024bbe846384fc2e06d63e7051dd
parent033fd91066e20da00e7d1a529691d6e30b5c50ee
regulator: Support ROHM BD71815 regulators

Support voltage control for regulators on ROHM BD71815 PMIC.

ROHM BD71815 contains 5 bucks, 7 LDOs and a boost (intended for LED).
Bucks 1 and 2 support HW state based voltage level and enable states. Other
regulators support HW state based enable states. All bucks and LDOs 1-5
allow voltage changes for RUN state and LDO4 can be enabled/disabled via
GPIO.

LDO3 does support changing between two predetermined voltages by using
a GPIO but this functionality is not included in this commit.

This work is derived from driver originally written by Tony Luo
<luofc@embedinfo.com> - although not much of original work is left.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/regulator/Kconfig
drivers/regulator/Makefile
drivers/regulator/bd71815-regulator.c [new file with mode: 0644]