[PATCH v2 0/2] Introduce 'advanced' Energy Model in DT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

This patch set solves a few issues:
1. It allows to register EM from DT, when the voltage information is not
   available. (Some background of the issues present on Chromebook devices
   can be checked at [1].)
2. It allows to register 'advanced' EM from the DT, which is more accurate
   and reflects total power (dynamic + static).

Implementation details:
It adds a new callback in OPP framework to parse the OPP node entry and
read the "opp-microwatt". It's going to only work with OPP-v2, but it's
agreed to be OK.

Comments, suggestions are very welcome.

changelog:
v2:
- implemented Viresh idea to add "opp-microwatt" into the OPP node entry in DT
v1 [2]

Regards,
Lukasz Luba

[1] https://lore.kernel.org/linux-pm/20220207073036.14901-2-lukasz.luba@xxxxxxx/
[2] https://lore.kernel.org/linux-pm/20220221225131.15836-1-lukasz.luba@xxxxxxx/

Lukasz Luba (2):
  dt-bindings: opp: Add 'opp-microwatt' entry in the OPP
  OPP: Add 'opp-microwatt' parsing for advanced EM registration

 .../devicetree/bindings/opp/opp-v2-base.yaml  |  7 ++
 drivers/opp/of.c                              | 70 +++++++++++++++++++
 2 files changed, 77 insertions(+)

-- 
2.17.1




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux