Skip to content

Add generic PM domain support for Tegra

Jon Hunter linux-arm-kernel linux-devicetree linux-pm linux-tegra 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest14 patches 0 repliesNew
  2. v416 patches 44 repliesApplied
  3. v319 patches 0 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14soc: tegra: pmc: Restore base address on probe failuredrivers/soc/tegra/pmc.c+10 -50 replies
2/14soc: tegra: pmc: Protect public functions from potential race conditionsdrivers/soc/tegra/pmc.c+35 -91 reply
2/14soc: tegra: pmc: Protect public functions from potential race conditions+0 -00 replies
3/14soc: tegra: pmc: Change powergate and rail IDs to be an unsigned typedrivers/gpu/drm/tegra/drm.h drivers/soc/tegra/pmc.c include/soc/tegra/pmc.h+37 -360 replies
4/14soc: tegra: pmc: Fix testing of powergate statedrivers/soc/tegra/pmc.c+9 -80 replies
5/14soc: tegra: pmc: Wait for powergate state to changearch/arm/mach-tegra/platsmp.c drivers/soc/tegra/pmc.c+11 -141 reply
5/14soc: tegra: pmc: Wait for powergate state to change+0 -00 replies
5/14soc: tegra: pmc: Wait for powergate state to change+0 -01 reply
6/14soc: tegra: pmc: Fix checking of valid partitionsdrivers/soc/tegra/pmc.c include/soc/tegra/pmc.h+18 -41 reply
6/14soc: tegra: pmc: Fix checking of valid partitions+0 -00 replies
7/14soc: tegra: pmc: Ensure partitions can be toggled on/off by PMCdrivers/soc/tegra/pmc.c+11 -00 replies
8/14PM / Domains: Add function to remove a pm-domaindrivers/base/power/domain.c include/linux/pm_domain.h+31 -01 reply
8/14PM / Domains: Add function to remove a pm-domain+0 -00 replies
9/14Documentation: DT: bindings: Update NVIDIA PMC for TegraDocumentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.txt+7 -51 reply
10/14Documentation: DT: bindings: Add power domain info for NVIDIA PMCDocumentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.txt+55 -01 reply
10/14Documentation: DT: bindings: Add power domain info for NVIDIA PMC+0 -01 reply
10/14Documentation: DT: bindings: Add power domain info for NVIDIA PMC+0 -01 reply
11/14soc: tegra: pmc: Add generic PM domain supportdrivers/soc/tegra/pmc.c include/dt-bindings/power/tegra-powergate.h include/soc/tegra/pmc.h+480 -652 replies
11/14soc: tegra: pmc: Add generic PM domain support+0 -01 reply
11/14soc: tegra: pmc: Add generic PM domain support+0 -01 reply
11/14soc: tegra: pmc: Add generic PM domain support+0 -01 reply
11/14soc: tegra: pmc: Add generic PM domain support+0 -01 reply
11/14soc: tegra: pmc: Add generic PM domain support+0 -00 replies
11/14soc: tegra: pmc: Add generic PM domain support+0 -01 reply
11/14soc: tegra: pmc: Add generic PM domain support+0 -01 reply
11/14soc: tegra: pmc: Add generic PM domain support+0 -01 reply
12/14clk: tegra210: Add the APB2APE audio clockdrivers/clk/tegra/clk-id.h drivers/clk/tegra/clk-tegra-periph.c drivers/clk/tegra/clk-tegra210.c +1 more+4 -11 reply
13/14ARM64: tegra: Add audio PM domain device node for Tegra210arch/arm64/boot/dts/nvidia/tegra210.dtsi+10 -10 replies
14/14ARM64: tegra: select PM_GENERIC_DOMAINSarch/arm64/Kconfig.platforms+2 -00 replies

Reviews trailers per patch

4 of 29 patches have a Reviewed-by or Acked-by.

PatchRob Herring
1/14
2/14
2/14
3/14
4/14
5/14
5/14
5/14
6/14
6/14
7/14
8/14
8/14
9/14A-b
10/14A-b
10/14A-b
10/14A-b
11/14
11/14
11/14
11/14
11/14
11/14
11/14
11/14
11/14
12/14
13/14
14/14

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH V5 00/14] Add generic PM domain support for Tegra

Adds generic PM domain support for Tegra SoCs but this series only enables support for it on Tegra 64-bit devices. There is no reason why this cannot be enable for Tegra 32-bit devices, but to keep the patch series to a minimum only 64-bit devices are enabled so far.

This series has been boot tested on Tegra210 as well as various 32-bit Tegra platforms.

Summary of changes since V4 [1]:
- Re-worked fix to handle base address on probe failure
- Added patch to lock around simultaneuous accesses to PMC registers
- Added patch to change powergate and rail IDs to unsigned type
- Added patch to fix testing of powergate state
- Updated patch to check for valid powergates to use a bitmap
- Updated Tegra DT PMC bindings per Rob H's feedback
- Updated Tegra power domains binding per Thierry's feedback
- Updated Tegra generic power domain support per Thierry's feedback

Summary of changes since V3 [0]:
- Dropped tegra124 support for now
- Removed MC flush support per feedback from Thierry
- Cleaned up the PMC changes per feedback from Thierry
- Added support for tegra210

Series Summary:

Patch 1-7:  PMC clean-up and fixes
Patch 8:    Adds function to remove a generic PM domain
Patch 9:    Updates DT documentation for tegra PMC
Patch 10:   Adds DT documentation for tegra generic PM domains
Patch 11:   Adds PMC generic DM domains support
Patch 12:   Adds audio clock for Tegra210 audio power-domain
Patch 13:   Adds DT bindings for Tegra210 audio power-domain
Patch 14:   Enable generic PM domains for tegra64

[0] http://comments.gmane.org/gmane.linux.ports.tegra/22944
[1] http://marc.info/?l=linux-tegra&m=144924153600529&w=2

Jon Hunter (14):
soc: tegra: pmc: Restore base address on probe failure
soc: tegra: pmc: Protect public functions from potential race
conditions
soc: tegra: pmc: Change powergate and rail IDs to be an unsigned type
soc: tegra: pmc: Fix testing of powergate state
soc: tegra: pmc: Wait for powergate state to change
soc: tegra: pmc: Fix checking of valid partitions
soc: tegra: pmc: Ensure partitions can be toggled on/off by PMC PM / Domains: Add function to remove a pm-domain
Documentation: DT: bindings: Update NVIDIA PMC for Tegra
Documentation: DT: bindings: Add power domain info for NVIDIA PMC
soc: tegra: pmc: Add generic PM domain support
clk: tegra210: Add the APB2APE audio clock
ARM64: tegra: Add audio PM domain device node for Tegra210
ARM64: tegra: select PM_GENERIC_DOMAINS

 .../bindings/arm/tegra/nvidia,tegra20-pmc.txt      |  67 ++-
 arch/arm/mach-tegra/platsmp.c                      |  16 +-
 arch/arm64/Kconfig.platforms                       |   2 +
 arch/arm64/boot/dts/nvidia/tegra210.dtsi           |  11 +-
 drivers/base/power/domain.c                        |  26 +
 drivers/clk/tegra/clk-id.h                         |   1 +
 drivers/clk/tegra/clk-tegra-periph.c               |   1 +
 drivers/clk/tegra/clk-tegra210.c                   |   1 +
 drivers/gpu/drm/tegra/drm.h                        |   2 +-
 drivers/soc/tegra/pmc.c                            | 603 ++++++++++++++++++---
 include/dt-bindings/clock/tegra210-car.h           |   2 +-
 include/dt-bindings/power/tegra-powergate.h        |  36 ++
 include/linux/pm_domain.h                          |   5 +
 include/soc/tegra/pmc.h                            |  73 +--
 14 files changed, 709 insertions(+), 137 deletions(-)
 create mode 100644 include/dt-bindings/power/tegra-powergate.h
Signature · 1 line
2.1.4