diff options
author | Heiko Stuebner <heiko.stuebner@bq.com> | 2014-09-23 22:42:14 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2014-11-17 03:07:07 +0100 |
commit | 15962df86e0e89055f9a519f149201ee33d96091 (patch) | |
tree | 457dbe889e249c78feeaf9f6c9b890465dd1e726 /Documentation | |
parent | Linux 3.18-rc5 (diff) | |
download | linux-15962df86e0e89055f9a519f149201ee33d96091.tar.xz linux-15962df86e0e89055f9a519f149201ee33d96091.zip |
dt-bindings: document gpio-charger bindings
This documents the binding for the gpio-charger power-supply.
Signed-off-by: Heiko Stuebner <heiko.stuebner@bq.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/power_supply/gpio-charger.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power_supply/gpio-charger.txt b/Documentation/devicetree/bindings/power_supply/gpio-charger.txt new file mode 100644 index 000000000000..adbb5dc5b6e9 --- /dev/null +++ b/Documentation/devicetree/bindings/power_supply/gpio-charger.txt @@ -0,0 +1,27 @@ +gpio-charger + +Required properties : + - compatible : "gpio-charger" + - gpios : GPIO indicating the charger presence. + See GPIO binding in bindings/gpio/gpio.txt . + - charger-type : power supply type, one of + unknown + battery + ups + mains + usb-sdp (USB standard downstream port) + usb-dcp (USB dedicated charging port) + usb-cdp (USB charging downstream port) + usb-aca (USB accessory charger adapter) + +Example: + + usb_charger: charger { + compatible = "gpio-charger"; + charger-type = "usb-sdp"; + gpios = <&gpf0 2 0 0 0>; + } + + battery { + power-supplies = <&usb_charger>; + }; |