Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6aae57b7 authored by Artur Rojek's avatar Artur Rojek Committed by Sebastian Reichel
Browse files

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: default avatarArtur Rojek <contact@artur-rojek.eu>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 5ec87ecd
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -14,12 +14,16 @@ Required properties :
     usb-cdp (USB charging downstream port)
     usb-cdp (USB charging downstream port)
     usb-aca (USB accessory charger adapter)
     usb-aca (USB accessory charger adapter)


Optional properties:
 - charge-status-gpios: GPIO indicating whether a battery is charging.

Example:
Example:


	usb_charger: charger {
	usb_charger: charger {
		compatible = "gpio-charger";
		compatible = "gpio-charger";
		charger-type = "usb-sdp";
		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 {
	battery {