Merge tag 'for-v5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power...
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / power / supply / bq25890.txt
1 Binding for TI bq25890 Li-Ion Charger
2
3 This driver will support the bq25892, the bq25896 and the bq25890. There are
4 other ICs in the same family but those have not been tested.
5
6 Required properties:
7 - compatible: Should contain one of the following:
8     * "ti,bq25890"
9     * "ti,bq25892"
10     * "ti,bq25895"
11     * "ti,bq25896"
12 - reg: integer, i2c address of the device.
13 - ti,battery-regulation-voltage: integer, maximum charging voltage (in uV);
14 - ti,charge-current: integer, maximum charging current (in uA);
15 - ti,termination-current: integer, charge will be terminated when current in
16     constant-voltage phase drops below this value (in uA);
17 - ti,precharge-current: integer, maximum charge current during precharge
18     phase (in uA);
19 - ti,minimum-sys-voltage: integer, when battery is charging and it is below
20     minimum system voltage, the system will be regulated above
21     minimum-sys-voltage setting (in uV);
22 - ti,boost-voltage: integer, VBUS voltage level in boost mode (in uV);
23 - ti,boost-max-current: integer, maximum allowed current draw in boost mode
24     (in uA).
25
26 Optional properties:
27 - ti,boost-low-freq: boolean, if present boost mode frequency will be 500kHz,
28     otherwise 1.5MHz;
29 - ti,use-ilim-pin: boolean, if present the ILIM resistor will be used and the
30     input current will be the lower between the resistor setting and the IINLIM
31     register setting;
32 - ti,thermal-regulation-threshold: integer, temperature above which the charge
33     current is lowered, to avoid overheating (in degrees Celsius). If omitted,
34     the default setting will be used (120 degrees);
35
36 Example:
37
38 bq25890 {
39         compatible = "ti,bq25890";
40         reg = <0x6a>;
41
42         ti,battery-regulation-voltage = <4200000>;
43         ti,charge-current = <1000000>;
44         ti,termination-current = <50000>;
45         ti,precharge-current = <128000>;
46         ti,minimum-sys-voltage = <3600000>;
47         ti,boost-voltage = <5000000>;
48         ti,boost-max-current = <1000000>;
49
50         ti,use-ilim-pin;
51         ti,thermal-regulation-threshold = <120>;
52 };