regulator: rk808: Add RK809 and RK817 support.
authorHeiko Stuebner <heiko@sntech.de>
Wed, 26 Jun 2019 12:29:18 +0000 (14:29 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 27 Jun 2019 13:57:31 +0000 (14:57 +0100)
commite444f6d68c07bc01a3a3d5905409dbe1ca391d26
treed5d53514eaefcd16962020b80ec1b5c7d4dfb6f9
parent586c1b4125b3c7bf5b482fcafab5d568b8a3c285
regulator: rk808: Add RK809 and RK817 support.

    Add support for the rk809 and rk817 regulator driver.
    Their specifications are as follows:
    1. The RK809 and RK809 consist of 5 DCDCs, 9 LDOs
       and have the same registers for these components except dcdc5.
    2. The dcdc5 is a boost dcdc for RK817 and is a buck for RK809.
    3. The RK817 has one switch but The Rk809 has two.

    The output voltages are configurable and are meant to supply power
    to the main processor and other components.

Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Acked-by: Mark Brown <broonie@kernel.org>
[rebased on top of 5.2-rc1]
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/regulator/Kconfig
drivers/regulator/rk808-regulator.c
include/linux/mfd/rk808.h