power_supply: Define Binding for power-supplies
authorRhyland Klein <rklein@nvidia.com>
Mon, 1 Apr 2013 21:45:53 +0000 (17:45 -0400)
committerAnton Vorontsov <anton@enomsg.org>
Wed, 17 Apr 2013 01:35:23 +0000 (18:35 -0700)
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>
Documentation/devicetree/bindings/power_supply/power_supply.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/power_supply/power_supply.txt b/Documentation/devicetree/bindings/power_supply/power_supply.txt
new file mode 100644 (file)
index 0000000..8391bfa
--- /dev/null
@@ -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>;
+       };