summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/power_supply
diff options
context:
space:
mode:
authorRhyland Klein <rklein@nvidia.com>2013-04-02 01:45:53 +0400
committerAnton Vorontsov <anton@enomsg.org>2013-04-17 05:35:23 +0400
commitda1233364d51947d8c84a33e200fcfb177ee9f20 (patch)
treede560df46b9404384ff214886a2378a8c2ac6305 /Documentation/devicetree/bindings/power_supply
parent59584857be1a4b85574a595156985eba55882a7e (diff)
downloadlinux-da1233364d51947d8c84a33e200fcfb177ee9f20.tar.xz
power_supply: Define Binding for power-supplies
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>
Diffstat (limited to 'Documentation/devicetree/bindings/power_supply')
-rw-r--r--Documentation/devicetree/bindings/power_supply/power_supply.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power_supply/power_supply.txt b/Documentation/devicetree/bindings/power_supply/power_supply.txt
new file mode 100644
index 000000000000..8391bfa0edac
--- /dev/null
+++ b/Documentation/devicetree/bindings/power_supply/power_supply.txt
@@ -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>;
+ };