Skip to content

OPP: Introduce OPP bindings V2 and supporting code

Viresh Kumar linux-arm-kernel linux-devicetree linux-pm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7OPP: Redefine bindings to overcome shortcomingsDocumentation/devicetree/bindings/power/opp.txt+403 -41 reply
1/7OPP: Redefine bindings to overcome shortcomings+0 -01 reply
1/7OPP: Redefine bindings to overcome shortcomings+0 -00 replies
2/7opp: Relocate few routinesdrivers/base/power/opp.c+96 -960 replies
3/7OPP: Break _opp_add_dynamic() into smaller functionsdrivers/base/power/opp.c+75 -520 replies
4/7opp: Parse new (v2) bindingsdrivers/base/power/opp.c include/linux/pm_opp.h+323 -250 replies
5/7opp: convert device_opp->dev to a list of devicesdrivers/base/power/opp.c+157 -320 replies
6/7opp: Add helpers for initializing CPU oppsdrivers/base/power/opp.c include/linux/pm_opp.h+130 -00 replies
7/7cpufreq-dt: Use DT to set policy->cpus/related_cpusdrivers/cpufreq/cpufreq-dt.c+9 -70 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] OPP: Introduce OPP bindings V2 and supporting code

Now that I have received an verbal Ack from Rob Herring (in a personal conversation) about the bindings, I am showing how the code looks like with these new bindings.

Some part is still now done:
- Interface for adding new detailed OPPs from platform code instead of DT
- Providing cpufreq helpers for the next OPPs
- Providing regulator helpers for the target/min/max ranges

Please provide feedback on how this looks like..

--
viresh

Viresh Kumar (7):
OPP: Redefine bindings to overcome shortcomings
opp: Relocate few routines
OPP: Break _opp_add_dynamic() into smaller functions
opp: Parse new (v2) bindings
opp: convert device_opp->dev to a list of devices
opp: Add helpers for initializing CPU opps
cpufreq-dt: Use DT to set policy->cpus/related_cpus

 Documentation/devicetree/bindings/power/opp.txt |  407 ++++++++-
 drivers/base/power/opp.c                        | 1041 +++++++++++++++++------
 drivers/cpufreq/cpufreq-dt.c                    |   16 +-
 include/linux/pm_opp.h                          |   23 +
 4 files changed, 1232 insertions(+), 255 deletions(-)
Signature · 1 line
2.3.0.rc0.44.ga94655d