1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/power/supply/gpio-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: simple battery chargers only communicating through GPIOs
10 - Sebastian Reichel <sre@kernel.org>
13 This binding is for all chargers, which are working more or less
14 autonomously, only providing some status GPIOs and possibly some
15 GPIOs for limited control over the charging process.
27 - usb-sdp # USB standard downstream port
28 - usb-dcp # USB dedicated charging port
29 - usb-cdp # USB charging downstream port
30 - usb-aca # USB accessory charger adapter
32 Type of the charger, e.g. "mains" for a wall charger.
36 description: GPIO indicating the charger presence
40 description: GPIO indicating the charging status
51 additionalProperties: false
55 #include <dt-bindings/gpio/gpio.h>
58 compatible = "gpio-charger";
59 charger-type = "usb-sdp";
61 gpios = <&gpd 28 GPIO_ACTIVE_LOW>;
62 charge-status-gpios = <&gpc 27 GPIO_ACTIVE_LOW>;