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)
commit1aad39001e851cd7ee2d811eb5fd4b044979d9d5
tree02fc32b50b1a024bbe846384fc2e06d63e7051dd
parent18f3c62586f7b4e1f038f570acda61a25c97c4ee
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]