# Bq24250, bq24251 and bq24257 Li-Ion Charger

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

> Device-tree binding reference for Bq24250, bq24251 and bq24257 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;bq24257&#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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;ti&#44;bq24250&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;bq24251&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;ti&#44;bq24257&#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-58dfe3b6e7a4b21670bf"></a>

### <code>pg&#45;gpios</code> — not listed as required here

<div id="dt-8f8f976ca5d47f61bb3d">
<p style="white-space: pre-wrap">GPIO used for connecting the bq2425x device PG (Power Good) pin.
This pin is not available on all devices however it should be used if
possible as this is the recommended way to obtain the charger's input PG
state. If this pin is not specified a software-based approach for PG
detection is used.</p>
</div>

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

<a id="dt-31255d359b503dd5eb44"></a>

### <code>ti&#44;current&#45;limit</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-2b0ac5b57c8f5e7256c1">[<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-1369dceb855c1dd54f21">
<p style="white-space: pre-wrap">The maximum current to be drawn from the charger's input (in uA).
If this property is not specified, the input limit current is set
automatically using USB D+/D- signal based charger type detection.
If the hardware does not support the D+/D- based detection, a default
of 500,000 is used (=500mA) instead.</p>
</div>

<a id="dt-3c24761bcd7f414c13fb"></a>

### <code>ti&#44;ovp&#45;voltage</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-00277aef10e5509721cf">[<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-b7fe4a0d3fed019f5472">
<p style="white-space: pre-wrap">Configures the over voltage protection voltage (in uV).
If not specified a default of 6,5000,000 (=6.5V) is used.</p>
</div>

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

### <code>ti&#44;in&#45;dpm&#45;voltage</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-83ffb0f5746bc9b9dd67">[<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-8bcfabbc173f046621ab">
<p style="white-space: pre-wrap">Configures the threshold input voltage for the dynamic power path management (in uV).
If not specified a default of 4,360,000 (=4.36V) is used.</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>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</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/gpio/gpio.h&gt;
#include &lt;dt-bindings/interrupt-controller/irq.h&gt;
i2c {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  charger@6a {
    compatible = "ti,bq24257";
    reg = &lt;0x6a&gt;;
    interrupt-parent = &lt;&amp;gpio1&gt;;
    interrupts = &lt;16 IRQ_TYPE_EDGE_BOTH&gt;;

    pg-gpios = &lt;&amp;gpio1 28 GPIO_ACTIVE_HIGH&gt;;

    ti,battery-regulation-voltage = &lt;4200000&gt;;
    ti,charge-current = &lt;1000000&gt;;
    ti,termination-current = &lt;50000&gt;;
  };
};
</code></pre>

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

  charger@6a {
    compatible = "ti,bq24250";
    reg = &lt;0x6a&gt;;
    interrupt-parent = &lt;&amp;gpio1&gt;;
    interrupts = &lt;16 IRQ_TYPE_EDGE_BOTH&gt;;

    ti,battery-regulation-voltage = &lt;4200000&gt;;
    ti,charge-current = &lt;500000&gt;;
    ti,termination-current = &lt;50000&gt;;
    ti,current-limit = &lt;900000&gt;;
    ti,ovp-voltage = &lt;9500000&gt;;
    ti,in-dpm-voltage = &lt;4440000&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>
