diff options
author | Artur Rojek <contact@artur-rojek.eu> | 2019-04-14 14:40:38 +0200 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2019-04-15 22:03:50 +0200 |
commit | 6aae57b788132d2bbb4d58ad0aa2f324eac3a7d4 (patch) | |
tree | a98ecab891eddb24e0bf5dc0554642dd19725a0d /Documentation/devicetree/bindings/power/supply | |
parent | 5ec87ecde235a2e0aa99ceae57b9d0978461ebe4 (diff) |
dt-bindings: power: supply: Add charge-status-gpios property
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>
Diffstat (limited to 'Documentation/devicetree/bindings/power/supply')
-rw-r--r-- | Documentation/devicetree/bindings/power/supply/gpio-charger.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/power/supply/gpio-charger.txt b/Documentation/devicetree/bindings/power/supply/gpio-charger.txt index ddf7b7b971e1..0fb33b2c62a6 100644 --- a/Documentation/devicetree/bindings/power/supply/gpio-charger.txt +++ b/Documentation/devicetree/bindings/power/supply/gpio-charger.txt @@ -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 { |