# Bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply_

> Device-tree binding reference for Bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;power&#47;supply&#47;bq25890&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Sebastian Reichel &#60;sre&#64;kernel&#46;org&#62;&#34;</code></span>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

<a id="dt-d33de94ac1d3652cd22a"></a>

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>power&#45;supply&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-power/supply/power-supply.md#dt-root>)</span>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

<a id="dt-fe13e24e5c9612880f47"></a>

**Rule 1**

> **Allowed values (<code>enum</code>):** <a id="dt-617e1a2040e2496013d4"></a> <span id="dt-c31075c43df89b2793e3"><code>&#34;ti&#44;bq25890&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;ti&#44;bq25892&#34;</code></span>, <span id="dt-93451931f534c9a92fb4"><code>&#34;ti&#44;bq25895&#34;</code></span>, <span id="dt-bdca084879537277097b"><code>&#34;ti&#44;bq25896&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;ti&#44;bq25890&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>1</code></span>

<a id="dt-c2de09e7f7fd211b679d"></a>

### <code>interrupts</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-b7823fb65b2f27642d26"><code>1</code></span>

<a id="dt-f88eca3dabf260991c2b"></a>

### <code>ti&#44;battery&#45;regulation&#45;voltage</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4a50e2889c410d820b0d">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-32c2461ee751b99929c3">
<p style="white-space: pre-wrap">maximum charging voltage (in uV)</p>
</div>

<a id="dt-53ec17c3be02c2022f32"></a>

### <code>ti&#44;charge&#45;current</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-fa070530637ee33d6c86">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-964399aaca61cfe44b03">
<p style="white-space: pre-wrap">maximum charging current (in uA)</p>
</div>

<a id="dt-a5546baf30873df083c1"></a>

### <code>ti&#44;termination&#45;current</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-aa2b54b5db7c5eb26c09">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-15668be2e78fff5b60ee">
<p style="white-space: pre-wrap">charge will be terminated when current in constant-voltage phase
drops below this value (in uA)</p>
</div>

<a id="dt-cceb9d299cb5372e9480"></a>

### <code>ti&#44;precharge&#45;current</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-0de43a41000f4ad21e8b">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-b02f0312b82573d703a5">
<p style="white-space: pre-wrap">maximum charge current during precharge phase (in uA)</p>
</div>

<a id="dt-8307b568d2b228a71623"></a>

### <code>ti&#44;minimum&#45;sys&#45;voltage</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-a2ec2bfb28040d96430b">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-f0aa92105c9c6775dee3">
<p style="white-space: pre-wrap">when battery is charging and it is below minimum system voltage,
the system will be regulated above minimum-sys-voltage setting (in uV)</p>
</div>

<a id="dt-a63f7636fc43e5027ba0"></a>

### <code>ti&#44;boost&#45;voltage</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-5a9cab736b7298a504b5">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-25fbaf7783af74fced21">
<p style="white-space: pre-wrap">VBUS voltage level in boost mode (in uV)</p>
</div>

<a id="dt-d13d5d2a126c2b9c3c61"></a>

### <code>ti&#44;boost&#45;max&#45;current</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-2ef996f07276d292f383">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-84777a855b718a564ad5">
<p style="white-space: pre-wrap">maximum allowed current draw in boost mode (in uA)</p>
</div>

<a id="dt-8153532780ca611bd906"></a>

### <code>ti&#44;boost&#45;low&#45;freq</code> — not listed as required here

<div id="dt-2300f9346cc206fc112c">
<p style="white-space: pre-wrap">boost mode frequency will be 500kHz, otherwise 1.5MHz</p>
</div>

**Value type (<code>type</code>):** <span id="dt-27a8b3e797da55847eba"><code>&#34;boolean&#34;</code></span>

<a id="dt-dd520047c62aeaaa823a"></a>

### <code>ti&#44;use&#45;ilim&#45;pin</code> — not listed as required here

<div id="dt-84ea87a7807de6082502">
<p style="white-space: pre-wrap">ILIM resistor will be used and the input current will be the lower
between the resistor setting and the IINLIM register setting</p>
</div>

**Value type (<code>type</code>):** <span id="dt-70fee14d274ab6bf986b"><code>&#34;boolean&#34;</code></span>

<a id="dt-01faf31f8010e1691c01"></a>

### <code>ti&#44;thermal&#45;regulation&#45;threshold</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ceb407df62b36af045e9">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-09d9f18f01513f4c9f93">
<p style="white-space: pre-wrap">temperature above which the charge current is lowered, to avoid overheating
(in degrees Celsius). If omitted, the default setting will be used (120 degrees)</p>
</div>

<a id="dt-41daa005ae26b141d394"></a>

### <code>ti&#44;ibatcomp&#45;micro&#45;ohms</code> — not listed as required here

<div id="dt-f498f162f4f979608863">
<p style="white-space: pre-wrap">value of a resistor in series with the battery (in Micro Ohms)</p>
</div>

<a id="dt-f7cf35df73e428314e05"></a>

### <code>ti&#44;ibatcomp&#45;clamp&#45;microvolt</code> — not listed as required here

<div id="dt-b9163b75f72173695d2b">
<p style="white-space: pre-wrap">max. charging voltage adjustment due to expected voltage drop on in-series resistor</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;ti&#44;battery&#45;regulation&#45;voltage&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;ti&#44;charge&#45;current&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;ti&#44;termination&#45;current&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;ti&#44;precharge&#45;current&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;ti&#44;minimum&#45;sys&#45;voltage&#34;</code></span>, <span id="dt-727c9b818c335e022c0e"><code>&#34;ti&#44;boost&#45;voltage&#34;</code></span>, <span id="dt-1a79af41bdb7f37c802f"><code>&#34;ti&#44;boost&#45;max&#45;current&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/interrupt-controller/irq.h&gt;
i2c {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  charger@6a {
    compatible = "ti,bq25890";
    reg = &lt;0x6a&gt;;

    interrupt-parent = &lt;&amp;gpio1&gt;;
    interrupts = &lt;16 IRQ_TYPE_EDGE_FALLING&gt;;

    ti,battery-regulation-voltage = &lt;4200000&gt;;
    ti,charge-current = &lt;1000000&gt;;
    ti,termination-current = &lt;50000&gt;;
    ti,precharge-current = &lt;128000&gt;;
    ti,minimum-sys-voltage = &lt;3600000&gt;;
    ti,boost-voltage = &lt;5000000&gt;;
    ti,boost-max-current = &lt;1000000&gt;;

    ti,use-ilim-pin;
    ti,thermal-regulation-threshold = &lt;120&gt;;
  };
};
</code></pre>

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: GPL-2.0</span></p>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright (C) 2021 Sebastian Reichel</span></p>

</details>
