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