xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/bq25890.txt (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1Binding for TI bq25890 Li-Ion Charger
2
3This driver will support the bq25892, the bq25896 and the bq25890. There are
4other ICs in the same family but those have not been tested.
5
6Required 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- interrupts: interrupt line;
14- ti,battery-regulation-voltage: integer, maximum charging voltage (in uV);
15- ti,charge-current: integer, maximum charging current (in uA);
16- ti,termination-current: integer, charge will be terminated when current in
17    constant-voltage phase drops below this value (in uA);
18- ti,precharge-current: integer, maximum charge current during precharge
19    phase (in uA);
20- ti,minimum-sys-voltage: integer, when battery is charging and it is below
21    minimum system voltage, the system will be regulated above
22    minimum-sys-voltage setting (in uV);
23- ti,boost-voltage: integer, VBUS voltage level in boost mode (in uV);
24- ti,boost-max-current: integer, maximum allowed current draw in boost mode
25    (in uA).
26
27Optional properties:
28- ti,boost-low-freq: boolean, if present boost mode frequency will be 500kHz,
29    otherwise 1.5MHz;
30- ti,use-ilim-pin: boolean, if present the ILIM resistor will be used and the
31    input current will be the lower between the resistor setting and the IINLIM
32    register setting;
33- ti,thermal-regulation-threshold: integer, temperature above which the charge
34    current is lowered, to avoid overheating (in degrees Celsius). If omitted,
35    the default setting will be used (120 degrees);
36- ti,ibatcomp-micro-ohms: integer, value of a resistor in series with
37    the battery;
38- ti,ibatcomp-clamp-microvolt: integer, maximum charging voltage adjustment due
39    to expected voltage drop on in-series resistor;
40
41Example:
42
43bq25890 {
44	compatible = "ti,bq25890";
45	reg = <0x6a>;
46
47	interrupt-parent = <&gpio1>;
48	interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
49
50	ti,battery-regulation-voltage = <4200000>;
51	ti,charge-current = <1000000>;
52	ti,termination-current = <50000>;
53	ti,precharge-current = <128000>;
54	ti,minimum-sys-voltage = <3600000>;
55	ti,boost-voltage = <5000000>;
56	ti,boost-max-current = <1000000>;
57
58	ti,use-ilim-pin;
59	ti,thermal-regulation-threshold = <120>;
60};
61