diff options
author | Heiko Stuebner <heiko.stuebner@bq.com> | 2014-09-24 00:42:14 +0400 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2014-11-17 05:07:07 +0300 |
commit | 15962df86e0e89055f9a519f149201ee33d96091 (patch) | |
tree | 457dbe889e249c78feeaf9f6c9b890465dd1e726 /Documentation/devicetree/bindings/power_supply | |
parent | fc14f9c1272f62c3e8d01300f52467c0d9af50f9 (diff) | |
download | linux-15962df86e0e89055f9a519f149201ee33d96091.tar.xz |
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/devicetree/bindings/power_supply')
-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>; + }; |