Commit e444f6d6 authored by Heiko Stuebner's avatar Heiko Stuebner Committed by Lee Jones

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: default avatarTony Xie <tony.xie@rock-chips.com>
Acked-by: default avatarMark Brown <broonie@kernel.org>
[rebased on top of 5.2-rc1]
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 586c1b41
...@@ -762,11 +762,11 @@ config REGULATOR_RC5T583 ...@@ -762,11 +762,11 @@ config REGULATOR_RC5T583
outputs which can be controlled by i2c communication. outputs which can be controlled by i2c communication.
config REGULATOR_RK808 config REGULATOR_RK808
tristate "Rockchip RK805/RK808/RK818 Power regulators" tristate "Rockchip RK805/RK808/RK809/RK817/RK818 Power regulators"
depends on MFD_RK808 depends on MFD_RK808
help help
Select this option to enable the power regulator of ROCKCHIP Select this option to enable the power regulator of ROCKCHIP
PMIC RK805,RK808 and RK818. PMIC RK805,RK809&RK817,RK808 and RK818.
This driver supports the control of different power rails of device This driver supports the control of different power rails of device
through regulator interface. The device supports multiple DCDC/LDO through regulator interface. The device supports multiple DCDC/LDO
outputs which can be controlled by i2c communication. outputs which can be controlled by i2c communication.
......
This diff is collapsed.
...@@ -396,7 +396,10 @@ enum rk805_reg { ...@@ -396,7 +396,10 @@ enum rk805_reg {
#define SHUTDOWN_FUN (0x2 << 2) #define SHUTDOWN_FUN (0x2 << 2)
#define SLEEP_FUN (0x1 << 2) #define SLEEP_FUN (0x1 << 2)
#define RK8XX_ID_MSK 0xfff0 #define RK8XX_ID_MSK 0xfff0
#define PWM_MODE_MSK BIT(7)
#define FPWM_MODE BIT(7) #define FPWM_MODE BIT(7)
#define AUTO_PWM_MODE 0
enum rk817_reg_id { enum rk817_reg_id {
RK817_ID_DCDC1 = 0, RK817_ID_DCDC1 = 0,
RK817_ID_DCDC2, RK817_ID_DCDC2,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment