[PATCH v3 0/5] Add rockchip RK808 pmic driver

2014-08-23 Thread Chris Zhong
for register setting value - remove rtc alarm disable in shutdown - remove while(1) in shutdown - remove read 0x2f in probe Chris Zhong (5): MFD: Add rk808 device tree bindings documentation MFD: RK808: Add new mfd driver for RK808 RTC: RK808: add RTC driver for RK808 Regulator: RK808: Add

[PATCH v3 1/5] MFD: Add rk808 device tree bindings documentation

2014-08-23 Thread Chris Zhong
rk808.txt: Add device tree bindings for rockchip's rk808 pmic. Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v4: Adviced by doug - add clock-output-names propertiey - add a header file rockchip,rk808.h Changes in v3: - fix compile err Changes in v2: Adviced by javier.martinez

[PATCH v3 2/5] MFD: RK808: Add new mfd driver for RK808

2014-08-23 Thread Chris Zhong
-by: Chris Zhong z...@rock-chips.com --- Changes in v4: - use client-dev replace rk808-dev Changes in v3: None Changes in v2: Adviced by Mark Browm: - change of_find_node_by_name to find_child_by_name - use RK808_NUM_REGULATORS as the name of the constant - create a pdata when missing platform data

[PATCH v3 3/5] RTC: RK808: add RTC driver for RK808

2014-08-23 Thread Chris Zhong
RK808 PMIC is a MFD with RTC as one of the device. Adding RTC driver for supporting RTC device present inside RK808 PMIC. Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v4: - use client-dev replace rk808-dev Changes in v3: None Changes in v2: Adviced by javier.martinez - Add

[PATCH v3 4/5] Regulator: RK808: Add regulator driver for RK808

2014-08-23 Thread Chris Zhong
The regulator module consists of 4 DCDCs, 8 LDOs and 2 switches. The output voltages are configurable and are meant to supply power to the main processor and other components Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v4: Adviced by Lee Jones in v2 - modify the description

[PATCH v3 5/5] Clk: RK808: Add clkout driver for RK808

2014-08-23 Thread Chris Zhong
Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v4: Advices by Doug - add a #clock-cells propertiy - update the example Changes in v3: None Changes in v2: None drivers/clk/Kconfig|9 ++ drivers/clk/Makefile |1 + drivers/clk

[PATCH] Regulator: RK808: modify for struct rk808 change

2014-08-23 Thread Chris Zhong
use client-dev replace rk808-dev Signed-off-by: Chris Zhong z...@rock-chips.com --- drivers/regulator/rk808-regulator.c | 34 ++ 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808

[PATCH] Regulator: RK808: modify for struct rk808 change in v4

2014-08-24 Thread Chris Zhong
The dev has been deleted from struct rk808 in rk808 mfd driver v4, so rk808-dev should be replaced client-dev here. Signed-off-by: Chris Zhong z...@rock-chips.com --- drivers/regulator/rk808-regulator.c | 34 ++ 1 file changed, 14 insertions(+), 20 deletions

Re: [PATCH v2 2/5] MFD: RK808: Add new mfd driver for RK808

2014-08-24 Thread Chris Zhong
On 08/20/2014 05:21 PM, Lee Jones wrote: On Wed, 20 Aug 2014, Chris Zhong wrote: The RK808 chip is a power management IC for multimedia and handheld devices. It contains the following components: - Regulators - RTC The rk808 core driver is registered as a platform driver and provides

[PATCH v5 0/5] Add rockchip RK808 pmic driver

2014-08-25 Thread Chris Zhong
for register setting value - remove rtc alarm disable in shutdown - remove while(1) in shutdown - remove read 0x2f in probe Chris Zhong (5): dt-bindings: Add RK808 device tree bindings document MFD: RK808: Add new mfd driver for RK808 RTC: RK808: add RTC driver for RK808 Regulator: RK808: modify

[PATCH v5 1/5] dt-bindings: Add RK808 device tree bindings document

2014-08-25 Thread Chris Zhong
Add device tree bindings documentation and a header file for rockchip's RK808 pmic. Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v5: Adviced by doug - add some error checking in probe - move rockchip,rk808.h into the patch about dt-bindings Changes in v4: Adviced by doug - add

[PATCH v5 3/5] RTC: RK808: add RTC driver for RK808

2014-08-25 Thread Chris Zhong
Adding RTC driver for supporting RTC device present inside RK808 PMIC. Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v5: - fixed a bug about set_time failed Changes in v4: - use client-dev replace rk808-dev Changes in v3: None Changes in v2: Adviced by javier.martinez - Add

[PATCH v5 2/5] MFD: RK808: Add new mfd driver for RK808

2014-08-25 Thread Chris Zhong
-by: Chris Zhong z...@rock-chips.com --- Changes in v5: - re-edit base on Mark's branch Changes in v4: - use client-dev replace rk808-dev Changes in v3: None Changes in v2: Adviced by Mark Browm: - change of_find_node_by_name to find_child_by_name - use RK808_NUM_REGULATORS as the name

[PATCH v5 4/5] Regulator: RK808: modify for struct rk808 change

2014-08-25 Thread Chris Zhong
The dev has been deleted from struct rk808 in rk808 mfd driver so rk808-dev should be replaced by client-dev here. Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v5: None Changes in v4: Adviced by Lee Jones in v2 - modify the description in Kconfig - remove some unnecessary

[PATCH v5 5/5] clk: RK808: Add clkout driver for RK808

2014-08-25 Thread Chris Zhong
Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v5: Advices by Mark Brown - add description about regulator valid name. - add a header file rockchip,rk808. Changes in v4: Advices by Doug - add a #clock-cells propertiy - update the example Changes in v3: None Changes in v2: None

Re: [PATCH v3 4/5] Regulator: RK808: Add regulator driver for RK808

2014-08-25 Thread Chris Zhong
On 08/23/2014 10:57 PM, Mark Brown wrote: On Sat, Aug 23, 2014 at 07:04:50PM +0800, Chris Zhong wrote: The regulator module consists of 4 DCDCs, 8 LDOs and 2 switches. The output voltages are configurable and are meant to supply power to the main processor and other components To repeat what I

Re: [PATCH v5 5/5] clk: RK808: Add clkout driver for RK808

2014-08-25 Thread Chris Zhong
On 08/26/2014 01:59 AM, Doug Anderson wrote: Chris, On Mon, Aug 25, 2014 at 6:39 AM, Chris Zhong z...@rock-chips.com wrote: Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v5: Advices by Mark Brown - add description about regulator valid name. - add a header file rockchip

Re: [PATCH v5 1/5] dt-bindings: Add RK808 device tree bindings document

2014-08-25 Thread Chris Zhong
On 08/26/2014 04:14 AM, Doug Anderson wrote: Chris, On Mon, Aug 25, 2014 at 6:29 AM, Chris Zhong z...@rock-chips.com wrote: Add device tree bindings documentation and a header file for rockchip's RK808 pmic. Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v5: Adviced by doug

Re: [PATCH v5 2/5] MFD: RK808: Add new mfd driver for RK808

2014-08-25 Thread Chris Zhong
On 08/26/2014 04:44 AM, Doug Anderson wrote: Chris, On Mon, Aug 25, 2014 at 6:31 AM, Chris Zhong z...@rock-chips.com wrote: The RK808 chip is a power management IC for multimedia and handheld devices. It contains the following components: - Regulators - RTC The RK808 core driver

Re: [PATCH v5 3/5] RTC: RK808: add RTC driver for RK808

2014-08-26 Thread Chris Zhong
On 08/26/2014 11:22 AM, Doug Anderson wrote: + int ret; + + /* Has the RTC been programmed? */ + ret = regmap_update_bits(rk808-regmap, RK808_RTC_CTRL_REG, +BIT_RTC_CTRL_REG_RTC_V_OPT_M, 0); Can you explain what you're doing here? The comment

Re: [PATCH v2 2/5] MFD: RK808: Add new mfd driver for RK808

2014-08-26 Thread Chris Zhong
On 08/26/2014 05:22 PM, Lee Jones wrote: On Mon, 25 Aug 2014, Chris Zhong wrote: On 08/20/2014 05:21 PM, Lee Jones wrote: On Wed, 20 Aug 2014, Chris Zhong wrote: The RK808 chip is a power management IC for multimedia and handheld devices. It contains the following components: - Regulators

Re: [PATCH v2 2/5] MFD: RK808: Add new mfd driver for RK808

2014-08-26 Thread Chris Zhong
On 08/26/2014 06:20 PM, Lee Jones wrote: On Tue, 26 Aug 2014, Chris Zhong wrote: On 08/26/2014 05:22 PM, Lee Jones wrote: On Mon, 25 Aug 2014, Chris Zhong wrote: On 08/20/2014 05:21 PM, Lee Jones wrote: On Wed, 20 Aug 2014, Chris Zhong wrote: The RK808 chip is a power management IC

Re: [PATCH v2 2/5] MFD: RK808: Add new mfd driver for RK808

2014-08-26 Thread Chris Zhong
On 08/26/2014 07:20 PM, Lee Jones wrote: On Tue, 26 Aug 2014, Chris Zhong wrote: On 08/26/2014 06:20 PM, Lee Jones wrote: On Tue, 26 Aug 2014, Chris Zhong wrote: On 08/26/2014 05:22 PM, Lee Jones wrote: On Mon, 25 Aug 2014, Chris Zhong wrote: On 08/20/2014 05:21 PM, Lee Jones wrote

Re: [PATCH v2 2/5] MFD: RK808: Add new mfd driver for RK808

2014-08-26 Thread Chris Zhong
On 08/26/2014 08:23 PM, Lee Jones wrote: On Tue, 26 Aug 2014, Chris Zhong wrote: On 08/26/2014 07:20 PM, Lee Jones wrote: On Tue, 26 Aug 2014, Chris Zhong wrote: On 08/26/2014 06:20 PM, Lee Jones wrote: On Tue, 26 Aug 2014, Chris Zhong wrote: On 08/26/2014 05:22 PM, Lee Jones wrote

[PATCH v6 0/5] Add rockchip RK808 pmic driver

2014-08-26 Thread Chris Zhong
from rtc-rk808.c Adviced by javier.martinez - Add a separate clock driver, rather than in RTC driver Adviced by Mark Browm: - use defines for register setting value - remove rtc alarm disable in shutdown - remove while(1) in shutdown - remove read 0x2f in probe Chris Zhong (5): dt-bindings: Add

[PATCH v6 1/5] dt-bindings: Add RK808 device tree bindings document

2014-08-26 Thread Chris Zhong
Add device tree bindings documentation and a header file for rockchip's RK808 pmic. Signed-off-by: Chris Zhong z...@rock-chips.com Signed-off-by: Zhang Qing zhangq...@rock-chips.com --- Changes in v6: Advices by Mark Rutland - add description about clock-cells Advices by Doug - modify

[PATCH v6 2/5] MFD: RK808: Add new mfd driver for RK808

2014-08-26 Thread Chris Zhong
. Signed-off-by: Chris Zhong z...@rock-chips.com Signed-off-by: Zhang Qing zhangq...@rock-chips.com --- Changes in v6: Adviced by Lee Jones in v2 - rk808_i2c_client instead of g_rk808 - remove pdata form struct rk808 Changes in v5: None Changes in v4: Adviced by Lee Jones in v2 - modify the description

[PATCH v6 3/5] RTC: RK808: add RTC driver for RK808

2014-08-26 Thread Chris Zhong
Adding RTC driver for supporting RTC device present inside RK808 PMIC. Signed-off-by: Chris Zhong z...@rock-chips.com Signed-off-by: Zhang Qing zhangq...@rock-chips.com --- Changes in v6: Adviced by doug - move RTC_READSEL setting into probe Changes in v5: - fixed a bug about set_time failed

[PATCH v6 4/5] clk: RK808: Add clkout driver for RK808

2014-08-26 Thread Chris Zhong
Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v6: Adviced by doug - use correct argument call of_clk_add_provider in probe Changes in v5: Adviced by doug - add some error checking in probe - move rockchip,rk808.h into the patch about dt-bindings Changes in v4: Adviced by doug

[PATCH v6 5/5] regulator: RK808: remove redundant code

2014-08-26 Thread Chris Zhong
remove the redundant code, since pdata has been removed from stuct rk808 Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v6: - remove the redundant code Changes in v5: - re-edit base on Mark's branch Changes in v4: - use client-dev replace rk808-dev Changes in v3: None Changes

[PATCH v2 0/5] Add rockchip RK808 pmic driver

2014-08-19 Thread Chris Zhong
with devm_regulator_register - some other problem with coding style Adviced by javier.martinez - Add a separate clock driver, rather than in RTC driver Adviced by Mark Browm: - use defines for register setting value - remove rtc alarm disable in shutdown - remove while(1) in shutdown - remove read 0x2f in probe Chris

[PATCH v2 1/5] MFD: Add rk808 device tree bindings documentation

2014-08-19 Thread Chris Zhong
rk808.txt: Add device tree bindings for rockchip's rk808 pmic. Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v2: Adviced by javier.martinez - separated from rtc-rk808.c Documentation/devicetree/bindings/mfd/rk808.txt | 128 +++ 1 file changed, 128

[PATCH v2 2/5] MFD: RK808: Add new mfd driver for RK808

2014-08-19 Thread Chris Zhong
-by: Chris Zhong z...@rock-chips.com --- Changes in v2: Adviced by Mark Browm: - change of_find_node_by_name to find_child_by_name - use RK808_NUM_REGULATORS as the name of the constant - create a pdata when missing platform data - use the rk808_reg name to supply_regulator name - replace

[PATCH v2 3/5] RTC: RK808: add RTC driver for RK808

2014-08-19 Thread Chris Zhong
RK808 PMIC is a MFD with RTC as one of the device. Adding RTC driver for supporting RTC device present inside RK808 PMIC. Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v2: Adviced by javier.martinez - Add a separate clock driver, rather than in RTC driver drivers/rtc/Kconfig

[PATCH v2 4/5] Regulator: RK808: Add regulator driver for RK808

2014-08-19 Thread Chris Zhong
The regulator module consists of 4 DCDCs, 8 LDOs and 2 switches. The output voltages are configurable and are meant to supply power to the main processor and other components Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v2: Adviced by Mark Browm: - use defines for register

[PATCH v2 5/5] Clk: RK808: Add clkout driver for RK808

2014-08-19 Thread Chris Zhong
Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v2: None drivers/clk/Kconfig |9 +++ drivers/clk/Makefile|1 + drivers/clk/clk-rk808.c | 146 +++ 3 files changed, 156 insertions(+) create mode 100644 drivers/clk/clk

[PATCH v3 0/5] Add rockchip RK808 pmic driver

2014-08-21 Thread Chris Zhong
while(1) in shutdown - remove read 0x2f in probe Chris Zhong (5): MFD: Add rk808 device tree bindings documentation MFD: RK808: Add new mfd driver for RK808 RTC: RK808: add RTC driver for RK808 Regulator: RK808: Add regulator driver for RK808 Clk: RK808: Add clkout driver for RK808

[PATCH v3 1/5] MFD: Add rk808 device tree bindings documentation

2014-08-21 Thread Chris Zhong
rk808.txt: Add device tree bindings for rockchip's rk808 pmic. Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v3: - fix compile err Changes in v2: Adviced by javier.martinez - separated from rtc-rk808.c Documentation/devicetree/bindings/mfd/rk808.txt | 128

[PATCH v3 2/5] MFD: RK808: Add new mfd driver for RK808

2014-08-21 Thread Chris Zhong
-by: Chris Zhong z...@rock-chips.com --- Changes in v3: None Changes in v2: Adviced by Mark Browm: - change of_find_node_by_name to find_child_by_name - use RK808_NUM_REGULATORS as the name of the constant - create a pdata when missing platform data - use the rk808_reg name to supply_regulator name

[PATCH v3 3/5] RTC: RK808: add RTC driver for RK808

2014-08-21 Thread Chris Zhong
RK808 PMIC is a MFD with RTC as one of the device. Adding RTC driver for supporting RTC device present inside RK808 PMIC. Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v3: None Changes in v2: Adviced by javier.martinez - Add a separate clock driver, rather than in RTC driver

[PATCH v3 4/5] Regulator: RK808: Add regulator driver for RK808

2014-08-21 Thread Chris Zhong
The regulator module consists of 4 DCDCs, 8 LDOs and 2 switches. The output voltages are configurable and are meant to supply power to the main processor and other components Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v3: - fix compile err Changes in v2: Adviced by Mark

[PATCH v3 5/5] Clk: RK808: Add clkout driver for RK808

2014-08-21 Thread Chris Zhong
Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v3: None Changes in v2: None drivers/clk/Kconfig |9 +++ drivers/clk/Makefile|1 + drivers/clk/clk-rk808.c | 147 +++ 3 files changed, 157 insertions(+) create mode

[PATCH 0/4] Add rockchip RK808 pmic driver

2014-08-16 Thread Chris Zhong
This is the initial version of the RK808 PMIC. This is a power management IC for multimedia products. It provides regulators that are able to supply power to processor cores and other components. The chip provides other modules including RTC, Clockout Chris Zhong (4): MFD: Add rk808 device

[PATCH 1/4] MFD: Add rk808 device tree bindings documentation

2014-08-16 Thread Chris Zhong
rk808.txt: Add device tree bindings for rockchip's rk808 pmic. Signed-off-by: Chris Zhong z...@rock-chips.com --- Documentation/devicetree/bindings/mfd/rk808.txt | 128 +++ 1 file changed, 128 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/rk808.txt

[PATCH 2/4] MFD: RK808: Add new mfd device for RK808

2014-08-16 Thread Chris Zhong
-by: Chris Zhong z...@rock-chips.com --- drivers/mfd/Kconfig | 13 ++ drivers/mfd/Makefile |1 + drivers/mfd/rk808.c | 311 + include/linux/mfd/rk808.h | 219 +++ 4 files changed, 544 insertions(+) create

[PATCH 3/4] RK808: Add rk808 regulator driver

2014-08-16 Thread Chris Zhong
The regulator module consists of 4 DCDCs, 8 LDOs and 2 switches. The output voltages are configurable and are meant to supply power to the main processor and other components Signed-off-by: Chris Zhong z...@rock-chips.com --- drivers/regulator/Kconfig | 10 + drivers/regulator

[PATCH 4/4] RTC: rk808: add RTC driver for RK808 PMIC RTC

2014-08-16 Thread Chris Zhong
RK808 PMIC is a MFD with RTC as one of the device. Adding RTC driver for supporting RTC device present inside RK808 PMIC. Signed-off-by: Chris Zhong z...@rock-chips.com --- drivers/rtc/Kconfig | 11 + drivers/rtc/Makefile|1 + drivers/rtc/rtc-rk808.c | 564

Re: [PATCH 1/4] pinctrl: rockchip: Set wake_enabled

2014-10-20 Thread Chris Zhong
Tested-by: Chris Zhong z...@rock-chips.com On 10/20/2014 04:27 PM, Doug Anderson wrote: The rockchip pinctrl driver uses irq_gc_set_wake() but doesn't setup the .wake_enabled member. That means that we can never actually use a pin for wakeup. When irq_set_irq_wake() tries to call through

Re: [PATCH 2/4] pinctrl: rockchip: Don't call pinctrl_gpio_direction_output() in pin_config_set()

2014-10-20 Thread Chris Zhong
); if (rc) return rc; break; Tested-by: Chris Zhong z...@rock-chips.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH 3/4] pinctrl: rockchip: Parse pin groups before calling pinctrl_register()

2014-10-20 Thread Chris Zhong
) { - pinctrl_unregister(info-pctl_dev); - return ret; - } - return 0; } Tested-by: Chris Zhong z...@rock-chips.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo

[PATCH v4 0/6] this is the 1st version of suspend. RK3288 can shut down the cpu, gpu and

2014-10-21 Thread Chris Zhong
suspend/resume functions Chris Zhong (5): pinctrl: rockchip: save and restore gpio6_c6 pinmux in suspend/resume clk: rockchip: RK3288: add suspend and resume ARM: rockchip: add suspend and resume for RK3288 ARM: rockchip: Add pmu-sram binding ARM: dts: add RK3288 suspend support

[PATCH v4 1/6] pinctrl: rockchip: add suspend/resume functions

2014-10-21 Thread Chris Zhong
From: Chris z...@rock-chips.com support suspend/resume of pinctrl, it allows handling sleep mode for hogged pins in pinctrl Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v4: - use SIMPLE_DEV_PM_OPS for suspend/resume struct Changes in v3: None Changes in v2: None drivers

[PATCH v4 2/6] pinctrl: rockchip: save and restore gpio6_c6 pinmux in suspend/resume

2014-10-21 Thread Chris Zhong
Save and restore the gpio6_c6 pinmux setting, since Maskrom of RK3288 would modify it to sdmmc0_det, so it need to be restored to the correct setting after resume from Maskrom. Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v4: None Changes in v3: None Changes in v2: None

[PATCH v4 4/6] ARM: rockchip: add suspend and resume for RK3288

2014-10-21 Thread Chris Zhong
It's a basic version of suspend and resume for rockchip, it only support RK3288 now. Signed-off-by: Tony Xie x...@rock-chips.com Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v4: - remove grf regmap Changes in v3: - move the pinmux of gpio6_c6 save and restore to pinctrl

[PATCH v4 3/6] clk: rockchip: RK3288: add suspend and resume

2014-10-21 Thread Chris Zhong
save and restore some clks, which might be changed in suspend. Signed-off-by: Tony Xie x...@rock-chips.com Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v4: None Changes in v3: None Changes in v2: - __raw_readl/__raw_writel replaced by readl_relaxed/writel_relaxed drivers/clk

[PATCH v4 5/6] ARM: rockchip: Add pmu-sram binding

2014-10-21 Thread Chris Zhong
The pmu-sram is used to store resume code, suspend/resume need get the address of it. Therefore add a binding and documentation for it. Signed-off-by: Tony Xie x...@rock-chips.com Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v4: None Changes in v3: None Changes in v2: None

[PATCH v4 6/6] ARM: dts: add RK3288 suspend support

2014-10-21 Thread Chris Zhong
pinctrl as part of the PMIC config. Signed-off-by: Tony Xie x...@rock-chips.com Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v4: None Changes in v3: None Changes in v2: - put rockchip,rk3288-pmu-sram to first arch/arm/boot/dts/rk3288.dtsi | 11 +++ 1 file changed, 11

[PATCH v7 0/5] Add rockchip RK808 pmic driver

2014-09-01 Thread Chris Zhong
to find_child_by_name - use RK808_NUM_REGULATORS as the name of the constant - create a pdata when missing platform data - use the rk808_reg name to supply_regulator name - replace regulator_register with devm_regulator_register - some other problem with coding style Chris Zhong (5): dt-bindings: Add RK808

[PATCH v7 1/5] dt-bindings: Add RK808 device tree bindings document

2014-09-01 Thread Chris Zhong
Add device tree bindings documentation and a header file for rockchip's RK808 pmic. Signed-off-by: Chris Zhong z...@rock-chips.com Signed-off-by: Zhang Qing zhangq...@rock-chips.com --- Changes in v7: Advices by Mark Rutland - modify description about clock-cells - update the example Changes

[PATCH v7 2/5] MFD: RK808: Add new mfd driver for RK808

2014-09-01 Thread Chris Zhong
. Signed-off-by: Chris Zhong z...@rock-chips.com Signed-off-by: Zhang Qing zhangq...@rock-chips.com --- Changes in v7: Adviced by Lee Jones - coding style - remove rk808_pre_init function Adviced by Doug - add OF to the dependencies - add .init_ack_masked = true in rk808_irq_chip Changes in v6: Adviced

[PATCH v7 3/5] RTC: RK808: add RTC driver for RK808

2014-09-01 Thread Chris Zhong
Adding RTC driver for supporting RTC device present inside RK808 PMIC. Signed-off-by: Chris Zhong z...@rock-chips.com Signed-off-by: Zhang Qing zhangq...@rock-chips.com --- Changes in v7: Adviced by doug - read rtc time from shadowed registers Adviced by Dmitry - use CONFIG_PM_SLEEP replace

[PATCH v7 4/5] clk: RK808: Add clkout driver for RK808

2014-09-01 Thread Chris Zhong
Signed-off-by: Chris Zhong z...@rock-chips.com Reviewed-by: Doug Anderson diand...@chromium.org Tested-by: Doug Anderson diand...@chromium.org --- Changes in v7: Adviced by doug -fix coding style problems Changes in v6: Adviced by doug - use correct argument call of_clk_add_provider in probe

[PATCH v7 5/5] regulator: RK808: Remove pdata from the regulator

2014-09-01 Thread Chris Zhong
Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v7: - remove pdata struct from header file, add rk808_regulator struct Changes in v6: - remove the redundant code Changes in v5: - re-edit base on Mark's branch Changes in v4: - use client-dev replace rk808-dev Changes in v3: None

[PATCH] regulator: rk808: Add support setting suspend voltage

2014-10-07 Thread Chris Zhong
support setting suspend voltage and disable regulator in suspend. Signed-off-by: Chris Zhong z...@rock-chips.com --- drivers/regulator/rk808-regulator.c | 37 +++ 1 file changed, 37 insertions(+) diff --git a/drivers/regulator/rk808-regulator.c b/drivers

Re: [PATCH] regulator: rk808: Fix min_uV for DCDC1 DCDC2

2014-10-06 Thread Chris Zhong
On 10/01/2014 06:52 AM, Mark Brown wrote: On Tue, Sep 30, 2014 at 06:57:51PM +0200, Heiko Stübner wrote: Am Dienstag, 30. September 2014, 09:43:47 schrieb Doug Anderson: On Tue, Sep 30, 2014 at 2:44 AM, Chris Zhong z...@rock-chips.com wrote: - REGULATOR_LINEAR_RANGE(70, 0, 63

[PATCH] regulator: rk808: Fix min_uV for DCDC1 DCDC2

2014-09-30 Thread Chris Zhong
The min_uv in DCDC1 DCDC2 should be 712.5mv Signed-off-by: Chris Zhong z...@rock-chips.com --- drivers/regulator/rk808-regulator.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index e305416

[PATCH v6 1/7] pinctrl: rockchip: add suspend/resume functions

2014-10-29 Thread Chris Zhong
support suspend/resume of pinctrl, it allows handling sleep mode for hogged pins in pinctrl Signed-off-by: Chris Zhong z...@rock-chips.com Tested-by: Doug Anderson diand...@chromium.org Reviewed-by: Doug Anderson diand...@chromium.org Tested-by: Heiko Stuebner he...@sntech.de Reviewed-by: Heiko

[PATCH v6 3/7] clk: rockchip: RK3288: add suspend and resume

2014-10-29 Thread Chris Zhong
save and restore some clks, which might be changed in suspend. Signed-off-by: Tony Xie x...@rock-chips.com Signed-off-by: Chris Zhong z...@rock-chips.com Reviewed-by: Doug Anderson diand...@chromium.org Tested-by: Doug Anderson diand...@chromium.org --- Changes in v6: - modify comments Changes

[PATCH v6 0/7] This is the 1st version of suspend for RK3288.

2014-10-29 Thread Chris Zhong
: - move the pinmux of gpio6_c6 save and restore to pinctrl-rockchip Changes in v2: - __raw_readl/__raw_writel replaced by readl_relaxed/writel_relaxed - add the regulator calls in prepare and finish. - add the pinmux of gpio6_c6 save and restore - put rockchip,rk3288-pmu-sram to first Chris Zhong

[PATCH v6 2/7] pinctrl: rockchip: save and restore gpio6_c6 pinmux in suspend/resume

2014-10-29 Thread Chris Zhong
Save and restore the gpio6_c6 pinmux setting, since Maskrom of RK3288 would modify it to sdmmc0_det, so it need to be restored to the correct setting after resume from Maskrom. Signed-off-by: Chris Zhong z...@rock-chips.com Tested-by: Doug Anderson diand...@chromium.org Reviewed-by: Doug Anderson

[PATCH v6 7/7] ARM: dts: add suspend voltage setting for RK808

2014-10-29 Thread Chris Zhong
global_pwroff would be pull to high when RK3288 entering suspend, this pin is a sleep signal for RK808, so RK808 could goto sleep mode, and some regulators would be disable. Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v6: None Changes in v5: None Changes in v4: None Changes

[PATCH v6 4/7] ARM: rockchip: add suspend and resume for RK3288

2014-10-29 Thread Chris Zhong
It's a basic version of suspend and resume for rockchip, it only support RK3288 now. Signed-off-by: Tony Xie x...@rock-chips.com Signed-off-by: Chris Zhong z...@rock-chips.com Tested-by: Doug Anderson diand...@chromium.org Reviewed-by: Doug Anderson diand...@chromium.org --- Changes in v6

[PATCH v6 6/7] ARM: dts: add RK3288 suspend support

2014-10-29 Thread Chris Zhong
-chips.com Signed-off-by: Chris Zhong z...@rock-chips.com Reviewed-by: Doug Anderson diand...@chromium.org Tested-by: Doug Anderson diand...@chromium.org --- Changes in v6: - change pmu_intmem@ff72 to sram@ff72 Changes in v5: - change size to 4k Changes in v4: None Changes in v3: None Changes

[PATCH v6 5/7] ARM: rockchip: Add pmu-sram binding

2014-10-29 Thread Chris Zhong
The pmu-sram is used to store resume code, suspend/resume need get the address of it. Therefore add a binding and documentation for it. Signed-off-by: Tony Xie x...@rock-chips.com Signed-off-by: Chris Zhong z...@rock-chips.com Reviewed-by: Doug Anderson diand...@chromium.org --- Changes in v6

[PATCH v3 0/2] regulator: get voltage duty table from dts for st-pwm

2014-09-19 Thread Chris Zhong
Adviced by Doug Anderson - update the example Adviced by Mark Rutland - remove pwm-reg-period Chris Zhong (2): regulator: st-pwm: get voltage and duty table from dts dt-bindings: add devicetree bindings for st-pwm regulator .../bindings/regulator/pwm-regulator.txt | 29

[PATCH v3 2/2] dt-bindings: add devicetree bindings for st-pwm regulator

2014-09-19 Thread Chris Zhong
Document the st-pwm regulator Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v3: Adviced by Doug Anderson - update the Example Changes in v2: Adviced by Lee Jones - rename the documentation Adviced by Doug Anderson - update the example Adviced by Mark Rutland - remove pwm-reg

[PATCH v3 1/2] regulator: st-pwm: get voltage and duty table from dts

2014-09-19 Thread Chris Zhong
Get voltage duty table from device tree might be better, other platforms can also use this driver without any modify. Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v3: Adviced by Doug Anderson - Make Kconfig Makefile alphabetical - remove pwm_reg_period from

[PATCH v4 0/2] regulator: get voltage duty table from dts for st-pwm

2014-09-21 Thread Chris Zhong
the prefix st_ - add depend on PWM in Kconfig Adviced by Lee Jones - rename the documentation Adviced by Doug Anderson - update the example Adviced by Mark Rutland - remove pwm-reg-period Chris Zhong (2): regulator: st-pwm: get voltage and duty table from dts dt-bindings: add devicetree bindings

[PATCH v4 1/2] regulator: st-pwm: get voltage and duty table from dts

2014-09-21 Thread Chris Zhong
Get voltage duty table from device tree might be better, other platforms can also use this driver without any modify. Signed-off-by: Chris Zhong z...@rock-chips.com Reviewed-by: Doug Anderson diand...@chromium.org --- Changes in v4: Adviced by Doug Anderson - improve kconfig - add const

[PATCH v4 2/2] dt-bindings: add devicetree bindings for st-pwm regulator

2014-09-21 Thread Chris Zhong
Document the st-pwm regulator Signed-off-by: Chris Zhong z...@rock-chips.com Adviced by Doug Anderson - remove regulator-always-on and regulator-boot-on from the Example Reviewed-by: Doug Anderson diand...@chromium.org --- Changes in v4: None Changes in v3: Adviced by Doug Anderson - update

Re: [PATCH v4 1/2] regulator: st-pwm: get voltage and duty table from dts

2014-09-21 Thread Chris Zhong
On 09/22/2014 12:18 PM, Doug Anderson wrote: Chris, On Sun, Sep 21, 2014 at 7:52 PM, Chris Zhong z...@rock-chips.com wrote: Get voltage duty table from device tree might be better, other platforms can also use this driver without any modify. Signed-off-by: Chris Zhong z...@rock-chips.com

[PATCH] i2c-rk3x: move setup to the earlier subsys initcall

2014-09-22 Thread Chris Zhong
Some device using this bus, such as regulators, they should register as early as possible, so the I2C bus master needs to be loaded early. Therefore initialize via subsys_initcall() is better. Signed-off-by: Chris Zhong z...@rock-chips.com --- drivers/i2c/busses/i2c-rk3x.c | 13

[PATCH v10 3/3] regulator: RK808: Remove pdata from the regulator

2014-09-09 Thread Chris Zhong
Signed-off-by: Chris Zhong z...@rock-chips.com Tested-by: Heiko Stuebner he...@sntech.de --- Changes in v10: None Changes in v9: Adviced by Doug - add reg_np Changes in v8: Adviced by Doug - remove rk808_regulator_dts() function - remove the check about client-dev.of_node Changes in v7

[PATCH v10 0/3] Add rockchip RK808 pmic driver

2014-09-09 Thread Chris Zhong
to supply_regulator name - replace regulator_register with devm_regulator_register - some other problem with coding style Chris Zhong (3): RTC: RK808: add RTC driver for RK808 clk: RK808: Add clkout driver for RK808 regulator: RK808: Remove pdata from the regulator drivers/clk/Kconfig

Re: linux-next: build failure after merge of the regulator tree

2014-09-09 Thread Chris Zhong
On 09/10/2014 06:39 AM, Mark Brown wrote: On Mon, Sep 08, 2014 at 06:33:50PM +1000, Stephen Rothwell wrote: drivers/regulator/rk808-regulator.c:312:18: warning: 'struct rk808_board' declared inside parameter list struct rk808_board *pdata) Chris, as previously requested please

[PATCH v10 1/3] RTC: RK808: add RTC driver for RK808

2014-09-09 Thread Chris Zhong
Adding RTC driver for supporting RTC device present inside RK808 PMIC. Signed-off-by: Chris Zhong z...@rock-chips.com Signed-off-by: Zhang Qing zhangq...@rock-chips.com Tested-by: Heiko Stuebner he...@sntech.de --- Changes in v10: Adviced by Doug - modify rk808_rtc-irq err print Changes in v9

[PATCH v10 2/3] clk: RK808: Add clkout driver for RK808

2014-09-09 Thread Chris Zhong
Signed-off-by: Chris Zhong z...@rock-chips.com Reviewed-by: Doug Anderson diand...@chromium.org Tested-by: Doug Anderson diand...@chromium.org Tested-by: Heiko Stuebner he...@sntech.de --- Changes in v10: Adviced by Mike - remove rk808_clkout1_is_prepared Adviced by Dmitry Torokhov - add

[PATCH] RTC: RK808: remove tm_def structure

2014-09-10 Thread Chris Zhong
Signed-off-by: Chris Zhong z...@rock-chips.com --- drivers/rtc/rtc-rk808.c | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/rtc/rtc-rk808.c b/drivers/rtc/rtc-rk808.c index 22c8514..df42257 100644 --- a/drivers/rtc/rtc-rk808.c +++ b/drivers/rtc/rtc

Re: [PATCH] mfd: RK808: Add register caching

2014-09-10 Thread Chris Zhong
= rk808_is_volatile_reg, }; static struct resource rtc_resources[] = { Reviewed-by: Chris Zhong z...@rock-chips.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

[PATCH v2] RTC: RK808: remove tm_def structure

2014-09-11 Thread Chris Zhong
If the date/time is invalid at bootup, there's no reason to set it to a bogus value. We can just let the data and time be invalid until someone makes it valid. Signed-off-by: Chris Zhong z...@rock-chips.com Reviewed-by: Doug Anderson diand...@chromium.org Tested-by: Doug Anderson diand

Re: [PATCH v7 3/5] RTC: RK808: add RTC driver for RK808

2014-09-02 Thread Chris Zhong
On 09/02/2014 11:58 AM, Doug Anderson wrote: +static int rk808_rtc_probe(struct platform_device *pdev) +{ + struct rk808 *rk808 = dev_get_drvdata(pdev-dev.parent); + struct rk808_rtc *rk808_rtc; + struct rtc_time tm; + int ret; + + rk808_rtc =

[PATCH v8 2/5] MFD: RK808: Add new mfd driver for RK808

2014-09-03 Thread Chris Zhong
. Signed-off-by: Chris Zhong z...@rock-chips.com Signed-off-by: Zhang Qing zhangq...@rock-chips.com Acked-by: Lee Jones lee.jo...@linaro.org Tested-by: Heiko he...@sntech.de --- Changes in v8: Adviced by Lee Jones - add Author - remove if(np) and of_match_ptr() since depend on OF - coding style Changes

[PATCH v8 1/5] dt-bindings: Add RK808 device tree bindings document

2014-09-03 Thread Chris Zhong
Add device tree bindings documentation and a header file for rockchip's RK808 pmic. Signed-off-by: Doug Anderson diand...@chromium.org Signed-off-by: Chris Zhong z...@rock-chips.com Signed-off-by: Zhang Qing zhangq...@rock-chips.com Tested-by: Heiko he...@sntech.de --- Changes in v8: Advices

[PATCH v8 0/5] Add rockchip RK808 pmic driver

2014-09-03 Thread Chris Zhong
the rk808_reg name to supply_regulator name - replace regulator_register with devm_regulator_register - some other problem with coding style Chris Zhong (5): dt-bindings: Add RK808 device tree bindings document MFD: RK808: Add new mfd driver for RK808 RTC: RK808: add RTC driver for RK808 clk: RK808

[PATCH v8 5/5] regulator: RK808: Remove pdata from the regulator

2014-09-03 Thread Chris Zhong
Signed-off-by: Chris Zhong z...@rock-chips.com Tested-by: Heiko he...@sntech.de --- Changes in v8: Adviced by Doug - remove rk808_regulator_dts() function - remove the check about client-dev.of_node Changes in v7: - remove pdata struct from header file, add rk808_regulator struct Changes in v6

[PATCH v8 3/5] RTC: RK808: add RTC driver for RK808

2014-09-03 Thread Chris Zhong
Adding RTC driver for supporting RTC device present inside RK808 PMIC. Signed-off-by: Chris Zhong z...@rock-chips.com Signed-off-by: Zhang Qing zhangq...@rock-chips.com Tested-by: Heiko he...@sntech.de --- Changes in v8: Adviced by Doug - coding style - fix regmap_update_bits() - if(rk808_rtc

[PATCH v8 4/5] clk: RK808: Add clkout driver for RK808

2014-09-03 Thread Chris Zhong
Signed-off-by: Chris Zhong z...@rock-chips.com Reviewed-by: Doug Anderson diand...@chromium.org Tested-by: Doug Anderson diand...@chromium.org Tested-by: Heiko he...@sntech.de --- Changes in v8: Adviced by Mike -rename control to enable -define RK808_NR_OUTPUT 2 Changes in v7: Adviced by doug

[PATCH v8 3/5] RTC: RK808: add RTC driver for RK808

2014-09-03 Thread Chris Zhong
Adding RTC driver for supporting RTC device present inside RK808 PMIC. Signed-off-by: Chris Zhong z...@rock-chips.com Signed-off-by: Zhang Qing zhangq...@rock-chips.com Tested-by: Heiko he...@sntech.de --- Changes in v8: Adviced by Doug - coding style - fix regmap_update_bits() - if(rk808_rtc

[PATCH v8 3/5] RTC: RK808: add RTC driver for RK808

2014-09-03 Thread Chris Zhong
Adding RTC driver for supporting RTC device present inside RK808 PMIC. Signed-off-by: Chris Zhong z...@rock-chips.com Signed-off-by: Zhang Qing zhangq...@rock-chips.com Tested-by: Heiko he...@sntech.de --- Changes in v8: Adviced by Doug - coding style - fix regmap_update_bits() - if(rk808_rtc

[PATCH v8 4/5] clk: RK808: Add clkout driver for RK808

2014-09-03 Thread Chris Zhong
Signed-off-by: Chris Zhong z...@rock-chips.com Reviewed-by: Doug Anderson diand...@chromium.org Tested-by: Doug Anderson diand...@chromium.org Tested-by: Heiko he...@sntech.de --- Changes in v8: Adviced by Mike -rename control to enable -define RK808_NR_OUTPUT 2 Changes in v7: Adviced by doug

  1   2   3   4   5   6   7   8   9   10   >