[RESEND v9 11/12] mfd: rk808: Add RK805 power key support

2017-08-15 Thread Joseph Chen
Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index c803d2d..216fbf6 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -94,6 +94,19

[RESEND v9 12/12] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC

2017-08-15 Thread Joseph Chen
Signed-off-by: Joseph Chen Acked-by: Linus Walleij --- .../devicetree/bindings/pinctrl/pinctrl-rk805.txt | 63 ++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-rk805.txt diff --git a/Documentation/devicetree/bindings

Re: [PATCH v2 2/2] mfd: rk808: Add restart functionality

2018-03-12 Thread Joseph Chen
453,5 +453,6 @@ struct rk808 { longvariant; const struct regmap_config *regmap_cfg; const struct regmap_irq_chip*regmap_irq_chip; + struct notifier_block *nb; }; #endif /* __LINUX_REGULATOR_RK808_H */ -- Best Regards 陈健洪 (Joseph Chen) E-mail:che...@rock-chips.com 福州瑞芯微电子股份有限公司 Fuzhou Rockchip Electronics Co.Ltd 福建省福州市铜盘路软件大道89号软件园A区21号楼 (350003) No. 21 Building, A District, No.89,software Boulevard Fuzhou,Fujian,PRC TEL:0591-83991906/07-8573

Re: [PATCH v2 2/2] mfd: rk808: Add restart functionality

2018-03-13 Thread Joseph Chen
desired. My problem with the CRU reset is a strange behaviour in the ROM code. During a reset from MMC1 (eMMC), the ROM tries to load the SPL from MMC0 (SD). Daniel On 03/13/2018 04:32 AM, Joseph Chen wrote: Hi, Daniel:         On Rockchip platforms, we always use CRU to restart system. From

[PATCH v7 00/12] rk808: Add RK805 support

2017-07-21 Thread Joseph Chen
onfig: Name RK805 in Kconfig for RTC_DRV_RK808 mfd: dt-bindings: Add RK805 device tree bindings document Joseph Chen (5): pinctrl: Add pinctrl driver for the RK805 PMIC Input: Add power key driver for Rockchip RK805 PMIC mfd: rk808: Add RK805 pinctrl support mfd: rk808: Add RK805 power k

[PATCH v7 04/12] mfd: rk808: Add RK805 support

2017-07-21 Thread Joseph Chen
From: Elaine Zhang The RK805 chip is a Power Management IC (PMIC) for multimedia and handheld devices. It contains the following components: - Regulators - RTC - Clocking Both RK808 and RK805 chips are using a similar register map, so we can reuse the RTC and Clocking functionality.

[PATCH v7 01/12] mfd: rk808: fix up the chip id get failed

2017-07-21 Thread Joseph Chen
From: Elaine Zhang the rk8xx chip id is: ((MSB << 8) | LSB) & 0xfff0 Signed-off-by: Elaine Zhang --- drivers/mfd/rk808.c | 21 +++-- include/linux/mfd/rk808.h | 1 + 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c

[PATCH v7 02/12] mfd: rk808: add rk805 regs addr and ID

2017-07-21 Thread Joseph Chen
From: Elaine Zhang Signed-off-by: Elaine Zhang --- include/linux/mfd/rk808.h | 120 ++ 1 file changed, 120 insertions(+) diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h index 54feb14..d315659 100644 --- a/include/linux/mfd/rk808.h

[PATCH v7 03/12] regulator: rk808: Add regulator driver for RK805

2017-07-21 Thread Joseph Chen
From: Elaine Zhang Add support for the rk805 regulator. The regulator module consists of 4 DCDCs, 3 LDOs. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Elaine Zhang Acked-by: Mark Brown --- drivers/regulator/Kcon

[PATCH v7 06/12] rtc: Kconfig: Name RK805 in Kconfig for RTC_DRV_RK808

2017-07-21 Thread Joseph Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the rtc driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang --- drivers/rtc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH v7 07/12] mfd: dt-bindings: Add RK805 device tree bindings document

2017-07-21 Thread Joseph Chen
From: Elaine Zhang Add device tree bindings documentation for Rockchip's RK805 PMIC. Signed-off-by: Elaine Zhang Acked-by: Rob Herring --- Documentation/devicetree/bindings/mfd/rk808.txt | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Documentation/d

[PATCH v7 08/12] pinctrl: Add pinctrl driver for the RK805 PMIC

2017-07-21 Thread Joseph Chen
pins are pinmux, direction and output value, that is 'struct rk805_pin_config'. Signed-off-by: Joseph Chen --- drivers/pinctrl/Kconfig | 8 + drivers/pinctrl/Makefile| 1 + drivers/pinctrl/pinctrl-rk805.c | 496 3 files ch

[PATCH v7 09/12] Input: Add power key driver for Rockchip RK805 PMIC

2017-07-21 Thread Joseph Chen
This driver provides a input driver for the power key on the Rockchip RK805 PMIC. Signed-off-by: Joseph Chen --- drivers/input/misc/Kconfig| 6 +++ drivers/input/misc/Makefile | 1 + drivers/input/misc/rk805-pwrkey.c | 111 ++ 3 files

[PATCH v7 12/12] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC

2017-07-21 Thread Joseph Chen
Signed-off-by: Joseph Chen --- .../devicetree/bindings/pinctrl/pinctrl-rk805.txt | 63 ++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-rk805.txt diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-rk805

[PATCH v7 11/12] mfd: rk808: Add RK805 power key support

2017-07-21 Thread Joseph Chen
Signed-off-by: Joseph Chen --- drivers/mfd/rk808.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index db90471..6d9f96b 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -94,6 +94,19 @@ static bool

[PATCH v7 10/12] mfd: rk808: Add RK805 pinctrl support

2017-07-21 Thread Joseph Chen
Signed-off-by: Joseph Chen --- drivers/mfd/rk808.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 7276555..db90471 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -97,6 +97,7 @@ static bool rk808_is_volatile_reg(struct device

[PATCH v7 05/12] clk: Kconfig: Name RK805 in Kconfig for COMMON_CLK_RK808

2017-07-21 Thread Joseph Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the clk driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang --- drivers/clk/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH v8 00/12] rk808: Add RK805 support

2017-08-03 Thread Joseph Chen
change in v8: PATCH V8 1/12: add: Signed-off-by: Joseph Chen PATCH V8 2/12: add: Signed-off-by: Joseph Chen PATCH V8 3/12: add: Signed-off-by: Joseph Chen PATCH V8 4/12: add: Signed-off-by: Joseph Chen PATCH V8 5/12: add: Signed-off-by: Joseph Chen PATCH V8 6/12: add: Signed-off-by: Joseph

[PATCH v8 02/12] mfd: rk808: add rk805 regs addr and ID

2017-08-03 Thread Joseph Chen
From: Elaine Zhang Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen --- include/linux/mfd/rk808.h | 120 ++ 1 file changed, 120 insertions(+) diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h index 54feb14..d315659 100644

[PATCH v8 04/12] mfd: rk808: Add RK805 support

2017-08-03 Thread Joseph Chen
. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen --- drivers/mfd/Kconfig | 4 +- drivers/mfd/rk808.c | 108 2 files changed, 110 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index 55ecdfb

[PATCH v8 03/12] regulator: rk808: Add regulator driver for RK805

2017-08-03 Thread Joseph Chen
From: Elaine Zhang Add support for the rk805 regulator. The regulator module consists of 4 DCDCs, 3 LDOs. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Mark Brown

[PATCH v8 01/12] mfd: rk808: fix up the chip id get failed

2017-08-03 Thread Joseph Chen
From: Elaine Zhang the rk8xx chip id is: ((MSB << 8) | LSB) & 0xfff0 Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen --- drivers/mfd/rk808.c | 21 +++-- include/linux/mfd/rk808.h | 1 + 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/d

[PATCH v8 08/12] pinctrl: Add pinctrl driver for the RK805 PMIC

2017-08-03 Thread Joseph Chen
pins are pinmux, direction and output value, that is 'struct rk805_pin_config'. Signed-off-by: Joseph Chen --- drivers/pinctrl/Kconfig | 9 + drivers/pinctrl/Makefile| 1 + drivers/pinctrl/pinctrl-rk805.c | 493 3 files ch

[PATCH v8 10/12] mfd: rk808: Add RK805 pinctrl support

2017-08-03 Thread Joseph Chen
Signed-off-by: Joseph Chen Acked-by: Linus Walleij --- drivers/mfd/rk808.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 7276555..db90471 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -97,6 +97,7 @@ static bool

[PATCH v8 07/12] mfd: dt-bindings: Add RK805 device tree bindings document

2017-08-03 Thread Joseph Chen
From: Elaine Zhang Add device tree bindings documentation for Rockchip's RK805 PMIC. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Rob Herring --- Documentation/devicetree/bindings/mfd/rk808.txt | 22 +- 1 file changed, 21 insertions(+), 1 del

[PATCH v8 06/12] rtc: Kconfig: Name RK805 in Kconfig for RTC_DRV_RK808

2017-08-03 Thread Joseph Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the rtc driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen --- drivers/rtc/Kconfig | 4 ++-- 1 file chang

[PATCH v8 05/12] clk: Kconfig: Name RK805 in Kconfig for COMMON_CLK_RK808

2017-08-03 Thread Joseph Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the clk driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen --- drivers/clk/Kconfig | 4 ++-- 1 file chang

[PATCH v8 12/12] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC

2017-08-03 Thread Joseph Chen
Signed-off-by: Joseph Chen Acked-by: Linus Walleij --- .../devicetree/bindings/pinctrl/pinctrl-rk805.txt | 63 ++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-rk805.txt diff --git a/Documentation/devicetree/bindings

[PATCH v8 11/12] mfd: rk808: Add RK805 power key support

2017-08-03 Thread Joseph Chen
Signed-off-by: Joseph Chen --- drivers/mfd/rk808.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index db90471..6d9f96b 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -94,6 +94,19 @@ static bool

[PATCH v8 09/12] Input: Add power key driver for Rockchip RK805 PMIC

2017-08-03 Thread Joseph Chen
This driver provides a input driver for the power key on the Rockchip RK805 PMIC. Signed-off-by: Joseph Chen --- drivers/input/misc/Kconfig| 6 +++ drivers/input/misc/Makefile | 1 + drivers/input/misc/rk805-pwrkey.c | 111 ++ 3 files

[PATCH v1] arm64: dts: rockchip: add rk805 node for rk3328-evb

2017-08-08 Thread Joseph Chen
Signed-off-by: Joseph Chen --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 137 1 file changed, 137 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts b/arch/arm64/boot/dts/rockchip/rk3328-evb.dts index cf27239..e8705fd 100644 --- a/arch/arm64

[PATCH v2] arm64: dts: rockchip: add rk805 node for rk3328-evb

2017-08-08 Thread Joseph Chen
RK805 consists of 4 DCDCs, 3 LDOs. It's different from RK808 and RK818 that there are 2 output only GPIOs, we should add properties "gpio-controller" and "gpio-cells = <2>". Signed-off-by: Joseph Chen --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 137 +

[PATCH v2] Add rk805 node for rk3328-evb.dts

2017-08-08 Thread Joseph Chen
change in v2: add some sort of commit message. Joseph Chen (1): arm64: dts: rockchip: add rk805 node for rk3328-evb arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 137 1 file changed, 137 insertions(+) -- 1.9.1

[PATCH v9 00/12] rk808: Add RK805 support

2017-08-08 Thread Joseph Chen
change in v9: PATCH V9 1/12: (1) fix spelling issue: s/Chip/chip/ (2) add: Acked-for-MFD-by: Lee Jones PATCH V9 2/12 ~ 12/12: they are applied and no changes, so I don't resend them. change in v8: PATCH V8 1/12: add: Signed-off-by: Joseph Chen PATCH V8 2/12: add: Signed-o

[PATCH v9 01/12] mfd: rk808: fix up the chip id get failed

2017-08-08 Thread Joseph Chen
From: Elaine Zhang the rk8xx chip id is: ((MSB << 8) | LSB) & 0xfff0 Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 21 +++-- include/linux/mfd/rk808.h | 1 + 2 files changed, 16 insertions(+), 6

Re: [PATCH v9 00/12] rk808: Add RK805 support

2017-08-09 Thread Joseph Chen
在 2017/8/9 17:35, Heiko Stuebner 写道: Hi Joseph, Am Mittwoch, 9. August 2017, 10:10:41 CEST schrieb Joseph Chen: change in v9: PATCH V9 1/12: (1) fix spelling issue: s/Chip/chip/ (2) add: Acked-for-MFD-by: Lee Jones PATCH V9 2/12 ~ 12/12: they are applied and no changes, so

[PATCH v9 04/12] mfd: rk808: Add RK805 support

2017-08-09 Thread Joseph Chen
. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/Kconfig | 4 +- drivers/mfd/rk808.c | 108 2 files changed, 110 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/Kconfig b/drivers

[PATCH v9 01/12] mfd: rk808: fix up the chip id get failed

2017-08-09 Thread Joseph Chen
From: Elaine Zhang the rk8xx chip id is: ((MSB << 8) | LSB) & 0xfff0 Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 21 +++-- include/linux/mfd/rk808.h | 1 + 2 files changed, 16 insertions(+), 6

[PATCH v9 00/12] rk808: Add RK805 support

2017-08-09 Thread Joseph Chen
=next PATCH V9 10/12: apply tag: Acked-for-MFD-by: Lee Jones PATCH V9 11/12: apply tag: Acked-for-MFD-by: Lee Jones PATCH V9 12/12: None change in v8: PATCH V8 1/12: add: Signed-off-by: Joseph Chen PATCH V8 2/12: add: Signed-off-by: Joseph Chen PATCH V8 3/12: add: Signed-off-by: Joseph Chen PATCH

[PATCH v9 02/12] mfd: rk808: add rk805 regs addr and ID

2017-08-09 Thread Joseph Chen
From: Elaine Zhang Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- include/linux/mfd/rk808.h | 120 ++ 1 file changed, 120 insertions(+) diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h

[PATCH v9 03/12] regulator: rk808: Add regulator driver for RK805

2017-08-09 Thread Joseph Chen
From: Elaine Zhang Add support for the rk805 regulator. The regulator module consists of 4 DCDCs, 3 LDOs. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Mark Brown

[PATCH v9 05/12] clk: Kconfig: Name RK805 in Kconfig for COMMON_CLK_RK808

2017-08-09 Thread Joseph Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the clk driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen --- drivers/clk/Kconfig | 4 ++-- 1 file chang

[PATCH v9 07/12] mfd: dt-bindings: Add RK805 device tree bindings document

2017-08-09 Thread Joseph Chen
From: Elaine Zhang Add device tree bindings documentation for Rockchip's RK805 PMIC. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Rob Herring Acked-for-MFD-by: Lee Jones --- Documentation/devicetree/bindings/mfd/rk808.txt | 22 +- 1 file change

[PATCH v9 08/12] pinctrl: Add pinctrl driver for the RK805 PMIC

2017-08-09 Thread Joseph Chen
pins are pinmux, direction and output value, that is 'struct rk805_pin_config'. Signed-off-by: Joseph Chen Acked-by: Linus Walleij --- drivers/pinctrl/Kconfig | 9 + drivers/pinctrl/Makefile| 1 + drivers/pinctrl/pinctrl-rk805.c | 493 +

[PATCH v9 10/12] mfd: rk808: Add RK805 pinctrl support

2017-08-09 Thread Joseph Chen
Signed-off-by: Joseph Chen Acked-by: Linus Walleij Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 18329c8..c803d2d 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -97,6 +97,7

[PATCH v9 09/12] Input: Add power key driver for Rockchip RK805 PMIC

2017-08-09 Thread Joseph Chen
This driver provides a input driver for the power key on the Rockchip RK805 PMIC. Signed-off-by: Joseph Chen --- drivers/input/misc/Kconfig| 6 +++ drivers/input/misc/Makefile | 1 + drivers/input/misc/rk805-pwrkey.c | 111 ++ 3 files

[PATCH v9 06/12] rtc: Kconfig: Name RK805 in Kconfig for RTC_DRV_RK808

2017-08-09 Thread Joseph Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the rtc driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen --- drivers/rtc/Kconfig | 4 ++-- 1 file chang

[PATCH v9 11/12] mfd: rk808: Add RK805 power key support

2017-08-09 Thread Joseph Chen
Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index c803d2d..216fbf6 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -94,6 +94,19

[PATCH v9 12/12] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC

2017-08-09 Thread Joseph Chen
Signed-off-by: Joseph Chen Acked-by: Linus Walleij --- .../devicetree/bindings/pinctrl/pinctrl-rk805.txt | 63 ++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-rk805.txt diff --git a/Documentation/devicetree/bindings

[RESEND v9 02/12] mfd: rk808: add rk805 regs addr and ID

2017-08-15 Thread Joseph Chen
From: Elaine Zhang Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- include/linux/mfd/rk808.h | 120 ++ 1 file changed, 120 insertions(+) diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h

[RESEND v9 00/12] rk808: Add RK805 support

2017-08-15 Thread Joseph Chen
. Link: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git/log/?h=next PATCH V9 10/12: apply tag: Acked-for-MFD-by: Lee Jones PATCH V9 11/12: apply tag: Acked-for-MFD-by: Lee Jones PATCH V9 12/12: None change in v8: PATCH V8 1/12: add: Signed-off-by: Joseph Chen PATCH V8 2/12: add

[RESEND v9 01/12] mfd: rk808: fix up the chip id get failed

2017-08-15 Thread Joseph Chen
From: Elaine Zhang the rk8xx chip id is: ((MSB << 8) | LSB) & 0xfff0 Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 21 +++-- include/linux/mfd/rk808.h | 1 + 2 files changed, 16 insertions(+), 6

[RESEND v9 03/12] regulator: rk808: Add regulator driver for RK805

2017-08-15 Thread Joseph Chen
From: Elaine Zhang Add support for the rk805 regulator. The regulator module consists of 4 DCDCs, 3 LDOs. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Mark Brown

[RESEND v9 04/12] mfd: rk808: Add RK805 support

2017-08-15 Thread Joseph Chen
. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/Kconfig | 4 +- drivers/mfd/rk808.c | 108 2 files changed, 110 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/Kconfig b/drivers

[RESEND v9 05/12] clk: Kconfig: Name RK805 in Kconfig for COMMON_CLK_RK808

2017-08-15 Thread Joseph Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the clk driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen --- drivers/clk/Kconfig | 4 ++-- 1 file chang

[RESEND v9 07/12] mfd: dt-bindings: Add RK805 device tree bindings document

2017-08-15 Thread Joseph Chen
From: Elaine Zhang Add device tree bindings documentation for Rockchip's RK805 PMIC. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Rob Herring Acked-for-MFD-by: Lee Jones --- Documentation/devicetree/bindings/mfd/rk808.txt | 22 +- 1 file change

[RESEND v9 06/12] rtc: Kconfig: Name RK805 in Kconfig for RTC_DRV_RK808

2017-08-15 Thread Joseph Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the rtc driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen --- drivers/rtc/Kconfig | 4 ++-- 1 file chang

[RESEND v9 10/12] mfd: rk808: Add RK805 pinctrl support

2017-08-15 Thread Joseph Chen
Signed-off-by: Joseph Chen Acked-by: Linus Walleij Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 18329c8..c803d2d 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -97,6 +97,7

[RESEND v9 08/12] pinctrl: Add pinctrl driver for the RK805 PMIC

2017-08-15 Thread Joseph Chen
pins are pinmux, direction and output value, that is 'struct rk805_pin_config'. Signed-off-by: Joseph Chen Acked-by: Linus Walleij --- drivers/pinctrl/Kconfig | 9 + drivers/pinctrl/Makefile| 1 + drivers/pinctrl/pinctrl-rk805.c | 493 +

[RESEND v9 09/12] Input: Add power key driver for Rockchip RK805 PMIC

2017-08-15 Thread Joseph Chen
This driver provides a input driver for the power key on the Rockchip RK805 PMIC. Signed-off-by: Joseph Chen --- drivers/input/misc/Kconfig| 6 +++ drivers/input/misc/Makefile | 1 + drivers/input/misc/rk805-pwrkey.c | 111 ++ 3 files