linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] powerpc/pm: QorIQ deep sleep
@ 2016-04-15 11:13 Chenhui Zhao
  2016-04-15 11:13 ` [PATCH v2 1/5] powerpc/85xx: support sleep feature on QorIQ SoCs with RCPM Chenhui Zhao
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Chenhui Zhao @ 2016-04-15 11:13 UTC (permalink / raw)
  To: linuxppc-dev, oss; +Cc: jason.jin, chenhui.zhao

Changes for v2:
* Ioremap every dts node used in the patches.
* Check the board compatible string to see if the board supports deep sleep.
* Can not reserve the first page of DDR memory, because PPC64 doesn't support
  changing the kernel base address. So still save and restore the first 128 bytes
  of DDR memory.
* Still save and restoer CCSR registers in kernel, because bootloader doesn't
  know what register values to restore
* Changed copyright and email address from freescale to NXP

Please refer to the version 1:
[1/4] powerpc/85xx: support sleep feature on QorIQ SoCs with RCPM
http://patchwork.ozlabs.org/patch/502549/

[2/4] powerpc: get the physical base address of DCSR
http://patchwork.ozlabs.org/patch/502551/
It is removed.

[3/4] powerpc: pm: add EPU FSM configuration for deep sleep
http://patchwork.ozlabs.org/patch/502548/

[4/4] powerpc: pm: support deep sleep feature on T104x
http://patchwork.ozlabs.org/patch/502550/


Chenhui Zhao (5):
  powerpc/85xx: support sleep feature on QorIQ SoCs with RCPM
  powerpc: pm: add EPU FSM configuration for deep sleep
  powerpc/dts: add a compatible string to gpio0
  powerpc/pm: support deep sleep feature on T104x
  powerpc/pm: save and restore registers during deep sleep

 arch/powerpc/Kconfig                          |   3 +-
 arch/powerpc/boot/dts/fsl/qoriq-gpio-0.dtsi   |   2 +-
 arch/powerpc/include/asm/fsl_pm.h             |  28 +-
 arch/powerpc/kernel/asm-offsets.c             |  12 +
 arch/powerpc/kernel/fsl_booke_entry_mapping.S |  10 +
 arch/powerpc/kernel/head_64.S                 |   2 +-
 arch/powerpc/platforms/85xx/Kconfig           |   5 +
 arch/powerpc/platforms/85xx/Makefile          |   2 +
 arch/powerpc/platforms/85xx/deepsleep.c       | 365 ++++++++++++++++++
 arch/powerpc/platforms/85xx/qoriq_pm.c        |  84 ++++
 arch/powerpc/platforms/85xx/sleep_fsm.c       | 267 +++++++++++++
 arch/powerpc/platforms/85xx/sleep_fsm.h       |  92 +++++
 arch/powerpc/platforms/85xx/t104x_deepsleep.S | 531 ++++++++++++++++++++++++++
 arch/powerpc/platforms/86xx/Kconfig           |   1 +
 arch/powerpc/sysdev/fsl_rcpm.c                |  28 +-
 15 files changed, 1412 insertions(+), 20 deletions(-)
 create mode 100644 arch/powerpc/platforms/85xx/deepsleep.c
 create mode 100644 arch/powerpc/platforms/85xx/qoriq_pm.c
 create mode 100644 arch/powerpc/platforms/85xx/sleep_fsm.c
 create mode 100644 arch/powerpc/platforms/85xx/sleep_fsm.h
 create mode 100644 arch/powerpc/platforms/85xx/t104x_deepsleep.S

-- 
1.9.1

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: [PATCH v2 3/5] powerpc/dts: add a compatible string to gpio0
@ 2016-04-15 16:47 Yang-Leo Li
  2016-04-20 10:28 ` Chenhui Zhao
  0 siblings, 1 reply; 10+ messages in thread
From: Yang-Leo Li @ 2016-04-15 16:47 UTC (permalink / raw)
  To: Chenhui Zhao, linuxppc-dev@lists.ozlabs.org, oss@buserror.net
  Cc: Chenhui Zhao, Zhengxiong Jin



> -----Original Message-----
> From: linuxppc-release-bounces@linux.freescale.net [mailto:linuxppc-relea=
se-
> bounces@linux.freescale.net] On Behalf Of Chenhui Zhao
> Sent: Friday, April 15, 2016 6:13 AM
> To: linuxppc-dev@lists.ozlabs.org; oss@buserror.net
> Cc: Chenhui Zhao <chenhui.zhao@nxp.com>; Zhengxiong Jin
> <jason.jin@nxp.com>
> Subject: [linuxppc-release] [PATCH v2 3/5] powerpc/dts: add a compatible =
string
> to gpio0
>=20
> All gpio nodes used the same compatible string "fsl,qoriq-gpio".
> To identify the node corresponding to the GPIO1 pins, add a compatible st=
ring
> "fsl,qoriq-gpio-1".

This is not a documented binding.  And we normally don't add compatible str=
ings for this purpose.  If you want to reference a specific GPIO pin, use t=
he binding described at Documentation/devicetree/bindings/gpio/gpio.txt

Regards,
Leo

>=20
> Signed-off-by: Chenhui Zhao <chenhui.zhao@nxp.com>
> ---
>  arch/powerpc/boot/dts/fsl/qoriq-gpio-0.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>=20
> diff --git a/arch/powerpc/boot/dts/fsl/qoriq-gpio-0.dtsi
> b/arch/powerpc/boot/dts/fsl/qoriq-gpio-0.dtsi
> index cf714f5..1a26d6b 100644
> --- a/arch/powerpc/boot/dts/fsl/qoriq-gpio-0.dtsi
> +++ b/arch/powerpc/boot/dts/fsl/qoriq-gpio-0.dtsi
> @@ -33,7 +33,7 @@
>   */
>=20
>  gpio0: gpio@130000 {
> -	compatible =3D "fsl,qoriq-gpio";
> +	compatible =3D "fsl,qoriq-gpio-1", "fsl,qoriq-gpio";
>  	reg =3D <0x130000 0x1000>;
>  	interrupts =3D <55 2 0 0>;
>  	#gpio-cells =3D <2>;
> --
> 1.9.1
>=20
> _______________________________________________
> linuxppc-release mailing list
> linuxppc-release@linux.freescale.net
> http://linux.freescale.net/mailman/listinfo/linuxppc-release

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-05-03  5:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-15 11:13 [PATCH v2 0/5] powerpc/pm: QorIQ deep sleep Chenhui Zhao
2016-04-15 11:13 ` [PATCH v2 1/5] powerpc/85xx: support sleep feature on QorIQ SoCs with RCPM Chenhui Zhao
2016-04-15 11:13 ` [PATCH v2 2/5] powerpc: pm: add EPU FSM configuration for deep sleep Chenhui Zhao
2016-04-15 11:13 ` [PATCH v2 3/5] powerpc/dts: add a compatible string to gpio0 Chenhui Zhao
2016-04-15 11:13 ` [PATCH v2 4/5] powerpc/pm: support deep sleep feature on T104x Chenhui Zhao
2016-04-15 11:13 ` [PATCH v2 5/5] powerpc/pm: save and restore registers during deep sleep Chenhui Zhao
2016-04-26 10:27 ` [PATCH v2 0/5] powerpc/pm: QorIQ " Chenhui Zhao
2016-05-03  5:16   ` Scott Wood
  -- strict thread matches above, loose matches on Subject: below --
2016-04-15 16:47 [PATCH v2 3/5] powerpc/dts: add a compatible string to gpio0 Yang-Leo Li
2016-04-20 10:28 ` Chenhui Zhao

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).