All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/13] ARM: shmobile: R-Mobile: DT PM domain support
@ 2014-09-25 16:28 ` Geert Uytterhoeven
  0 siblings, 0 replies; 111+ messages in thread
From: Geert Uytterhoeven @ 2014-09-25 16:28 UTC (permalink / raw)
  To: linux-arm-kernel

	Hi Rafael, Simon, Magnus,

This patch series enables DT support for PM domains on Renesas R-Mobile SoCs.

Currently it's limited to R-Mobile A1 (r8a7740), but given the similarity of
the SYSC System-Controller on the various SH-Mobile/R-Mobile SoCs, and the
abstraction of PM domains in DT, it should be sufficiently generic to handle
other SoCs in the future (e.g. SH-Mobile AP4 (sh7372), SH-Mobile AG5 (sh73a0),
R-Mobile APE6 (r8a73a4)).

Changes compared to v2 (more detailed changelogs in the individual patches):
  - Minor changes to attach/detach callbacks,
  - Really add the A4MP and D4 PM domains, as fixes are available (see
    dependencies below),
  - Scan DT topology to identify special PM domains (CPUs and console),
  - Move PM domain power-on/off latencies to a separate patch.

Changes compared to v1 (more detailed changelogs in the individual patches):
  - Several new patches: PM QoS device latencies in DT, attach/detach
    callbacks,
  - Run-Time management of the module clocks, making the hack in
    drivers/sh/pm_runtime.c obsolete for DT platforms using genpd,
  - Addition of PM QoS device latencies, specified from DT,
  - Addition of build glue, so this builds and runs without additional
    changes, incl. s2ram.

This means that functionality-wise, the DT version is now on par with the
legacy version ("[PATCH v2 00/11] ARM: shmobile: r8a7740/armadillo800eva legacy
PM domain support").

Dependencies:
  - Simon Horman's renesas-devel-20140924-v3.17-rc6,
  - Rafael J. Wysocki's linux-pm.git#linux-next,
  - Jason Cooper's linux.git#irqchip/for-next.
  - "ARM: shmobile: R-Mobile: Store SYSC base address in rmobile_pm_domain"
    depends on the legacy version of this series, but if the legacy version
    will never be accepted, the conflicts are trivial to resolve (drop changes
    to non-existing PM domains),
  - Working resume from s2ram depends on:
      - "[PATCH/RFC] fbdev: sh_mobile_hdmi: Re-init regs before irq re-enable
	on resume",
      - "[PATCH] ARM: hw_breakpoint: Trap undef instruction exceptions on
	wake-up", or an alternative solution.
  - Working "no_console_suspend" handling depends on "[PATCH 06/13] ARM:
    shmobile: armadillo800eva dts: Add chosen/stdout-path".

For your convenience, I've also pushed this (incl. its dependencies) to
git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git#rmobile-genpd

Rafael: If you accept "PM / Domains: Add genpd attach/detach callbacks", it
would be good to get this patch in v3.18-rc1, as it's the only hard dependency
on linux-pm.git for the rest of this series. The other parts have relaxed
ordering constraints due to the separation of code and DTS.

Question: Can we use the preliminary PM domain power-on/off and QoS device
latencie patches (the last 2) as-is, or should we refine them first?

Thanks!

Geert Uytterhoeven (13):
  PM / Domains: Add genpd attach/detach callbacks
  PM / Domains: Add DT bindings for power-on/off latencies
  PM / Domains: Add DT bindings for PM QoS device latencies
  PM / Domains: Add DT bindings for the R-Mobile System Controller
  PM / Domains: Add helper variable np = dev->of_node
  PM / Domains: Retrieve PM QoS device latencies from DT
  ARM: shmobile: R-Mobile: Use generic_pm_domain.attach_dev() for pm_clk
    setup
  ARM: shmobile: R-Mobile: Store SYSC base address in rmobile_pm_domain
  ARM: shmobile: R-Mobile: Add DT support for PM domains
  ARM: shmobile: r8a7740 dtsi: Add PM domain support
  drivers: sh: Disable PM runtime for multi-platform r8a7740 with genpd
  ARM: shmobile: r8a7740 dtsi: Add preliminary PM domain latencies
  ARM: shmobile: r8a7740 dtsi: Add preliminary PM QoS device latencies

 .../devicetree/bindings/power/power_domain.txt     |  16 ++
 .../bindings/power/renesas,sysc-rmobile.txt        | 111 +++++++++
 arch/arm/boot/dts/r8a7740.dtsi                     | 257 +++++++++++++++++++++
 arch/arm/mach-shmobile/Kconfig                     |   3 +-
 arch/arm/mach-shmobile/pm-r8a7740.c                |  14 ++
 arch/arm/mach-shmobile/pm-rmobile.c                | 236 +++++++++++++++++--
 arch/arm/mach-shmobile/pm-rmobile.h                |   3 +-
 arch/arm/mach-shmobile/pm-sh7372.c                 |  11 +
 drivers/base/power/domain.c                        |  32 ++-
 drivers/sh/pm_runtime.c                            |   2 +
 include/linux/pm_domain.h                          |   2 +
 11 files changed, 663 insertions(+), 24 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt

-- 
1.9.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

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

end of thread, other threads:[~2014-10-03 16:01 UTC | newest]

Thread overview: 111+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-25 16:28 [PATCH 00/13] ARM: shmobile: R-Mobile: DT PM domain support Geert Uytterhoeven
2014-09-25 16:28 ` Geert Uytterhoeven
2014-09-25 16:28 ` Geert Uytterhoeven
2014-09-25 16:28 ` [PATCH v3 01/13] PM / Domains: Add genpd attach/detach callbacks Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-26 15:47   ` Kevin Hilman
2014-09-26 15:47     ` Kevin Hilman
2014-09-26 15:47     ` Kevin Hilman
2014-09-25 16:28 ` [PATCH v3 02/13] PM / Domains: Add DT bindings for power-on/off latencies Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-26  8:19   ` Ulf Hansson
2014-09-26  8:19     ` Ulf Hansson
2014-09-26  8:19     ` Ulf Hansson
2014-09-26  8:19     ` Ulf Hansson
2014-09-26 15:28     ` Stephen Boyd
2014-09-26 15:28       ` Stephen Boyd
2014-09-26 15:28       ` Stephen Boyd
2014-09-26 15:28       ` Stephen Boyd
2014-09-26 17:52       ` Geert Uytterhoeven
2014-09-26 17:52         ` Geert Uytterhoeven
2014-09-26 17:52         ` Geert Uytterhoeven
2014-09-26 17:52         ` Geert Uytterhoeven
2014-09-25 16:28 ` [PATCH v3 03/13] PM / Domains: Add DT bindings for PM QoS device latencies Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-26  8:28   ` Ulf Hansson
2014-09-26  8:28     ` Ulf Hansson
2014-09-26  8:28     ` Ulf Hansson
2014-09-26  8:28     ` Ulf Hansson
2014-09-25 16:28 ` [PATCH v3 04/13] PM / Domains: Add DT bindings for the R-Mobile System Controller Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-26  8:32   ` Ulf Hansson
2014-09-26  8:32     ` Ulf Hansson
2014-09-26  8:32     ` Ulf Hansson
2014-09-26  8:32     ` Ulf Hansson
2014-09-25 16:28 ` [PATCH v3 05/13] PM / Domains: Add helper variable np = dev->of_node Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-26  8:43   ` Ulf Hansson
2014-09-26  8:43     ` Ulf Hansson
2014-09-26  8:43     ` Ulf Hansson
2014-09-26  8:43     ` Ulf Hansson
2014-09-26  8:47     ` Geert Uytterhoeven
2014-09-26  8:47       ` Geert Uytterhoeven
2014-09-26  8:47       ` Geert Uytterhoeven
2014-09-26  8:47       ` Geert Uytterhoeven
2014-09-25 16:28 ` [PATCH v3 06/13] PM / Domains: Retrieve PM QoS device latencies from DT Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28 ` [PATCH v3 07/13] ARM: shmobile: R-Mobile: Use generic_pm_domain.attach_dev() for pm_clk setup Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-26  8:45   ` Ulf Hansson
2014-09-26  8:45     ` Ulf Hansson
2014-09-26  8:45     ` Ulf Hansson
2014-09-26  8:45     ` Ulf Hansson
2014-09-26 18:04   ` Geert Uytterhoeven
2014-09-26 18:04     ` Geert Uytterhoeven
2014-09-26 18:04     ` Geert Uytterhoeven
2014-09-26 18:04     ` Geert Uytterhoeven
2014-10-03 16:01     ` Geert Uytterhoeven
2014-10-03 16:01       ` Geert Uytterhoeven
2014-10-03 16:01       ` Geert Uytterhoeven
2014-10-03 16:01       ` Geert Uytterhoeven
2014-09-25 16:28 ` [PATCH v3 08/13] ARM: shmobile: R-Mobile: Store SYSC base address in rmobile_pm_domain Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-26  8:47   ` Ulf Hansson
2014-09-26  8:47     ` Ulf Hansson
2014-09-26  8:47     ` Ulf Hansson
2014-09-26  8:47     ` Ulf Hansson
2014-09-25 16:28 ` [PATCH v3 09/13] ARM: shmobile: R-Mobile: Add DT support for PM domains Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28 ` [PATCH v3 10/13] ARM: shmobile: r8a7740 dtsi: Add PM domain support Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-26  8:13   ` Geert Uytterhoeven
2014-09-26  8:13     ` Geert Uytterhoeven
2014-09-26  8:13     ` Geert Uytterhoeven
2014-09-26  8:13     ` Geert Uytterhoeven
2014-09-25 16:28 ` [PATCH v3 11/13] drivers: sh: Disable PM runtime for multi-platform r8a7740 with genpd Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28 ` [PATCH v3 12/13] ARM: shmobile: r8a7740 dtsi: Add preliminary PM domain latencies Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28 ` [PATCH v3 13/13] ARM: shmobile: r8a7740 dtsi: Add preliminary PM QoS device latencies Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-25 16:28   ` Geert Uytterhoeven
2014-09-26  8:16   ` Geert Uytterhoeven
2014-09-26  8:16     ` Geert Uytterhoeven
2014-09-26  8:16     ` Geert Uytterhoeven
2014-09-26  8:16     ` Geert Uytterhoeven
2014-09-25 19:59 ` [PATCH 00/13] ARM: shmobile: R-Mobile: DT PM domain support Rafael J. Wysocki
2014-09-25 20:19   ` Rafael J. Wysocki
2014-09-25 20:19   ` Rafael J. Wysocki
2014-09-26  9:27   ` Geert Uytterhoeven
2014-09-26  9:27     ` Geert Uytterhoeven
2014-09-26  9:27     ` Geert Uytterhoeven
2014-09-26  9:27     ` Geert Uytterhoeven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.