* [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external @ 2014-12-01 8:52 Chris Zhong 2014-12-01 8:52 ` [PATCH v10 2/4] ARM: rockchip: Add pmu-sram binding Chris Zhong ` (4 more replies) 0 siblings, 5 replies; 14+ messages in thread From: Chris Zhong @ 2014-12-01 8:52 UTC (permalink / raw) To: heiko, dianders Cc: mturquette, Ian Campbell, Russell King, Rob Herring, Pawel Moll, Mark Rutland, Linus Walleij, khilman, linux-rockchip, Chris Zhong, devicetree, linux-kernel, Kumar Gala, Tony Xie, linux-arm-kernel devices, since we still lack power_domain driver, so the other power rail of rk3288 need keep power on. I have tested it on rk3288-evb board, atop next-20141112. goto suspend by type "echo mem > /sys/power/state", vdd_cpu is about 0mv by measuring, so it can be determined in sleep mode, then press power button to wakeup it. Changes in v10: - remove regulator-suspend-mem-enabled and regulator-suspend-mem-microvolt - enable the lcd, codec, sdmmc power during suspend Changes in v9: - fold Doug's patches - modify some print log - update the subject and description Changes in v8: - use enum for define sleep mode - move rk3288_config_bootdata to the front of sram memcpy - add ddr pinctrl for suspend - keep all except cpu&tp power rail on during suspend - add regulator-on-in-suspend before set suspend voltage - add a reference of ddrio_pwroff and ddr0_retention Changes in v7: - get rid all of unused code - add regulator-state-mem sub node for suspend Changes in v6: - get rid of the save/restore of SRAM - doing the copy of resume code once at init time - remove ROCKCHIP_ARM_OFF_LOGIC_DEEP from rk3288_fill_in_bootram - add of_platform_populate in rockchip_dt_init - change pmu_intmem@ff720000 to sram@ff720000 - change pmu_intmem@ff720000 to sram@ff720000 Changes in v5: - use rk3288_bootram_sz for memcpy size - fixed error of sram save and restore - change the size of sram in example - change size to 4k Changes in v4: - remove grf regmap Changes in v3: - move the pinmux of gpio6_c6 save and restore to pinctrl-rockchip Changes in v2: - 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 (4): ARM: rockchip: add suspend and resume for RK3288 ARM: rockchip: Add pmu-sram binding ARM: dts: add RK3288 suspend support ARM: dts: rockchip: add suspend settings for rk3288-evb-rk808 .../devicetree/bindings/arm/rockchip/pmu-sram.txt | 16 ++ arch/arm/boot/dts/rk3288-evb-rk808.dts | 53 ++++- arch/arm/boot/dts/rk3288.dtsi | 23 ++ arch/arm/mach-rockchip/Makefile | 1 + arch/arm/mach-rockchip/pm.c | 260 +++++++++++++++++++++ arch/arm/mach-rockchip/pm.h | 99 ++++++++ arch/arm/mach-rockchip/rockchip.c | 2 + arch/arm/mach-rockchip/sleep.S | 73 ++++++ 8 files changed, 526 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/arm/rockchip/pmu-sram.txt create mode 100644 arch/arm/mach-rockchip/pm.c create mode 100644 arch/arm/mach-rockchip/pm.h create mode 100644 arch/arm/mach-rockchip/sleep.S -- 1.9.1 ^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH v10 2/4] ARM: rockchip: Add pmu-sram binding 2014-12-01 8:52 [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external Chris Zhong @ 2014-12-01 8:52 ` Chris Zhong 2014-12-01 8:52 ` [PATCH v10 3/4] ARM: dts: add RK3288 suspend support Chris Zhong ` (3 subsequent siblings) 4 siblings, 0 replies; 14+ messages in thread From: Chris Zhong @ 2014-12-01 8:52 UTC (permalink / raw) To: heiko, dianders Cc: mturquette, Ian Campbell, Russell King, Rob Herring, Pawel Moll, Mark Rutland, Linus Walleij, khilman, linux-rockchip, Chris Zhong, Tony Xie, Kumar Gala, devicetree, linux-kernel 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 <xxx@rock-chips.com> Signed-off-by: Chris Zhong <zyw@rock-chips.com> Reviewed-by: Doug Anderson <dianders@chromium.org> --- Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: - change pmu_intmem@ff720000 to sram@ff720000 Changes in v5: - change the size of sram in example Changes in v4: None Changes in v3: None Changes in v2: None .../devicetree/bindings/arm/rockchip/pmu-sram.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/rockchip/pmu-sram.txt diff --git a/Documentation/devicetree/bindings/arm/rockchip/pmu-sram.txt b/Documentation/devicetree/bindings/arm/rockchip/pmu-sram.txt new file mode 100644 index 0000000..6b42fda --- /dev/null +++ b/Documentation/devicetree/bindings/arm/rockchip/pmu-sram.txt @@ -0,0 +1,16 @@ +Rockchip SRAM for pmu: +------------------------------ + +The sram of pmu is used to store the function of resume from maskrom(the 1st +level loader). This is a common use of the "pmu-sram" because it keeps power +even in low power states in the system. + +Required node properties: +- compatible : should be "rockchip,rk3288-pmu-sram" +- reg : physical base address and the size of the registers window + +Example: + sram@ff720000 { + compatible = "rockchip,rk3288-pmu-sram", "mmio-sram"; + reg = <0xff720000 0x1000>; + }; -- 1.9.1 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v10 3/4] ARM: dts: add RK3288 suspend support 2014-12-01 8:52 [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external Chris Zhong 2014-12-01 8:52 ` [PATCH v10 2/4] ARM: rockchip: Add pmu-sram binding Chris Zhong @ 2014-12-01 8:52 ` Chris Zhong 2014-12-01 8:52 ` [PATCH v10 4/4] ARM: dts: rockchip: add suspend settings for rk3288-evb-rk808 Chris Zhong ` (2 subsequent siblings) 4 siblings, 0 replies; 14+ messages in thread From: Chris Zhong @ 2014-12-01 8:52 UTC (permalink / raw) To: heiko, dianders Cc: mturquette, Ian Campbell, Russell King, Rob Herring, Pawel Moll, Mark Rutland, Linus Walleij, khilman, linux-rockchip, Chris Zhong, Tony Xie, Kumar Gala, linux-arm-kernel, devicetree, linux-kernel add pmu sram node for suspend, add global_pwroff pinctrl. The pmu sram is used to store the resume code. global_pwroff is held low level at work, it would be pull to high when entering suspend. reference this in the board DTS file since some boards need it. Signed-off-by: Tony Xie <xxx@rock-chips.com> Signed-off-by: Chris Zhong <zyw@rock-chips.com> Reviewed-by: Doug Anderson <dianders@chromium.org> Tested-by: Doug Anderson <dianders@chromium.org> --- Changes in v10: None Changes in v9: None Changes in v8: - add ddr pinctrl for suspend Changes in v7: None Changes in v6: - change pmu_intmem@ff720000 to sram@ff720000 Changes in v5: - change size to 4k Changes in v4: None Changes in v3: None Changes in v2: - put "rockchip,rk3288-pmu-sram" to first arch/arm/boot/dts/rk3288.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 0f50d5d..eede3c6 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -480,6 +480,11 @@ }; }; + sram@ff720000 { + compatible = "rockchip,rk3288-pmu-sram", "mmio-sram"; + reg = <0xff720000 0x1000>; + }; + pmu: power-management@ff730000 { compatible = "rockchip,rk3288-pmu", "syscon"; reg = <0xff730000 0x100>; @@ -703,6 +708,24 @@ bias-disable; }; + sleep { + global_pwroff: global-pwroff { + rockchip,pins = <0 0 RK_FUNC_1 &pcfg_pull_none>; + }; + + ddrio_pwroff: ddrio-pwroff { + rockchip,pins = <0 1 RK_FUNC_1 &pcfg_pull_none>; + }; + + ddr0_retention: ddr0-retention { + rockchip,pins = <0 2 RK_FUNC_1 &pcfg_pull_up>; + }; + + ddr1_retention: ddr1-retention { + rockchip,pins = <0 3 RK_FUNC_1 &pcfg_pull_up>; + }; + }; + i2c0 { i2c0_xfer: i2c0-xfer { rockchip,pins = <0 15 RK_FUNC_1 &pcfg_pull_none>, -- 1.9.1 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v10 4/4] ARM: dts: rockchip: add suspend settings for rk3288-evb-rk808 2014-12-01 8:52 [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external Chris Zhong 2014-12-01 8:52 ` [PATCH v10 2/4] ARM: rockchip: Add pmu-sram binding Chris Zhong 2014-12-01 8:52 ` [PATCH v10 3/4] ARM: dts: add RK3288 suspend support Chris Zhong @ 2014-12-01 8:52 ` Chris Zhong 2014-12-01 22:19 ` Doug Anderson [not found] ` <1417423940-1669-1-git-send-email-zyw-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2015-01-02 20:57 ` Heiko Stübner 4 siblings, 1 reply; 14+ messages in thread From: Chris Zhong @ 2014-12-01 8:52 UTC (permalink / raw) To: heiko, dianders Cc: mturquette, Ian Campbell, Russell King, Rob Herring, Pawel Moll, Mark Rutland, Linus Walleij, khilman, linux-rockchip, Chris Zhong, Kumar Gala, linux-arm-kernel, devicetree, linux-kernel Add suspend-voltages and necessary pin-states for suspend on rk3288-evb-rk808 boards. global_pwroff would be pulled 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 <zyw@rock-chips.com> --- Changes in v10: - remove regulator-suspend-mem-enabled and regulator-suspend-mem-microvolt - enable the lcd, codec, sdmmc power during suspend Changes in v9: - update the subject and description Changes in v8: - keep all except cpu&tp power rail on during suspend - add regulator-on-in-suspend before set suspend voltage - add a reference of ddrio_pwroff and ddr0_retention Changes in v7: - add regulator-state-mem sub node for suspend Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/boot/dts/rk3288-evb-rk808.dts | 53 +++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rk3288-evb-rk808.dts b/arch/arm/boot/dts/rk3288-evb-rk808.dts index d8c775e6..d453ddd 100644 --- a/arch/arm/boot/dts/rk3288-evb-rk808.dts +++ b/arch/arm/boot/dts/rk3288-evb-rk808.dts @@ -31,7 +31,7 @@ interrupt-parent = <&gpio0>; interrupts = <4 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; - pinctrl-0 = <&pmic_int>; + pinctrl-0 = <&pmic_int &global_pwroff>; rockchip,system-power-controller; wakeup-source; #clock-cells = <1>; @@ -50,6 +50,9 @@ regulator-min-microvolt = <750000>; regulator-max-microvolt = <1350000>; regulator-name = "vdd_arm"; + regulator-state-mem { + regulator-off-in-suspend; + }; }; vdd_gpu: DCDC_REG2 { @@ -58,12 +61,19 @@ regulator-min-microvolt = <850000>; regulator-max-microvolt = <1250000>; regulator-name = "vdd_gpu"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1000000>; + }; }; vcc_ddr: DCDC_REG3 { regulator-always-on; regulator-boot-on; regulator-name = "vcc_ddr"; + regulator-state-mem { + regulator-on-in-suspend; + }; }; vcc_io: DCDC_REG4 { @@ -72,6 +82,10 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-name = "vcc_io"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; }; vccio_pmu: LDO_REG1 { @@ -80,6 +94,10 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-name = "vccio_pmu"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; }; vcc_tp: LDO_REG2 { @@ -88,6 +106,9 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-name = "vcc_tp"; + regulator-state-mem { + regulator-off-in-suspend; + }; }; vdd_10: LDO_REG3 { @@ -96,6 +117,10 @@ regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-name = "vdd_10"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1000000>; + }; }; vcc18_lcd: LDO_REG4 { @@ -104,6 +129,10 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-name = "vcc18_lcd"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; }; vccio_sd: LDO_REG5 { @@ -112,6 +141,10 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; regulator-name = "vccio_sd"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; }; vdd10_lcd: LDO_REG6 { @@ -120,6 +153,10 @@ regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-name = "vdd10_lcd"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1000000>; + }; }; vcc_18: LDO_REG7 { @@ -128,6 +165,10 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-name = "vcc_18"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; }; vcca_codec: LDO_REG8 { @@ -136,18 +177,28 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-name = "vcca_codec"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; }; vcc_wl: SWITCH_REG1 { regulator-always-on; regulator-boot-on; regulator-name = "vcc_wl"; + regulator-state-mem { + regulator-on-in-suspend; + }; }; vcc_lcd: SWITCH_REG2 { regulator-always-on; regulator-boot-on; regulator-name = "vcc_lcd"; + regulator-state-mem { + regulator-on-in-suspend; + }; }; }; }; -- 1.9.1 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH v10 4/4] ARM: dts: rockchip: add suspend settings for rk3288-evb-rk808 2014-12-01 8:52 ` [PATCH v10 4/4] ARM: dts: rockchip: add suspend settings for rk3288-evb-rk808 Chris Zhong @ 2014-12-01 22:19 ` Doug Anderson 0 siblings, 0 replies; 14+ messages in thread From: Doug Anderson @ 2014-12-01 22:19 UTC (permalink / raw) To: Chris Zhong Cc: Heiko Stübner, Mike Turquette, Ian Campbell, Russell King, Rob Herring, Pawel Moll, Mark Rutland, Linus Walleij, Kevin Hilman, open list:ARM/Rockchip SoC..., Kumar Gala, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Chris, On Mon, Dec 1, 2014 at 12:52 AM, Chris Zhong <zyw@rock-chips.com> wrote: > Add suspend-voltages and necessary pin-states for suspend on > rk3288-evb-rk808 boards. global_pwroff would be pulled 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 <zyw@rock-chips.com> > > --- > > Changes in v10: > - remove regulator-suspend-mem-enabled and regulator-suspend-mem-microvolt > - enable the lcd, codec, sdmmc power during suspend > > Changes in v9: > - update the subject and description > > Changes in v8: > - keep all except cpu&tp power rail on during suspend > - add regulator-on-in-suspend before set suspend voltage > - add a reference of ddrio_pwroff and ddr0_retention > > Changes in v7: > - add regulator-state-mem sub node for suspend > > Changes in v6: None > Changes in v5: None > Changes in v4: None > Changes in v3: None > Changes in v2: None > > arch/arm/boot/dts/rk3288-evb-rk808.dts | 53 +++++++++++++++++++++++++++++++++- > 1 file changed, 52 insertions(+), 1 deletion(-) I'm still not 100% clear on why it wakes up by itself, but I guess (?) that could be solved in a separate patch. I did confirm that if I hacked the wakeup source to be just from GPIOs that it stayed asleep and could be awakened by the power button. I tested on linux-next with evb-rk808. Reviewed-by: Doug Anderson <dianders@chromium.org> Tested-by: Doug Anderson <dianders@chromium.org> -Doug ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <1417423940-1669-1-git-send-email-zyw-TNX95d0MmH7DzftRWevZcw@public.gmane.org>]
* Re: [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external [not found] ` <1417423940-1669-1-git-send-email-zyw-TNX95d0MmH7DzftRWevZcw@public.gmane.org> @ 2014-12-01 19:51 ` Kevin Hilman 2014-12-01 22:08 ` Doug Anderson 0 siblings, 1 reply; 14+ messages in thread From: Kevin Hilman @ 2014-12-01 19:51 UTC (permalink / raw) To: Chris Zhong Cc: heiko-4mtYJXux2i+zQB+pC5nmwQ, dianders-F7+t8E8rja9g9hUCZPvPmw, mturquette-QSEj5FYQhm4dnm+yROfE0A, Ian Campbell, Russell King, Rob Herring, Pawel Moll, Mark Rutland, Linus Walleij, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Kumar Gala, Tony Xie, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Chris Zhong <zyw-TNX95d0MmH7DzftRWevZcw@public.gmane.org> writes: > devices, since we still lack power_domain driver, so the other power rail > of rk3288 need keep power on. > I have tested it on rk3288-evb board, atop next-20141112. goto suspend by type > "echo mem > /sys/power/state", vdd_cpu is about 0mv by measuring, so it can be > determined in sleep mode, then press power button to wakeup it. I tested this on top of today's linux-next (next-20141201) and it suspends, but doesn't wake up from any of the button presses. What wakeup sources are configured for the rk3288-evb-rk808? Kevin -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external 2014-12-01 19:51 ` [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external Kevin Hilman @ 2014-12-01 22:08 ` Doug Anderson [not found] ` <CAD=FV=V2go5BMFbiFKu73_aVz5ck949W-kJQ6WLkAQRPJbjPVA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-12-02 1:18 ` Chris Zhong 0 siblings, 2 replies; 14+ messages in thread From: Doug Anderson @ 2014-12-01 22:08 UTC (permalink / raw) To: Kevin Hilman Cc: Chris Zhong, Heiko Stübner, Mike Turquette, Ian Campbell, Russell King, Rob Herring, Pawel Moll, Mark Rutland, Linus Walleij, open list:ARM/Rockchip SoC..., devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kumar Gala, Tony Xie, linux-arm-kernel@lists.infradead.org Hi, On Mon, Dec 1, 2014 at 11:51 AM, Kevin Hilman <khilman@kernel.org> wrote: > Chris Zhong <zyw@rock-chips.com> writes: > >> devices, since we still lack power_domain driver, so the other power rail >> of rk3288 need keep power on. >> I have tested it on rk3288-evb board, atop next-20141112. goto suspend by type >> "echo mem > /sys/power/state", vdd_cpu is about 0mv by measuring, so it can be >> determined in sleep mode, then press power button to wakeup it. > > I tested this on top of today's linux-next (next-20141201) and it > suspends, but doesn't wake up from any of the button presses. What > wakeup sources are configured for the rk3288-evb-rk808? Just to close the loop (I talked with Kevin over IM about this, too): I have a huge description of how I tested this as part of my patch at <https://patchwork.kernel.org/patch/5414941/>. Chris: I think Kevin has asked you several times to include information like this in your cover letter. Please, please, please can you try to remember to do this? For those that don't want to click on my link, I'll include the relevant bits here: --- Total patches atop that version of Linux were: 1. https://patchwork.kernel.org/patch/5051881/ - clocksource: arch_timer: Allow the device tree to specify uninitialized timer registers 2. https://patchwork.kernel.org/patch/5363671/ - clocksource: arch_timer: Fix code to use physical timers when requested 3. https://patchwork.kernel.org/patch/5382141/ - ARM: dts: rk3288: add arm,cpu-registers-not-fw-configured 4. Revert (b77d439 ARM: dts: rockchip: temporarily disable smp on rk3288) 5. https://patchwork.kernel.org/patch/5325111/ - usb: dwc2: resume root hub when device detect with suspend state 6. https://patchwork.kernel.org/patch/5410611/ - ARM: rockchip: add suspend and resume for RK3288 7. https://patchwork.kernel.org/patch/5410621/ - ARM: rockchip: Add pmu-sram binding 8. https://patchwork.kernel.org/patch/5410631/ - ARM: dts: add RK3288 suspend support 9. https://patchwork.kernel.org/patch/5410641/ - ARM: dts: rockchip: add suspend settings for rk3288-evb-rk808 It looks like my pinctrl patches might be dropped due to cross dependency problems, so tomorrow's linux-next will probably also need (https://patchwork.kernel.org/patch/5344551/ - pinctrl: rockchip: Handle wakeup pins). I've also got a local hack to the Rockchip "pm.c" to replace the usage of "PMU_ARMINT_WAKEUP_EN" with 0x0e. There seems to be some sort of ARM Interrupt waking us up all the time right when we go to sleep and the above will hack it so that only GPIOs + SDMMC Card Detect can wake us up. Someone should track down what's going on there, but for now I've used the hack to prove that the basic code actually works. ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <CAD=FV=V2go5BMFbiFKu73_aVz5ck949W-kJQ6WLkAQRPJbjPVA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external [not found] ` <CAD=FV=V2go5BMFbiFKu73_aVz5ck949W-kJQ6WLkAQRPJbjPVA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-12-02 1:07 ` Doug Anderson 2014-12-02 1:26 ` Kevin Hilman 0 siblings, 1 reply; 14+ messages in thread From: Doug Anderson @ 2014-12-02 1:07 UTC (permalink / raw) To: Kevin Hilman Cc: Chris Zhong, Heiko Stübner, Mike Turquette, Ian Campbell, Russell King, Rob Herring, Pawel Moll, Mark Rutland, Linus Walleij, open list:ARM/Rockchip SoC..., devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Kumar Gala, Tony Xie, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Hi, On Mon, Dec 1, 2014 at 2:08 PM, Doug Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> wrote: > Hi, > > On Mon, Dec 1, 2014 at 11:51 AM, Kevin Hilman <khilman-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote: >> Chris Zhong <zyw-TNX95d0MmH7DzftRWevZcw@public.gmane.org> writes: >> >>> devices, since we still lack power_domain driver, so the other power rail >>> of rk3288 need keep power on. >>> I have tested it on rk3288-evb board, atop next-20141112. goto suspend by type >>> "echo mem > /sys/power/state", vdd_cpu is about 0mv by measuring, so it can be >>> determined in sleep mode, then press power button to wakeup it. >> >> I tested this on top of today's linux-next (next-20141201) and it >> suspends, but doesn't wake up from any of the button presses. What >> wakeup sources are configured for the rk3288-evb-rk808? > > Just to close the loop (I talked with Kevin over IM about this, too): > > I have a huge description of how I tested this as part of my patch at > <https://patchwork.kernel.org/patch/5414941/>. Chris: I think Kevin > has asked you several times to include information like this in your > cover letter. Please, please, please can you try to remember to do > this? Talked to Chris offline. He said that in his tests the other patches weren't needed, so he didn't list any other patches. Things just worked for him. ...so I guess he did post the instructions that worked for him. Sorry for the complaint. Possibly things are different on "next-20141112" and that's where Chris said he tested. I know that I personally needed some of the extra patches. I guess the USB one wasn't truly needed (only needed for hotplug), but for me things were unhappy without SMP. It was hanging when trying to turn off secondary CPUs. I didn't dig, though. The clocksource patches are needed for me because I'm using an old bootloader, but I think they're also relevant for S2R because (I'm told) we can lose the virtual offset at suspend time in certain modes. -Doug . -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external 2014-12-02 1:07 ` Doug Anderson @ 2014-12-02 1:26 ` Kevin Hilman [not found] ` <7hmw763kql.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org> 0 siblings, 1 reply; 14+ messages in thread From: Kevin Hilman @ 2014-12-02 1:26 UTC (permalink / raw) To: Doug Anderson Cc: Chris Zhong, Heiko Stübner, Mike Turquette, Ian Campbell, Russell King, Rob Herring, Pawel Moll, Mark Rutland, Linus Walleij, open list:ARM/Rockchip SoC..., devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kumar Gala, Tony Xie, linux-arm-kernel@lists.infradead.org Doug Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> writes: > Hi, > > On Mon, Dec 1, 2014 at 2:08 PM, Doug Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> wrote: >> Hi, >> >> On Mon, Dec 1, 2014 at 11:51 AM, Kevin Hilman <khilman-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote: >>> Chris Zhong <zyw-TNX95d0MmH7DzftRWevZcw@public.gmane.org> writes: >>> >>>> devices, since we still lack power_domain driver, so the other power rail >>>> of rk3288 need keep power on. >>>> I have tested it on rk3288-evb board, atop next-20141112. goto suspend by type >>>> "echo mem > /sys/power/state", vdd_cpu is about 0mv by measuring, so it can be >>>> determined in sleep mode, then press power button to wakeup it. >>> >>> I tested this on top of today's linux-next (next-20141201) and it >>> suspends, but doesn't wake up from any of the button presses. What >>> wakeup sources are configured for the rk3288-evb-rk808? >> >> Just to close the loop (I talked with Kevin over IM about this, too): >> >> I have a huge description of how I tested this as part of my patch at >> <https://patchwork.kernel.org/patch/5414941/>. Chris: I think Kevin >> has asked you several times to include information like this in your >> cover letter. Please, please, please can you try to remember to do >> this? > > Talked to Chris offline. He said that in his tests the other patches > weren't needed, so he didn't list any other patches. Things just > worked for him. ...so I guess he did post the instructions that > worked for him. Sorry for the complaint. Possibly things are > different on "next-20141112" and that's where Chris said he tested. This series doesn't apply cleanly to next-20141112. Manually applying (with fuzz), it boots but I have the same results: it suspends, but none of the buttons wake it up. Kevin -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <7hmw763kql.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>]
* Re: [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external [not found] ` <7hmw763kql.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org> @ 2014-12-03 13:55 ` Chris Zhong [not found] ` <547F1639.3030102-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 0 siblings, 1 reply; 14+ messages in thread From: Chris Zhong @ 2014-12-03 13:55 UTC (permalink / raw) To: Kevin Hilman, Doug Anderson Cc: Heiko Stübner, Mike Turquette, Ian Campbell, Russell King, Rob Herring, Pawel Moll, Mark Rutland, Linus Walleij, open list:ARM/Rockchip SoC..., devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Kumar Gala, Tony Xie, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org On 12/02/2014 09:26 AM, Kevin Hilman wrote: > Doug Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> writes: > >> Hi, >> >> On Mon, Dec 1, 2014 at 2:08 PM, Doug Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> wrote: >>> Hi, >>> >>> On Mon, Dec 1, 2014 at 11:51 AM, Kevin Hilman <khilman-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote: >>>> Chris Zhong <zyw-TNX95d0MmH7DzftRWevZcw@public.gmane.org> writes: >>>> >>>>> devices, since we still lack power_domain driver, so the other power rail >>>>> of rk3288 need keep power on. >>>>> I have tested it on rk3288-evb board, atop next-20141112. goto suspend by type >>>>> "echo mem > /sys/power/state", vdd_cpu is about 0mv by measuring, so it can be >>>>> determined in sleep mode, then press power button to wakeup it. >>>> I tested this on top of today's linux-next (next-20141201) and it >>>> suspends, but doesn't wake up from any of the button presses. What >>>> wakeup sources are configured for the rk3288-evb-rk808? >>> Just to close the loop (I talked with Kevin over IM about this, too): >>> >>> I have a huge description of how I tested this as part of my patch at >>> <https://patchwork.kernel.org/patch/5414941/>. Chris: I think Kevin >>> has asked you several times to include information like this in your >>> cover letter. Please, please, please can you try to remember to do >>> this? >> Talked to Chris offline. He said that in his tests the other patches >> weren't needed, so he didn't list any other patches. Things just >> worked for him. ...so I guess he did post the instructions that >> worked for him. Sorry for the complaint. Possibly things are >> different on "next-20141112" and that's where Chris said he tested. > This series doesn't apply cleanly to next-20141112. Manually applying > (with fuzz), it boots but I have the same results: it suspends, but none > of the buttons wake it up. > > Kevin > Hi, Kevin I have test these patches on evb board base on next-20141128 with a defconfig[0], and with u-boot[1]. As Doug said, we need below 3 patches for resume. 1.https://patchwork.kernel.org/patch/5051881/ - clocksource: arch_timer: Allow the device tree to specify uninitialized timer registers 2.https://patchwork.kernel.org/patch/5363671/ - clocksource: arch_timer: Fix code to use physical timers when requested 3.https://patchwork.kernel.org/patch/5382141/ - ARM: dts: rk3288: add arm,cpu-registers-not-fw-configured And it will auto wakeup, as Heiko said in v8. But I have never notice before, since the u-boot never enable edp, and I use the coreboot with edp display. Actually it is a bug in rk3288, the rk3288 have not 27Mhz clock source, but the edp initially set to this non-existent clock. At this time, edp is working on a unknown state, and it always bring a interrupt, this interrupt avoid system enter suspend. So if we want to enter suspend normally, the edp_24m_sel(bit 15) of CRU_CLKSEL28_CON(0xff7600d0) must be set to 1. [0] https://github.com/mmind/linux-rockchip/blob/devel/workbench/arch/arm/configs/rk3288_defconfig [1] https://githubremotes/origin/u-boot-rk3288 here is my local work around: diff --git a/arch//cpu/armv7/rk32xx/clock-rk3288.c b/arch/arm/cpu/armv7/rk32xx/clock-rk3288.c index cfd0acd..3df0900 100755 --- a/arch/arm/cpu/armv7/rk32xx/clock-rk3288.c +++ b/arch/arm/cpu/armv7/rk32xx/clock-rk3288.c @@ -1233,7 +1233,6 @@ int rkclk_lcdc_clk_set(uint32 lcdc_id, uint32 dclk_hz) } } - /* * rkplat set nandc clock div * nandc_id: nandc id @@ -1270,6 +1269,11 @@ int rkclk_set_nandc_div(uint32 nandc_id, uint32 pllsrc, uint32 freq) return 0; } +void rkclk_init_edp_source(void) +{ + cru_writel(1<<15 | 1<<31, CRU_CLKSELS_CON(28)); +} + /* * rkplat set sd clock src * 0: codec pll; 1: general pll; 2: 24M diff --git a/board/rockchip/rk32xx/rk32xx.c b/board/rockchip/rk32xx/rk32xx.c index bfdcf0e..3e19f5d 100755 --- a/board/rockchip/rk32xx/rk32xx.c +++ b/board/rockchip/rk32xx/rk32xx.c @@ -114,7 +114,7 @@ void rk_backlight_ctrl(int brightness) void rk_fb_init(unsigned int onoff) { - + rkclk_init_edp_source(); #ifdef CONFIG_OF_LIBFDT if (lcd_node == 0) rk_lcd_parse_dt(gd->fdt_blob); -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 14+ messages in thread
[parent not found: <547F1639.3030102-TNX95d0MmH7DzftRWevZcw@public.gmane.org>]
* Re: [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external [not found] ` <547F1639.3030102-TNX95d0MmH7DzftRWevZcw@public.gmane.org> @ 2014-12-03 19:23 ` Kevin Hilman [not found] ` <7hiohszgep.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org> 0 siblings, 1 reply; 14+ messages in thread From: Kevin Hilman @ 2014-12-03 19:23 UTC (permalink / raw) To: Chris Zhong Cc: Doug Anderson, Heiko Stübner, Mike Turquette, Ian Campbell, Russell King, Rob Herring, Pawel Moll, Mark Rutland, Linus Walleij, open list:ARM/Rockchip SoC..., devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kumar Gala, Tony Xie, linux-arm-kernel@lists.infradead.org Chris Zhong <zyw-TNX95d0MmH7DzftRWevZcw@public.gmane.org> writes: [...] > I have test these patches on evb board base on next-20141128 with a > defconfig[0], and with u-boot[1]. > As Doug said, we need below 3 patches for resume. > > 1.https://patchwork.kernel.org/patch/5051881/ - clocksource: > arch_timer: Allow the device tree to specify uninitialized timer > registers > > 2.https://patchwork.kernel.org/patch/5363671/ - clocksource: > arch_timer: Fix code to use physical timers when requested > > 3.https://patchwork.kernel.org/patch/5382141/ - ARM: dts: rk3288: add > arm,cpu-registers-not-fw-configured > > > And it will auto wakeup, as Heiko said in v8. OK, with your series plus those 3 patches on top of next-20141128, I'm now seeing it auto-wakeup, either with multi_v7_defconfig or Heiko's rk3288_defconfig. > But I have never notice before, since the u-boot never enable edp, and > I use the coreboot with edp display. Actually it is a bug in rk3288, > the rk3288 have not 27Mhz clock source, but the edp initially set to > this non-existent clock. At this time, edp is working on a unknown > state, and it always bring a interrupt, this interrupt avoid system > enter suspend. I see, good find! > So if we want to enter suspend normally, the > edp_24m_sel(bit 15) of CRU_CLKSEL28_CON(0xff7600d0) must be set to 1. I didn't try your u-boot fix, but it sounds like there should be a kernel fix for this. Why doesn't the disabling of unused clocks put the EDP into a safe/disabled state? Kevin -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <7hiohszgep.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>]
* Re: [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external [not found] ` <7hiohszgep.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org> @ 2014-12-07 23:46 ` Heiko Stübner 0 siblings, 0 replies; 14+ messages in thread From: Heiko Stübner @ 2014-12-07 23:46 UTC (permalink / raw) To: Kevin Hilman, Chris Zhong Cc: Doug Anderson, Mike Turquette, Ian Campbell, Russell King, Rob Herring, Pawel Moll, Mark Rutland, Linus Walleij, open list:ARM/Rockchip SoC..., devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Kumar Gala, Tony Xie, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Hi, Am Mittwoch, 3. Dezember 2014, 11:23:26 schrieb Kevin Hilman: > Chris Zhong <zyw-TNX95d0MmH7DzftRWevZcw@public.gmane.org> writes: > > [...] > > > I have test these patches on evb board base on next-20141128 with a > > defconfig[0], and with u-boot[1]. > > As Doug said, we need below 3 patches for resume. > > > > 1.https://patchwork.kernel.org/patch/5051881/ - clocksource: > > arch_timer: Allow the device tree to specify uninitialized timer > > registers > > > > 2.https://patchwork.kernel.org/patch/5363671/ - clocksource: > > arch_timer: Fix code to use physical timers when requested > > > > 3.https://patchwork.kernel.org/patch/5382141/ - ARM: dts: rk3288: add > > > > arm,cpu-registers-not-fw-configured > > > > And it will auto wakeup, as Heiko said in v8. > > OK, with your series plus those 3 patches on top of next-20141128, I'm > now seeing it auto-wakeup, either with multi_v7_defconfig or Heiko's > rk3288_defconfig. > > > But I have never notice before, since the u-boot never enable edp, and > > I use the coreboot with edp display. Actually it is a bug in rk3288, > > the rk3288 have not 27Mhz clock source, but the edp initially set to > > this non-existent clock. At this time, edp is working on a unknown > > state, and it always bring a interrupt, this interrupt avoid system > > enter suspend. > > I see, good find! I think the "problem" might be a different one. With Chris' short patch [0] enabling a bit of gic debug output on resume I was able to track down where my wakeup comes from and it seems to be the sdmmc_detect_n interrupt. When I have a sd card inserted it wakes up again directly and when I remove it it stays asleep till I wake it with the power- button. Relevant output would be: gic_cpu_restore add = f0000000, 0, 0, 0, 0, 8 I have verified that at least for me the sclk_edp_24m has no influence on this, by using an uboot that does not reparent the edp clock (it stays an orphan) and an uboot that reparents it to xin24m. In both cases the system wakes up directly when I have a sd card in the slot and stays asleep (till pressing the power-key) when I remove the card. So the auto-wakeup is not the fault of the new suspend-code, but we should find a way to tame sdmmc_detect_n :-) Now I only need to check why I get a rk3288_suspend_finish: Suspend finish failed on every resume [1], but that is something for tomorrow. Heiko [0] diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index d617ee5..37d5ce0 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -538,6 +538,7 @@ static void gic_cpu_restore(unsigned int gic_nr) u32 *ptr; void __iomem *dist_base; void __iomem *cpu_base; + u32 reg[5]; if (gic_nr >= MAX_GIC_NR) BUG(); @@ -562,6 +563,10 @@ static void gic_cpu_restore(unsigned int gic_nr) writel_relaxed(GICC_INT_PRI_THRESHOLD, cpu_base + GIC_CPU_PRIMASK); gic_cpu_if_up(); + + for (i = 0; i < 5; i++) + reg[i] = readl_relaxed(dist_base + 0x200 + i * 4); + printk("%s add = %x, %x, %x, %x, %x, %x\n",__func__, dist_base, reg[0], reg[1], reg[2], reg[3], reg[4]); } static int gic_notifier(struct notifier_block *self, unsigned long cmd, void *v) [1] Disabling non-boot CPUs ... CPU1: shutdown CPU2: shutdown CPU3: shutdown gic_cpu_restore add = f0000000, 0, 0, 0, 20000, 0 Enabling non-boot CPUs ... CPU1 is up CPU2 is up CPU3 is up PM: noirq resume of devices complete after 0.892 msecs PM: early resume of devices complete after 0.991 msecs rk3288_suspend_finish: Suspend finish failed PM: resume of devices complete after 2.496 msecs -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external 2014-12-01 22:08 ` Doug Anderson [not found] ` <CAD=FV=V2go5BMFbiFKu73_aVz5ck949W-kJQ6WLkAQRPJbjPVA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-12-02 1:18 ` Chris Zhong 1 sibling, 0 replies; 14+ messages in thread From: Chris Zhong @ 2014-12-02 1:18 UTC (permalink / raw) To: Doug Anderson, Kevin Hilman Cc: Heiko Stübner, Mike Turquette, Ian Campbell, Russell King, Rob Herring, Pawel Moll, Mark Rutland, Linus Walleij, open list:ARM/Rockchip SoC..., devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kumar Gala, Tony Xie, linux-arm-kernel@lists.infradead.org On 12/02/2014 06:08 AM, Doug Anderson wrote: > Hi, > > On Mon, Dec 1, 2014 at 11:51 AM, Kevin Hilman <khilman@kernel.org> wrote: >> Chris Zhong <zyw@rock-chips.com> writes: >> >>> devices, since we still lack power_domain driver, so the other power rail >>> of rk3288 need keep power on. >>> I have tested it on rk3288-evb board, atop next-20141112. goto suspend by type >>> "echo mem > /sys/power/state", vdd_cpu is about 0mv by measuring, so it can be >>> determined in sleep mode, then press power button to wakeup it. >> I tested this on top of today's linux-next (next-20141201) and it >> suspends, but doesn't wake up from any of the button presses. What >> wakeup sources are configured for the rk3288-evb-rk808? > Just to close the loop (I talked with Kevin over IM about this, too): > > I have a huge description of how I tested this as part of my patch at > <https://patchwork.kernel.org/patch/5414941/>. Chris: I think Kevin > has asked you several times to include information like this in your > cover letter. Please, please, please can you try to remember to do > this? I wrote it to v8 cover letter, but I found that they are all landed on linux-next now, so I remove they from v9, v10. Based on: [v5,1/6] ARM: rockchip: convert to regmap and use pmu syscon if available https://patchwork.kernel.org/patch/5086341/ [v5,2/6] ARM: rockchip: add option to access the pmu via a phandle in smp_operations https://patchwork.kernel.org/patch/5086441/ [v5,3/6] ARM: dts: rockchip: add pmu references to cpus nodes https://patchwork.kernel.org/patch/5086351/ [v5,4/6] ARM: rockchip: add basic smp support for rk3288 https://patchwork.kernel.org/patch/5086371/ [v5,5/6] ARM: dts: rockchip: add intmem node for rk3288 smp support https://patchwork.kernel.org/patch/5086361/ [v5,6/6] ARM: dts: rockchip: add reset for CPU nodes https://patchwork.kernel.org/patch/5086381/ [v3] usb: dwc2: add bus suspend/resume for dwc2 https://patchwork.kernel.org/patch/5266281/ But I missed this 3 patches, since I thought they just for fix timer disorder when I use coreboot. Doug said they are related to SMP and related to suspend/resume. 1. https://patchwork.kernel.org/patch/5051881/ - clocksource: arch_timer: Allow the device tree to specify uninitialized timer registers 2. https://patchwork.kernel.org/patch/5363671/ - clocksource: arch_timer: Fix code to use physical timers when requested 3. https://patchwork.kernel.org/patch/5382141/ - ARM: dts: rk3288: add arm,cpu-registers-not-fw-configured I'm not sure whether we need these 2 patches. 4. Revert (b77d439 ARM: dts: rockchip: temporarily disable smp on rk3288) 5. https://patchwork.kernel.org/patch/5325111/ - usb: dwc2: resume root hub when device detect with suspend state > > For those that don't want to click on my link, I'll include the > relevant bits here: > > --- > > Total patches atop that version of Linux were: > > 1. https://patchwork.kernel.org/patch/5051881/ - clocksource: > arch_timer: Allow the device tree to specify uninitialized timer > registers > > 2. https://patchwork.kernel.org/patch/5363671/ - clocksource: > arch_timer: Fix code to use physical timers when requested > > 3. https://patchwork.kernel.org/patch/5382141/ - ARM: dts: rk3288: add > arm,cpu-registers-not-fw-configured > > 4. Revert (b77d439 ARM: dts: rockchip: temporarily disable smp on > rk3288) > > 5. https://patchwork.kernel.org/patch/5325111/ - usb: dwc2: resume > root hub when device detect with suspend state > > 6. https://patchwork.kernel.org/patch/5410611/ - ARM: rockchip: add > suspend and resume for RK3288 > > 7. https://patchwork.kernel.org/patch/5410621/ - ARM: rockchip: Add > pmu-sram binding > > 8. https://patchwork.kernel.org/patch/5410631/ - ARM: dts: add RK3288 > suspend support > > 9. https://patchwork.kernel.org/patch/5410641/ - ARM: dts: rockchip: > add suspend settings for rk3288-evb-rk808 > > It looks like my pinctrl patches might be dropped due to cross > dependency problems, so tomorrow's linux-next will probably also need > (https://patchwork.kernel.org/patch/5344551/ - pinctrl: rockchip: > Handle wakeup pins). > > I've also got a local hack to the Rockchip "pm.c" to replace the usage > of "PMU_ARMINT_WAKEUP_EN" with 0x0e. There seems to be some sort of > ARM Interrupt waking us up all the time right when we go to sleep and > the above will hack it so that only GPIOs + SDMMC Card Detect can wake > us up. Someone should track down what's going on there, but for now > I've used the hack to prove that the basic code actually works. > > > ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external 2014-12-01 8:52 [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external Chris Zhong ` (3 preceding siblings ...) [not found] ` <1417423940-1669-1-git-send-email-zyw-TNX95d0MmH7DzftRWevZcw@public.gmane.org> @ 2015-01-02 20:57 ` Heiko Stübner 4 siblings, 0 replies; 14+ messages in thread From: Heiko Stübner @ 2015-01-02 20:57 UTC (permalink / raw) To: Chris Zhong Cc: dianders, mturquette, Ian Campbell, Russell King, Rob Herring, Pawel Moll, Mark Rutland, Linus Walleij, khilman, linux-rockchip, devicetree, linux-kernel, Kumar Gala, Tony Xie, linux-arm-kernel Am Montag, 1. Dezember 2014, 16:52:16 schrieb Chris Zhong: > devices, since we still lack power_domain driver, so the other power rail > of rk3288 need keep power on. > I have tested it on rk3288-evb board, atop next-20141112. goto suspend by > type "echo mem > /sys/power/state", vdd_cpu is about 0mv by measuring, so > it can be determined in sleep mode, then press power button to wakeup it. I've tested this series again on 3.19-rc1. It still sucessfully suspends and wakes a rk3288-evb-rk808 system on power-key presses. [except the sdmmc detect interrupt going off when a card is inserted on suspend] So I've applied this series to appropriate soc and dts branches for 3.20 Heiko ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2015-01-02 20:57 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-12-01 8:52 [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external Chris Zhong 2014-12-01 8:52 ` [PATCH v10 2/4] ARM: rockchip: Add pmu-sram binding Chris Zhong 2014-12-01 8:52 ` [PATCH v10 3/4] ARM: dts: add RK3288 suspend support Chris Zhong 2014-12-01 8:52 ` [PATCH v10 4/4] ARM: dts: rockchip: add suspend settings for rk3288-evb-rk808 Chris Zhong 2014-12-01 22:19 ` Doug Anderson [not found] ` <1417423940-1669-1-git-send-email-zyw-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2014-12-01 19:51 ` [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external Kevin Hilman 2014-12-01 22:08 ` Doug Anderson [not found] ` <CAD=FV=V2go5BMFbiFKu73_aVz5ck949W-kJQ6WLkAQRPJbjPVA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-12-02 1:07 ` Doug Anderson 2014-12-02 1:26 ` Kevin Hilman [not found] ` <7hmw763kql.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org> 2014-12-03 13:55 ` Chris Zhong [not found] ` <547F1639.3030102-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2014-12-03 19:23 ` Kevin Hilman [not found] ` <7hiohszgep.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org> 2014-12-07 23:46 ` Heiko Stübner 2014-12-02 1:18 ` Chris Zhong 2015-01-02 20:57 ` Heiko Stübner
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).