summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/power/supply/gpio-charger.txt
diff options
context:
space:
mode:
Diffstat (limited to 'dts/Bindings/power/supply/gpio-charger.txt')
-rw-r--r--dts/Bindings/power/supply/gpio-charger.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/dts/Bindings/power/supply/gpio-charger.txt b/dts/Bindings/power/supply/gpio-charger.txt
index adbb5dc..0fb33b2 100644
--- a/dts/Bindings/power/supply/gpio-charger.txt
+++ b/dts/Bindings/power/supply/gpio-charger.txt
@@ -14,13 +14,17 @@ 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 {
power-supplies = <&usb_charger>;