xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/lt3651-charger.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunAnalog Devices LT3651 Charger Power Supply bindings: lt3651-charger
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: Should contain one of the following:
5*4882a593Smuzhiyun * "lltc,ltc3651-charger", (DEPRECATED: Use "lltc,lt3651-charger")
6*4882a593Smuzhiyun * "lltc,lt3651-charger"
7*4882a593Smuzhiyun - lltc,acpr-gpios: Connect to ACPR output. See remark below.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunOptional properties:
10*4882a593Smuzhiyun - lltc,fault-gpios: Connect to FAULT output. See remark below.
11*4882a593Smuzhiyun - lltc,chrg-gpios: Connect to CHRG output. See remark below.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunThe lt3651 outputs are open-drain type and active low. The driver assumes the
14*4882a593SmuzhiyunGPIO reports "active" when the output is asserted, so if the pins have been
15*4882a593Smuzhiyunconnected directly, the GPIO flags should be set to active low also.
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunThe driver will attempt to aquire interrupts for all GPIOs to detect changes in
18*4882a593Smuzhiyunline state. If the system is not capabale of providing interrupts, the driver
19*4882a593Smuzhiyuncannot report changes and userspace will need to periodically read the sysfs
20*4882a593Smuzhiyunattributes to detect changes.
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunExample:
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun	charger: battery-charger {
25*4882a593Smuzhiyun		compatible = "lltc,lt3651-charger";
26*4882a593Smuzhiyun		lltc,acpr-gpios = <&gpio0 68 GPIO_ACTIVE_LOW>;
27*4882a593Smuzhiyun		lltc,fault-gpios = <&gpio0 64 GPIO_ACTIVE_LOW>;
28*4882a593Smuzhiyun		lltc,chrg-gpios = <&gpio0 63 GPIO_ACTIVE_LOW>;
29*4882a593Smuzhiyun	};
30