]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/power/supply/ltc3651-charger.txt
Merge tag 'renesas-fixes4-for-v4.13' of https://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / Documentation / devicetree / bindings / power / supply / ltc3651-charger.txt
1 ltc3651-charger
2
3 Required properties:
4  - compatible: "lltc,ltc3651-charger"
5  - lltc,acpr-gpios: Connect to ACPR output. See remark below.
6
7 Optional properties:
8  - lltc,fault-gpios: Connect to FAULT output. See remark below.
9  - lltc,chrg-gpios: Connect to CHRG output. See remark below.
10
11 The ltc3651 outputs are open-drain type and active low. The driver assumes the
12 GPIO reports "active" when the output is asserted, so if the pins have been
13 connected directly, the GPIO flags should be set to active low also.
14
15 The driver will attempt to aquire interrupts for all GPIOs to detect changes in
16 line state. If the system is not capabale of providing interrupts, the driver
17 cannot report changes and userspace will need to periodically read the sysfs
18 attributes to detect changes.
19
20 Example:
21
22         charger: battery-charger {
23                 compatible = "lltc,ltc3651-charger";
24                 lltc,acpr-gpios = <&gpio0 68 GPIO_ACTIVE_LOW>;
25                 lltc,fault-gpios = <&gpio0 64 GPIO_ACTIVE_LOW>;
26                 lltc,chrg-gpios = <&gpio0 63 GPIO_ACTIVE_LOW>;
27         };