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

2014-10-20 Thread zyw
From: Chris Zhong add pmu_intmem node for suspend, add global_pwroff pinctrl. The pmu_intmem is used to store the resume code. global_pwroff is held low level at work, it would be pull to high when entering suspend. PMICs can get this singal, then shut down some power rails. So please reference t

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

2014-10-20 Thread zyw
From: 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 Signed-off-by: Chris Zhong --- Changes in v3: None Changes in v2: None .../devicetree/bindings/arm/rockchip/pmu-s

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

2014-10-20 Thread zyw
From: Chris Zhong It's a basic version of suspend and resume for rockchip, it only support RK3288 now. Signed-off-by: Tony Xie Signed-off-by: Chris Zhong --- Changes in v3: - move the pinmux of gpio6_c6 save and restore to pinctrl-rockchip Changes in v2: - add the regulator calls in prepare

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

2014-10-20 Thread zyw
From: Chris Zhong save and restore some clks, which might be changed in suspend. Signed-off-by: Tony Xie Signed-off-by: Chris Zhong --- Changes in v3: None Changes in v2: - __raw_readl/__raw_writel replaced by readl_relaxed/writel_relaxed drivers/clk/rockchip/clk-rk3288.c | 63 ++

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

2014-10-20 Thread zyw
From: 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 --- Changes in v3: None Changes in v2: None drivers/pinctrl/pinctrl-ro

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

2014-10-20 Thread zyw
From: Chris support suspend/resume of pinctrl, it allows handling sleep mode for hogged pins in pinctrl Signed-off-by: Chris Signed-off-by: Chris Zhong --- Changes in v3: None Changes in v2: None drivers/pinctrl/pinctrl-rockchip.c | 29 + 1 file changed, 29 ins

[PATCH v3 0/6] add suspend support for RK3288

2014-10-20 Thread zyw
From: Chris Zhong this is the 1st version of suspend. RK3288 can shut down the cpu, gpu and other device controllers in suspend, and it will pull the GLOBAL_PWROFF pin to high in the final stage of the process of suspend, pull the pin to low again when resume. Changes in v3: - move the pinmux of

[PATCH v2 2/4] ARM: rockchip: add suspend and resume for RK3288

2014-10-17 Thread zyw
From: Chris Zhong It's a basic version of suspend and resume for rockchip, it only support RK3288 now. Signed-off-by: Tony Xie Signed-off-by: Chris Zhong --- Changes in v2: - add the regulator calls in prepare and finish. - add the pinmux of gpio6_c6 save and restore arch/arm/mach-rockchip

[PATCH v2 4/4] ARM: dts: add RK3288 suspend support

2014-10-17 Thread zyw
From: Chris Zhong add pmu_intmem node for suspend, add global_pwroff pinctrl. The pmu_intmem is used to store the resume code. global_pwroff is held low level at work, it would be pull to high when entering suspend. PMICs can get this singal, then shut down some power rails. So please reference t

[PATCH v2 3/4] ARM: rockchip: Add pmu-sram binding

2014-10-17 Thread zyw
From: 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 Signed-off-by: Chris Zhong --- Changes in v2: None .../devicetree/bindings/arm/rockchip/pmu-sram.txt | 15

[PATCH v2 1/4] clk: rockchip: RK3288: add suspend and resume

2014-10-17 Thread zyw
From: Chris Zhong save and restore some clks, which might be changed in suspend. Signed-off-by: Tony Xie Signed-off-by: Chris Zhong --- Changes in v2: - __raw_readl/__raw_writel replaced by readl_relaxed/writel_relaxed drivers/clk/rockchip/clk-rk3288.c | 63 ++

[PATCH v2 0/4] add suspend support for RK3288

2014-10-17 Thread zyw
From: Chris Zhong this is the 1st version of suspend. RK3288 can shut down the cpu, gpu and other device controllers in suspend, and it will pull the GLOBAL_PWROFF pin to high in the final stage of the process of suspend, pull the pin to low again when resume. Changes in v2: - __raw_readl/__raw_

[PATCH 4/4] ARM: rockchip: add pmu-sram sub

2014-10-15 Thread zyw
From: Chris Zhong The pmu-sram is used to store resume code, suspend/resume need get the address of it. Therefore add a node and documentation for it. Signed-off-by: Tony Xie Signed-off-by: Chris Zhong --- .../devicetree/bindings/arm/rockchip/pmu-sram.txt | 15 +++ 1 file cha

[PATCH 3/4] ARM: dts: add RK3288 suspend support

2014-10-15 Thread zyw
From: Chris Zhong add pmu_intmem subnode for suspend, add suspend pinctrl Signed-off-by: Tony Xie Signed-off-by: Chris Zhong --- arch/arm/boot/dts/rk3288.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi inde

[PATCH 2/4] clk: rockchip: RK3288: add suspend and resume

2014-10-15 Thread zyw
From: Chris Zhong save and restore some clks, which might be changed in suspend. Signed-off-by: Tony Xie Signed-off-by: Chris Zhong --- drivers/clk/rockchip/clk-rk3288.c | 61 + 1 file changed, 61 insertions(+) diff --git a/drivers/clk/rockchip/clk-rk32

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

2014-10-15 Thread zyw
From: Chris Zhong It's a basic version of suspend and resume for rockchip, it only support RK3288 now. Signed-off-by: Tony Xie Signed-off-by: Chris Zhong --- arch/arm/mach-rockchip/Makefile |1 + arch/arm/mach-rockchip/pm.c | 292 + arch/arm/m

[PATCH 0/4] add suspend support for RK3288

2014-10-15 Thread zyw
From: Chris Zhong this is the 1st version of suspend. RK3288 can shut down the cpu, gpu and other device controllers in suspend, and it will pull the GLOBAL_PWROFF pin to high in the final stage of the process of suspend, pull the pin to low again when resume. Chris Zhong (4): ARM: rockchip: