linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/14] arm: OMAP: AM437X: Save restores patches for rtc mode with DDR In self-refresh
@ 2018-04-12  3:53 Keerthy
  2018-04-12  3:53 ` [PATCH 01/14] memory: ti-emif-sram: Add resume function to recopy sram code Keerthy
                   ` (13 more replies)
  0 siblings, 14 replies; 31+ messages in thread
From: Keerthy @ 2018-04-12  3:53 UTC (permalink / raw)
  To: linus.walleij, grygorii.strashko, tony
  Cc: j-keerthy, t-kristo, Russ.Dill, linux-omap, linux-kernel,
	ssantosh, haojian.zhuang, linux-arm-kernel, d-gerlach

RTC plus DDR in self-refresh is power a saving mode where in the entire
system including the different voltage rails from PMIC are shutdown except
the ones feeding on to RTC and DDR. DDR is kept in self-refresh hence the
contents are preserved. RTC ALARM2 is connected to PMIC_EN line once
we the ALARM2 is triggered we enter the mode with DDR in self-refresh
and RTC Ticking. After a predetermined time an RTC ALARM1 triggers waking
up the system. The control goes to bootloader. The bootloader then checks
RTC scratchpad registers to confirm it was an rtc_only wakeup and follows
a different path, configure bare minimal clocks for ddr and then jumps to
the resume address in another RTC scratchpad registers and transfers the
control to Kernel. Kernel then restores the saved context.

This series is a prerequisite for the rtc mode with DDR in self
refresh mode for am437x series of SoCs. As all the voltage domains
are shut off apart from RTC and DDR is kept in self refresh
additional save/restores are needed.

The series applies cleanly against linux-next branch.

This mode works only with u-boot built with am43xx_evm_rtconly_defconfig

Dave Gerlach (5):
  memory: ti-emif-sram: Add resume function to recopy sram code
  ARM: OMAP2+: omap_hwmod: Introduce HWMOD_NEEDS_REIDLE
  gpio: omap: Restore power_mode configuration at resume time
  ARM: hwmod: RTC: Don't assume lock/unlock will be called with irq
    enabled
  ARM: OMAP2+: prm44xx: Introduce context save/restore for am43 PRCM IO

Keerthy (1):
  OMAP: CLK: CLKSRC: Add suspend resume hooks

Russ Dill (7):
  ARM: OMAP2: Add functions to save and restore clockdomain context
    en-masse.
  ARM: OMAP2: Add functions to save and restore omap hwmod context
    en-masse.
  ARM: OMAP2: Add functions to save and restore powerdomain context
  ARM: AM33XX: Add functions to save/restore am33xx control registers.
  ARM: OMAP2: Add functions to save and restore pinctrl context.
  ARM: OMAP2: Drop the concept of certain power domains not being able
    to lose context.
  gpio: omap: Drop the concept of gpio banks not being able to lose
    context.

Tero Kristo (1):
  ARM: AM43XX: Add functions to save/restore am43xx control registers

 arch/arm/mach-omap2/clockdomain.c                  |  46 +++++
 arch/arm/mach-omap2/clockdomain.h                  |   8 +
 arch/arm/mach-omap2/cm33xx.c                       |  53 ++++++
 arch/arm/mach-omap2/cminst44xx.c                   |  43 +++++
 arch/arm/mach-omap2/control.c                      | 172 ++++++++++++++++++
 arch/arm/mach-omap2/control.h                      |  65 +++++++
 arch/arm/mach-omap2/omap_device.c                  |  50 +++++
 arch/arm/mach-omap2/omap_device.h                  |   1 +
 arch/arm/mach-omap2/omap_hwmod.c                   | 202 +++++++++++++++++++++
 arch/arm/mach-omap2/omap_hwmod.h                   |  21 +++
 .../mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c |  14 +-
 arch/arm/mach-omap2/omap_hwmod_33xx_data.c         |   3 +-
 arch/arm/mach-omap2/omap_hwmod_reset.c             |  12 +-
 arch/arm/mach-omap2/powerdomain.c                  |  75 +++++---
 arch/arm/mach-omap2/powerdomain.h                  |   8 +-
 arch/arm/mach-omap2/prm.h                          |   2 +
 arch/arm/mach-omap2/prm33xx.c                      |  31 ++++
 arch/arm/mach-omap2/prm44xx.c                      |  79 ++++++++
 arch/arm/mach-omap2/timer.c                        |  37 ++++
 drivers/gpio/gpio-omap.c                           |  40 ++--
 drivers/memory/ti-emif-pm.c                        |  24 +++
 drivers/pinctrl/core.c                             |   1 +
 drivers/pinctrl/core.h                             |   1 -
 drivers/pinctrl/pinctrl-single.c                   |  50 +++++
 drivers/pinctrl/pinmux.c                           |  22 +++
 include/linux/pinctrl/pinctrl.h                    |   7 +
 include/linux/pinctrl/pinmux.h                     |  16 ++
 include/linux/platform_data/gpio-omap.h            |   1 -
 28 files changed, 1019 insertions(+), 65 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2018-05-23 16:43 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-12  3:53 [PATCH 00/14] arm: OMAP: AM437X: Save restores patches for rtc mode with DDR In self-refresh Keerthy
2018-04-12  3:53 ` [PATCH 01/14] memory: ti-emif-sram: Add resume function to recopy sram code Keerthy
2018-04-12 16:44   ` santosh.shilimkar
2018-04-16 10:20     ` Keerthy
2018-04-16 10:29     ` Keerthy
2018-05-23  8:47       ` Keerthy
2018-05-23 16:42         ` Santosh Shilimkar
2018-04-12  3:53 ` [PATCH 02/14] ARM: OMAP2: Add functions to save and restore clockdomain context en-masse Keerthy
2018-04-12  3:53 ` [PATCH 03/14] ARM: OMAP2+: omap_hwmod: Introduce HWMOD_NEEDS_REIDLE Keerthy
2018-04-12 14:34   ` Tony Lindgren
2018-04-12  3:53 ` [PATCH 04/14] ARM: OMAP2: Add functions to save and restore omap hwmod context en-masse Keerthy
2018-04-12  3:53 ` [PATCH 05/14] ARM: OMAP2: Add functions to save and restore powerdomain context Keerthy
2018-04-12 14:37   ` Tony Lindgren
2018-04-12  3:53 ` [PATCH 06/14] ARM: AM33XX: Add functions to save/restore am33xx control registers Keerthy
2018-04-12  3:53 ` [PATCH 07/14] ARM: AM43XX: Add functions to save/restore am43xx " Keerthy
2018-04-12  3:53 ` [PATCH 08/14] ARM: OMAP2: Add functions to save and restore pinctrl context Keerthy
2018-04-12 14:16   ` Tony Lindgren
2018-04-13  6:16     ` Keerthy
2018-04-12  3:53 ` [PATCH 09/14] ARM: OMAP2: Drop the concept of certain power domains not being able to lose context Keerthy
2018-04-12  3:53 ` [PATCH 10/14] gpio: omap: Drop the concept of gpio banks " Keerthy
2018-04-12 14:22   ` Tony Lindgren
2018-04-12 20:10     ` Grygorii Strashko
2018-04-12  3:53 ` [PATCH 11/14] gpio: omap: Restore power_mode configuration at resume time Keerthy
2018-04-12 14:39   ` Tony Lindgren
2018-04-12 20:02     ` Grygorii Strashko
2018-04-12  3:53 ` [PATCH 12/14] OMAP: CLK: CLKSRC: Add suspend resume hooks Keerthy
2018-04-12 14:27   ` Tony Lindgren
2018-05-22  7:57     ` Keerthy
2018-05-22 13:39       ` Tony Lindgren
2018-04-12  3:53 ` [PATCH 13/14] ARM: hwmod: RTC: Don't assume lock/unlock will be called with irq enabled Keerthy
2018-04-12  3:53 ` [PATCH 14/14] ARM: OMAP2+: prm44xx: Introduce context save/restore for am43 PRCM IO Keerthy

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