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
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
-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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
-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
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
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
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
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
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
-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
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
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
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
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
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
-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
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
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
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
);
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
) {
- 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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
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
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
:
- 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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
= 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
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
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 =
.
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
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
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
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
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
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
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
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
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 - 100 of 1258 matches
Mail list logo