Devicetree
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add support for power budget
@ 2025-01-15 14:41 Kory Maincent
  2025-01-15 14:41 ` [PATCH v2 1/2] regulator: " Kory Maincent
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Kory Maincent @ 2025-01-15 14:41 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Thomas Petazzoni, linux-kernel, devicetree, Oleksij Rempel,
	kernel, Kory Maincent

In preparation for future support of PSE budget evaluation strategy and
power management, we need the power budget value of the power supply.

This addition allows the regulator to track the available power
budget, which will be essential for prioritizing ports when
making power allocation decisions.

The related budget evaluation strategy patch series sent:
https://lore.kernel.org/netdev/20250104161622.7b82dfdf@kmaincent-XPS-13-7390/T/#t

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
---
Changes in v2:
- Add event notifier in case of power request over budget.
- Track how much budget is used instead of free power budget.
- Link to v1: https://lore.kernel.org/r/20250113-feature_regulator_pw_budget-v1-0-01e1d95c2015@bootlin.com

---
Kory Maincent (2):
      regulator: Add support for power budget
      regulator: dt-bindings: Add regulator-power-budget-milliwatt property

 .../devicetree/bindings/regulator/regulator.yaml   |   3 +
 drivers/regulator/core.c                           | 114 +++++++++++++++++++++
 drivers/regulator/of_regulator.c                   |   3 +
 include/linux/regulator/consumer.h                 |  21 ++++
 include/linux/regulator/driver.h                   |   2 +
 include/linux/regulator/machine.h                  |   2 +
 6 files changed, 145 insertions(+)
---
base-commit: 36d9fc502ebc4dd56ea95de1e4f10a4ac5c1691c
change-id: 20250110-feature_regulator_pw_budget-f0e7396afa05

Best regards,
-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-01-20 18:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-15 14:41 [PATCH v2 0/2] Add support for power budget Kory Maincent
2025-01-15 14:41 ` [PATCH v2 1/2] regulator: " Kory Maincent
2025-01-15 14:41 ` [PATCH v2 2/2] regulator: dt-bindings: Add regulator-power-budget-milliwatt property Kory Maincent
2025-01-20 18:20   ` Conor Dooley
2025-01-17 12:09 ` [PATCH v2 0/2] Add support for power budget Kory Maincent
2025-01-17 13:48   ` Mark Brown
2025-01-17 13:57     ` Kory Maincent
2025-01-17 22:52 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox