Skip to content

PM / OPP: multiple regulators & opp-transition support

Viresh Kumar linux-devicetree linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16PM / OPP: Add 'supply-names' bindingDocumentation/devicetree/bindings/opp/opp.txt+19 -721 replies
2/16PM / OPP: Add 'opp-microvolt-triplets' bindingDocumentation/devicetree/bindings/opp/opp.txt+14 -03 replies
3/16PM / OPP: Improve debug print messages with pr_fmtdrivers/base/power/opp/core.c drivers/base/power/opp/cpu.c+5 -00 replies
4/16PM / OPP: Rename routines specific to old bindings with _v1drivers/base/power/opp/core.c+5 -50 replies
5/16PM / OPP: Parse all power-supply related bindings togetherdrivers/base/power/opp/core.c+6 -50 replies
6/16PM / OPP: Create separate structure for regulator/suppliesdrivers/base/power/opp/core.c drivers/base/power/opp/debugfs.c drivers/base/power/opp/opp.h+63 -320 replies
7/16PM / OPP: Add multiple regulators supportdrivers/base/power/opp/core.c drivers/base/power/opp/debugfs.c drivers/base/power/opp/opp.h+201 -530 replies
8/16PM / OPP: get/put regulators from OPP coredrivers/base/power/opp/core.c drivers/base/power/opp/opp.h+30 -30 replies
9/16PM / OPP: Disable OPPs that aren't supported by the regulatorsdrivers/base/power/opp/core.c+34 -00 replies
10/16PM / OPP: Introduce dev_pm_opp_get_max_volt_latency()drivers/base/power/opp/core.c include/linux/pm_opp.h+65 -00 replies
11/16PM / OPP: Introduce dev_pm_opp_get_max_transition_latency()drivers/base/power/opp/core.c include/linux/pm_opp.h+23 -00 replies
12/16PM / OPP: Parse clock and voltage tolerance for v1 bindingsdrivers/base/power/opp/core.c drivers/base/power/opp/opp.h+31 -30 replies
13/16PM / OPP: Manage device clk as welldrivers/base/power/opp/core.c drivers/base/power/opp/opp.h+12 -00 replies
14/16PM / OPP: Add dev_pm_opp_set_regulator() to specify regulatordrivers/base/power/opp/core.c include/linux/pm_opp.h+79 -10 replies
15/16PM / OPP: Add dev_pm_opp_set_rate()drivers/base/power/opp/core.c include/linux/pm_opp.h+159 -00 replies
16/16PM / OPP: don't print error message for deferred probingdrivers/base/power/opp/cpu.c+3 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/16] PM / OPP: multiple regulators & opp-transition support

Hi Guys,

This is rebased over following series that adds debugfs support to OPP
core: http://marc.info/?i=cover.1441354424.git.viresh.kumar%40linaro.org

This series extends V2 bindings support further to make it usable to most of the platforms.

[1-2] update the bindings a bit to get them working for multiple
regulators case.

[3-4] cleanups.
[5-7] Multiple regulator support
[8-16] OPP transition support, so that the user drivers can directly ask
to switch device to a particular OPP, instead of them dealing with the complexity of handling clocks and voltages.

I have also got cpufreq-dt driver updated to work with the new bindings, but holded-off those changes to keep this series smaller. Those were another Nine patches.

For curious developers/reviewers, all required code (debugfs, this and cpufreq-dt) is pushed to:

https://git.linaro.org/people/viresh.kumar/linux.git opp/multi-regulator-v1

Please help in getting this reviewed :)

Viresh Kumar (16):
PM / OPP: Add 'supply-names' binding
PM / OPP: Add 'opp-microvolt-triplets' binding
PM / OPP: Improve debug print messages with pr_fmt PM / OPP: Rename routines specific to old bindings with _v1 PM / OPP: Parse all power-supply related bindings together PM / OPP: Create separate structure for regulator/supplies PM / OPP: Add multiple regulators support
PM / OPP: get/put regulators from OPP core
PM / OPP: Disable OPPs that aren't supported by the regulators PM / OPP: Introduce dev_pm_opp_get_max_volt_latency() PM / OPP: Introduce dev_pm_opp_get_max_transition_latency() PM / OPP: Parse clock and voltage tolerance for v1 bindings PM / OPP: Manage device clk as well
PM / OPP: Add dev_pm_opp_set_regulator() to specify regulator PM / OPP: Add dev_pm_opp_set_rate()
PM / OPP: don't print error message for deferred probing

 Documentation/devicetree/bindings/opp/opp.txt |  40 +-
 drivers/base/power/opp/core.c                 | 637 +++++++++++++++++++++++---
 drivers/base/power/opp/cpu.c                  |   8 +-
 drivers/base/power/opp/debugfs.c              |  52 ++-
 drivers/base/power/opp/opp.h                  |  44 +-
 include/linux/pm_opp.h                        |  25 +
 6 files changed, 722 insertions(+), 84 deletions(-)
Signature · 1 line
2.4.0