mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Gerlach <d-gerlach@ti.com>
To: Tony Lindgren <tony@atomide.com>,
	Santosh Shilimkar <ssantosh@kernel.org>,
	Russell King <linux@armlinux.org.uk>
Cc: <linux-arm-kernel@lists.infradead.org>,
	<linux-omap@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	Dave Gerlach <d-gerlach@ti.com>, Keerthy J <j-keerthy@ti.com>,
	Johan Hovold <johan@kernel.org>
Subject: [PATCH v3 0/4] ARM: OMAP2+: AM33XX/AM43XX: Add suspend-resume support
Date: Tue, 25 Jul 2017 09:44:10 -0500	[thread overview]
Message-ID: <20170725144414.7129-1-d-gerlach@ti.com> (raw)

Hi,
This series contains the remaining code to enable suspend to mem and standby on
am335x and am437x platforms. It depends on the ti-emif-sram series sent here
[1]. Changes are based on comments given for V2 of this series which can
be found here [2].

This code also depends on firmware for the wkup_m3 that is available here [3]
that can either be placed in /lib/firmware or built in to the kernel.

Changes from v2 are described in the patches but summary is:
* Squash patch 5 into patch 3 since they touch the same platform
  code and don't need to be two patches.
* Fix small ASM bug to program EMIF for self refresh then save context
  so that we save the exact state of the emif before suspending.
* Add missing of_node_put in patch 4
* Avoid extern definition for asm-offsets definition and use a stub instead
  of defining out in asm-offsets.
* Use dev_err and friends in pm33xx driver for PM messages.
* General code cleanups.

For testing the drivers required are:

CONFIG_MAILBOX
CONFIG_OMAP2PLUS_MBOX
CONFIG_WKUP_M3_RPROC
CONFIG_SOC_TI
CONFIG_WKUP_M3_IPC
CONFIG_TI_EMIF_SRAM
CONFIG_AMX3_PM

There is still a device tree patch series to follow that will completely enable
PM but I will wait to send that until this series and the emif series have been
reviewed, until then all patches have been pushed here for use [4].

Regards,
Dave

[1] https://www.spinics.net/lists/linux-omap/msg138314.html
[2] https://www.spinics.net/lists/arm-kernel/msg582309.html
[3] https://git.ti.com/processor-firmware/ti-amx3-cm3-pm-firmware/blobs/7eb9c0856a9e8b3b42bf64f761da135852b8eea7/bin/am335x-pm-firmware.elf
[4] https://github.com/dgerlach/linux-pm/tree/upstream/v4.13/amx3-suspend-v3

Dave Gerlach (4):
  ARM: OMAP2+: Introduce low-level suspend code for AM33XX
  ARM: OMAP2+: Introduce low-level suspend code for AM43XX
  ARM: OMAP2+: pm33xx-core: Add platform code needed for PM
  soc: ti: Add pm33xx driver for basic suspend support

 Documentation/devicetree/bindings/arm/omap/mpu.txt |  16 +
 arch/arm/kernel/asm-offsets.c                      |   2 +
 arch/arm/mach-omap2/Kconfig                        |   1 +
 arch/arm/mach-omap2/Makefile                       |   4 +
 arch/arm/mach-omap2/common.h                       |   7 +
 arch/arm/mach-omap2/io.c                           |   2 +
 arch/arm/mach-omap2/pm.h                           |   3 +
 arch/arm/mach-omap2/pm33xx-core.c                  | 197 +++++++++++
 arch/arm/mach-omap2/sleep33xx.S                    | 221 ++++++++++++
 arch/arm/mach-omap2/sleep43xx.S                    | 394 +++++++++++++++++++++
 drivers/soc/ti/Kconfig                             |   9 +
 drivers/soc/ti/Makefile                            |   1 +
 drivers/soc/ti/pm33xx.c                            | 357 +++++++++++++++++++
 include/linux/platform_data/pm33xx.h               |  74 ++++
 14 files changed, 1288 insertions(+)
 create mode 100644 arch/arm/mach-omap2/pm33xx-core.c
 create mode 100644 arch/arm/mach-omap2/sleep33xx.S
 create mode 100644 arch/arm/mach-omap2/sleep43xx.S
 create mode 100644 drivers/soc/ti/pm33xx.c
 create mode 100644 include/linux/platform_data/pm33xx.h

-- 
2.13.0

             reply	other threads:[~2017-07-25 14:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-25 14:44 Dave Gerlach [this message]
2017-07-25 14:44 ` [PATCH v3 1/4] ARM: OMAP2+: Introduce low-level suspend code for AM33XX Dave Gerlach
2017-07-25 14:44 ` [PATCH v3 2/4] ARM: OMAP2+: Introduce low-level suspend code for AM43XX Dave Gerlach
2017-07-25 14:44 ` [PATCH v3 3/4] ARM: OMAP2+: pm33xx-core: Add platform code needed for PM Dave Gerlach
2017-07-25 14:44 ` [PATCH v3 4/4] soc: ti: Add pm33xx driver for basic suspend support Dave Gerlach
2017-09-01 12:55   ` Johan Hovold
2017-08-11 15:39 ` [PATCH v3 0/4] ARM: OMAP2+: AM33XX/AM43XX: Add suspend-resume support Tony Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170725144414.7129-1-d-gerlach@ti.com \
    --to=d-gerlach@ti.com \
    --cc=j-keerthy@ti.com \
    --cc=johan@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=ssantosh@kernel.org \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®