Skip to content

RFC Add DT Binding for Power-Supply power-supply property

Rhyland Klein linux-devicetree linux-tegra lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest3 patches 12 repliesIn review
  2. v1 RFC3 patches 3 repliesSuperseded

Changes from the cover letter

- v2: Inverted the logic so that supplies (batteries) contain a list of the supplies (chargers) which supply them.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3power_supply: Define Binding for supplied-nodesDocumentation/devicetree/bindings/power_supply/power_supply.txt+23 -02 replies
2/3power: power_supply: Add core support for supplied_nodesdrivers/power/power_supply_core.c include/linux/power_supply.h+43 -1210 replies
3/3power: power_supply: add support for getting supplied-nodes from dtdrivers/power/power_supply_core.c+35 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [RFC v2 0/3] Add DT Binding for Power-Supply power-supply property

This series is an attempt to define a common way for devicetree initialized power_supplies to define their list of supplicants in a common manner.

Instead of relying on custom properties which contain is list of strings, use the much more direct method of phandles to reference the supplies and define a common function which can retrieve them automatically.

Changes:
- v2: Inverted the logic so that supplies (batteries) contain a list of the supplies (chargers) which supply them.

Rhyland Klein (3):
power_supply: Define Binding for supplied-nodes
power: power_supply: Add core support for supplied_nodes
power: power_supply: add support for getting supplied-nodes from dt

 .../bindings/power_supply/power_supply.txt         |   23 ++++++
 drivers/power/power_supply_core.c                  |   81 +++++++++++++++++---
 include/linux/power_supply.h                       |    9 +++
 3 files changed, 101 insertions(+), 12 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/power_supply/power_supply.txt
Signature · 1 line
1.7.9.5