mbox series

[00/17] Update am437x to boot with simple-pm-bus and genpd

Message ID 20201116111939.21405-1-tony@atomide.com
Headers show
Series Update am437x to boot with simple-pm-bus and genpd | expand

Message

Tony Lindgren Nov. 16, 2020, 11:19 a.m. UTC
Hi all,

Similar to the earlier am335x changes, here are the changes done to boot
am437x using simple-pm-bus and genpd.

These patches are based on v5.10-rc1 and the following patches:

PATCH 2/4] ARM: OMAP2+: Fix missing select PM_GENERIC_DOMAINS_OF
[PATCHv2 0/9] Genpd related code changes to drop am335x pdata
[PATCH 00/18] Drop remaining pdata for am335x and use genpd

To make testing things easier, I've pushed out these changes also to a
temporary test branch at [0][1] below.

Regards,

Tony

[0] git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git omap-for-v5.11/tmp-testing-genpd
[1] https://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v5.11/tmp-testing-genpd


Tero Kristo (2):
  soc: ti: omap-prm: am4: add genpd support for remaining PRM instances
  ARM: dts: am43xx: add remaining PRM instances

Tony Lindgren (15):
  clk: ti: am437x: Keep am4 l3 main clock always on for genpd
  ARM: dts: Configure also interconnect clocks for am4 system timer
  ARM: OMAP2+: Drop legacy platform data for am4 control module
  ARM: dts: Configure RTC powerdomain for am4
  ARM: dts: Configure interconnect target module for am4 wkup_m3
  ARM: OMAP2+: Drop legacy platform data for am4 wkup_m3
  ARM: OMAP2+: Drop legacy platform data for am4 emif
  ARM: OMAP2+: Drop legacy platform data for am4 ocmcram
  ARM: OMAP2+: Drop legacy platform data for am4 mpuss
  ARM: dts: Use simple-pm-bus for genpd for am4 l4_wkup
  ARM: dts: Use simple-pm-bus for genpd for am4 l4_fast
  ARM: dts: Use simple-pm-bus for genpd for am4 l4_per
  ARM: dts: Move am4 l3 noc to a separate node
  ARM: dts: Use simple-pm-bus for genpd for am4 l3
  ARM: OMAP2+: Drop legacy remaining legacy platform data for am4

 arch/arm/boot/dts/am4372.dtsi                 | 124 ++++++---
 arch/arm/boot/dts/am437x-l4.dtsi              |  79 ++++--
 arch/arm/mach-omap2/Kconfig                   |   1 -
 arch/arm/mach-omap2/Makefile                  |   5 +-
 arch/arm/mach-omap2/io.c                      |   1 -
 .../omap_hwmod_33xx_43xx_common_data.h        |  55 ----
 .../omap_hwmod_33xx_43xx_interconnect_data.c  |  82 ------
 .../omap_hwmod_33xx_43xx_ipblock_data.c       | 254 ------------------
 arch/arm/mach-omap2/omap_hwmod_43xx_data.c    | 166 ------------
 drivers/clk/ti/clk-43xx.c                     |   8 +
 drivers/soc/ti/omap_prm.c                     |  36 ++-
 11 files changed, 184 insertions(+), 627 deletions(-)
 delete mode 100644 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_common_data.h
 delete mode 100644 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c
 delete mode 100644 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
 delete mode 100644 arch/arm/mach-omap2/omap_hwmod_43xx_data.c

Comments

Stephen Boyd Dec. 9, 2020, 2:19 a.m. UTC | #1
Quoting Tony Lindgren (2020-11-16 03:19:23)
> In order for suspend and resume to work with genpd on am4, we must keep

> l3 main clock always on. Otherwise prm_omap driver will shut down the l3

> main clock on suspend when simple-pm-bus and GENPD_FLAG_PM_CLK are used.

> Note that we already keep the l3 main clock always on with the legacy

> platform code.

> 

> Later on we may want to start managing the l3 main clock with a dedicated

> interconnect driver instead of using simple-pm-bus and GENPD_FLAG_PM_CLK.

> 

> Cc: linux-clk@vger.kernel.org

> Cc: Michael Turquette <mturquette@baylibre.com>

> Cc: Stephen Boyd <sboyd@kernel.org>

> Cc: Tero Kristo <t-kristo@ti.com>

> Signed-off-by: Tony Lindgren <tony@atomide.com>

> ---


Acked-by: Stephen Boyd <sboyd@kernel.org>