]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dt-bindings: power: supply: Add charge-status-gpios property
authorArtur Rojek <contact@artur-rojek.eu>
Sun, 14 Apr 2019 12:40:38 +0000 (14:40 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 15 Apr 2019 20:03:50 +0000 (22:03 +0200)
Add documentation for the "charge-status-gpios" property.
Update the "gpios" property with a valid example.

Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Documentation/devicetree/bindings/power/supply/gpio-charger.txt

index ddf7b7b971e1c593f1b6284e590b96c123f95e75..0fb33b2c62a6028defc2517fd22fb9bd5506e53b 100644 (file)
@@ -14,12 +14,16 @@ Required properties :
      usb-cdp (USB charging downstream port)
      usb-aca (USB accessory charger adapter)
 
+Optional properties:
+ - charge-status-gpios: GPIO indicating whether a battery is charging.
+
 Example:
 
        usb_charger: charger {
                compatible = "gpio-charger";
                charger-type = "usb-sdp";
-               gpios = <&gpf0 2 0 0 0>;
+               gpios = <&gpd 28 GPIO_ACTIVE_LOW>;
+               charge-status-gpios = <&gpc 27 GPIO_ACTIVE_LOW>;
        };
 
        battery {