# TI BQ2419x Li-Ion Battery Charger

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

> Device-tree binding reference for TI BQ2419x Li-Ion Battery 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;bq24190&#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;bq24190&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;bq24192&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;ti&#44;bq24192i&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;ti&#44;bq24193&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;ti&#44;bq24196&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;ti&#44;bq24296&#34;</code></span>, <span id="dt-5708aa713f48e19e156f"><code>&#34;ti&#44;bq24297&#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-1312069eb07362fb696f"></a>

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

<div id="dt-cbcd7a74f0f3f2141ec7">
<p style="white-space: pre-wrap">Active low Charge Enable pin. Battery charging is enabled when REG01[5:4] = 01 and CE pin is Low. CE pin must be pulled high or low.</p>
</div>

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

<a id="dt-28f1dd7ca1296b21a7a2"></a>

### <code>usb&#45;otg&#45;vbus</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-e0a37ccf074814a12e4b">[<code>&#47;schemas&#47;regulator&#47;regulator&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-regulator/regulator.md#dt-root>)</span>

<div id="dt-3cc865768d730b4c42a2">
<p style="white-space: pre-wrap">Regulator that is used to control the VBUS voltage direction for
either USB host mode or for charging on the OTG port</p>
</div>

<a id="dt-687f54ec13ec78d31984"></a>

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

<div id="dt-bfafa4a9bfcc4466e641">
<p style="white-space: pre-wrap">when power is connected and the battery is below minimum system voltage,
the system will be regulated above this setting.</p>
</div>

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

### <code>omit&#45;battery&#45;class</code> — not listed as required here

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

<div id="dt-fdd4d12513fb9193005f">
<p style="white-space: pre-wrap">If this property is set, the operating system does not try to create a
battery device.</p>
</div>

<a id="dt-8ac14ae5dedf24bfd99d"></a>

### <code>monitored&#45;battery</code> — not listed as required here

<div id="dt-19f995fcbb45694faa6c">
<p style="white-space: pre-wrap">phandle to a "simple-battery" compatible node.</p>
<pre><code>This property must be a phandle to a node using the format described
in battery.yaml, with the following properties being required:
- precharge-current-microamp: maximum charge current during precharge phase
                              (typically 20% of battery capacity).
- charge-term-current-microamp: a charge cycle terminates when the battery voltage is
                                above recharge threshold, and the current is below this
                                setting (typically 10% of battery capacity).</code></pre>
</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>

<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;

bat: battery {
  compatible = "simple-battery";
  precharge-current-microamp = &lt;256000&gt;;
  charge-term-current-microamp = &lt;128000&gt;;
};

i2c {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  charger@6a {
    compatible = "ti,bq24190";
    reg = &lt;0x6a&gt;;
    interrupt-parent = &lt;&amp;gpiochip&gt;;
    interrupts = &lt;10 IRQ_TYPE_EDGE_FALLING&gt;;
    monitored-battery = &lt;&amp;bat&gt;;
    ti,system-minimum-microvolt = &lt;3200000&gt;;

    usb_otg_vbus: usb-otg-vbus { };
  };
};
</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>
