]> git.karo-electronics.de Git - linux-beck.git/commitdiff
dt-bindings: document gpio-charger bindings
authorHeiko Stuebner <heiko.stuebner@bq.com>
Tue, 23 Sep 2014 20:42:14 +0000 (22:42 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 17 Nov 2014 02:07:07 +0000 (03:07 +0100)
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>
Documentation/devicetree/bindings/power_supply/gpio-charger.txt [new file with mode: 0644]

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