Skip to content

OPP: Allow power/current values without voltage

Viresh Kumar linux-devicetree linux-pm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 of 5 patches 0 repliesNew

4 of 5 patches are in this archive. The cover letter announces 5.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: opp: Fix usage of current in microwatt propertyDocumentation/devicetree/bindings/opp/opp-v2-base.yaml+1 -10 replies
2/5dt-bindings: opp: Fix named microwatt propertyDocumentation/devicetree/bindings/opp/opp-v2-base.yaml+2 -20 replies
3/5OPP: Parse named opp-microwatt property toodrivers/opp/of.c+13 -30 replies
4/5OPP: Simplify opp_parse_supplies() by restructuring itdrivers/opp/of.c+81 -1350 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchJames Calligeros
SeriesT-b
1/5
2/5
3/5
4/5

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

Read the v1 thread

Cover letter [PATCH 0/5] OPP: Allow power/current values without voltage

Hello,

Some platforms, such as Apple Silicon, do not describe their device's voltage regulators in the DT as they cannot be controlled by the kernel and/or rely on opaque firmware algorithms to control their voltage and current characteristics at runtime. They can, however, experimentally determine the power consumption of a given device at a given OPP, taking advantage of opp-microwatt to provide EAS on such devices as was initially intended.

But the OPP core currently doesn't parse the opp-microwatt property if opp-microvolt isn't present. This patch series targets to change this approach.

This first fixes few mistakes in the DT bindings, followed by code reorganization. And the last commit, from James, fixes the problem at hand.

I have tested all combinations on my Hikey board, hope it doesn't break anything.

James Calligeros (1):
OPP: decouple dt properties in opp_parse_supplies()

Viresh Kumar (4):
dt-bindings: opp: Fix usage of current in microwatt property
dt-bindings: opp: Fix named microwatt property
OPP: Parse named opp-microwatt property too
OPP: Simplify opp_parse_supplies() by restructuring it

 .../devicetree/bindings/opp/opp-v2-base.yaml  |   6 +-
 drivers/opp/of.c                              | 228 ++++++++----------
 2 files changed, 102 insertions(+), 132 deletions(-)
Signature · 1 line
2.31.1.272.g89b43f80a514