# TI bq2415x Li-Ion Charger

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

> Device-tree binding reference for TI bq2415x 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;bq2415x&#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;bq24150&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;bq24150a&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;ti&#44;bq24151&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;ti&#44;bq24151a&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;ti&#44;bq24152&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;ti&#44;bq24153&#34;</code></span>, <span id="dt-5708aa713f48e19e156f"><code>&#34;ti&#44;bq24153a&#34;</code></span>, <span id="dt-3edbd20dc5b59e47edf5"><code>&#34;ti&#44;bq24155&#34;</code></span>, <span id="dt-07feb33463d5c114ab05"><code>&#34;ti&#44;bq24156&#34;</code></span>, <span id="dt-1e634b71c3167df349bb"><code>&#34;ti&#44;bq24156a&#34;</code></span>, <span id="dt-70e866729f00cfce3510"><code>&#34;ti&#44;bq24158&#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-31255d359b503dd5eb44"></a>

### <code>ti&#44;current&#45;limit</code> — 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">initial maximum current charger can pull from power supply in mA.</p>
</div>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-71afb3ccccbba46cf4c1">[<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-3da05e8307790c90131a">
<p style="white-space: pre-wrap">weak battery voltage threshold in mV.
The chip will use slow precharge if battery voltage is below this value.</p>
</div>

<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 mV.</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 mA.</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 mA).</p>
</div>

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

### <code>ti&#44;resistor&#45;sense</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-852bd993815d7db3acd5">[<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-c80d61e089cb924f80b4">
<p style="white-space: pre-wrap">value of sensing resistor in milliohm.</p>
</div>

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

### <code>ti&#44;usb&#45;charger&#45;detection</code> — not listed as required here

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

<div id="dt-ea2a8e2f67f877eae38f">
<p style="white-space: pre-wrap">phandle to usb charger detection device (required for auto mode)</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;ti&#44;current&#45;limit&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;ti&#44;weak&#45;battery&#45;voltage&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;ti&#44;battery&#45;regulation&#45;voltage&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;ti&#44;charge&#45;current&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;ti&#44;termination&#45;current&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;ti&#44;resistor&#45;sense&#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">i2c {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  charger@6b {
    compatible = "ti,bq24150a";
    reg = &lt;0x6b&gt;;

    ti,current-limit = &lt;100&gt;;
    ti,weak-battery-voltage = &lt;3400&gt;;
    ti,battery-regulation-voltage = &lt;4200&gt;;
    ti,charge-current = &lt;650&gt;;
    ti,termination-current = &lt;100&gt;;
    ti,resistor-sense = &lt;68&gt;;

    ti,usb-charger-detection = &lt;&amp;isp1704&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>
