From: Artur Rojek Date: Sun, 14 Apr 2019 12:40:38 +0000 (+0200) Subject: dt-bindings: power: supply: Add charge-status-gpios property X-Git-Tag: v5.2-rc1~50^2~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6aae57b788132d2bbb4d58ad0aa2f324eac3a7d4;p=thirdparty%2Flinux.git 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 Reviewed-by: Rob Herring Signed-off-by: Sebastian Reichel --- diff --git a/Documentation/devicetree/bindings/power/supply/gpio-charger.txt b/Documentation/devicetree/bindings/power/supply/gpio-charger.txt index ddf7b7b971e1c..0fb33b2c62a60 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 {