1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (C) 2021 Sebastian Reichel
5 $id: http://devicetree.org/schemas/power/supply/bq25890.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
34 ti,battery-regulation-voltage:
35 $ref: /schemas/types.yaml#/definitions/uint32
36 description: maximum charging voltage (in uV)
39 $ref: /schemas/types.yaml#/definitions/uint32
40 description: maximum charging current (in uA)
42 ti,termination-current:
43 $ref: /schemas/types.yaml#/definitions/uint32
45 charge will be terminated when current in constant-voltage phase
46 drops below this value (in uA)
49 $ref: /schemas/types.yaml#/definitions/uint32
50 description: maximum charge current during precharge phase (in uA)
52 ti,minimum-sys-voltage:
53 $ref: /schemas/types.yaml#/definitions/uint32
55 when battery is charging and it is below minimum system voltage,
56 the system will be regulated above minimum-sys-voltage setting (in uV)
59 $ref: /schemas/types.yaml#/definitions/uint32
60 description: VBUS voltage level in boost mode (in uV)
63 $ref: /schemas/types.yaml#/definitions/uint32
64 description: maximum allowed current draw in boost mode (in uA)
67 description: boost mode frequency will be 500kHz, otherwise 1.5MHz
72 ILIM resistor will be used and the input current will be the lower
73 between the resistor setting and the IINLIM register setting
76 ti,thermal-regulation-threshold:
77 $ref: /schemas/types.yaml#/definitions/uint32
79 temperature above which the charge current is lowered, to avoid overheating
80 (in degrees Celsius). If omitted, the default setting will be used (120 degrees)
82 ti,ibatcomp-micro-ohms:
83 description: value of a resistor in series with the battery (in Micro Ohms)
85 ti,ibatcomp-clamp-microvolt:
86 description: max. charging voltage adjustment due to expected voltage drop on in-series resistor
92 - ti,battery-regulation-voltage
94 - ti,termination-current
95 - ti,precharge-current
96 - ti,minimum-sys-voltage
98 - ti,boost-max-current
100 unevaluatedProperties: false
104 #include <dt-bindings/interrupt-controller/irq.h>
106 #address-cells = <1>;
110 compatible = "ti,bq25890";
113 interrupt-parent = <&gpio1>;
114 interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
116 ti,battery-regulation-voltage = <4200000>;
117 ti,charge-current = <1000000>;
118 ti,termination-current = <50000>;
119 ti,precharge-current = <128000>;
120 ti,minimum-sys-voltage = <3600000>;
121 ti,boost-voltage = <5000000>;
122 ti,boost-max-current = <1000000>;
125 ti,thermal-regulation-threshold = <120>;