Skip to content

Commit

Permalink
power_supply: Define Binding for power-supplies
Browse files Browse the repository at this point in the history
This property is meant to be used in device nodes which represent
power_supply devices that wish to provide a list of supplies which
provide them power, such as a battery listing its chargers.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
  • Loading branch information
Rhyland Klein authored and Anton Vorontsov committed Apr 17, 2013
1 parent 5958485 commit da12333
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Documentation/devicetree/bindings/power_supply/power_supply.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Power Supply Core Support

Optional Properties:
- power-supplies : This property is added to a supply in order to list the
devices which supply it power, referenced by their phandles.

Example:

usb-charger: power@e {
compatible = "some,usb-charger";
...
};

ac-charger: power@c {
compatible = "some,ac-charger";
...
};

battery@b {
compatible = "some,battery";
...
power-supplies = <&usb-charger>, <&ac-charger>;
};

0 comments on commit da12333

Please sign in to comment.