mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
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>
This commit is contained in:
parent
59584857be
commit
da1233364d
@ -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>;
|
||||
};
|
Loading…
Reference in New Issue
Block a user