[PATCH 0/5] OPP: Allow power/current values without voltage
From: Viresh Kumar
Date: Thu Nov 03 2022 - 07:01:23 EST
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(-)
--
2.31.1.272.g89b43f80a514