# TI/National Semiconductor LP8727 Charger

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

> Device-tree binding reference for TI/National Semiconductor LP8727 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;ti&#44;lp8727&#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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;ti&#44;lp8727&#34;</code></span>

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

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

**Exact value (<code>const</code>):** <span id="dt-37ff54f2982aadb4aad3"><code>39</code></span>

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

### <code>interrupts</code> — not listed as required here

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

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

### <code>debounce&#45;ms</code> — not listed as required here

<div id="dt-c5edf3e8bef737e4659f">
<p style="white-space: pre-wrap">interrupt debounce time in ms</p>
</div>

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

## Properties matching a name pattern (<code>patternProperties</code>)

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

### <code>&#94;&#40;ac&#124;usb&#41;&#36;</code> — name matches this regular expression

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

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

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<div id="dt-1b2163c761baf2d1dc99">
<p style="white-space: pre-wrap">USB/AC charging parameters</p>
</div>

<a id="dt-7e9b97e547bf584b9c80"></a>

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

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

**<code>charger&#45;type</code> — not listed as required here**

**Allowed values (<code>enum</code>):** <a id="dt-f35ec5bc5fb50f3fdc22"></a> <span id="dt-69cb0215111f5191ae2f"><code>&#34;ac&#34;</code></span>, <span id="dt-33eae98dd54c7ac355b7"><code>&#34;usb&#34;</code></span>

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

**<code>eoc&#45;level</code> — not listed as required here**

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

**Minimum value (<code>minimum</code>):** <span id="dt-0180e8d68190955aa486"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-ef2741b8e0da72cd8b5a"><code>6</code></span>

<div id="dt-6cf2ab2b4b759fe3b929">
<p style="white-space: pre-wrap">End of Charge Percentage with the following mapping:
0 = 5%, 1 = 10%, 2 = 16%, 3 = 20%, 4 = 25%, 5 = 33%, 6 = 50%</p>
</div>

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

**<code>charging&#45;current</code> — not listed as required here**

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

**Minimum value (<code>minimum</code>):** <span id="dt-2b52e6d4dd2a0462bde1"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-bb05f71216bee72280a4"><code>9</code></span>

<div id="dt-cbf80d67bfa704298f94">
<p style="white-space: pre-wrap">Charging current with the following mapping:
0 = 90mA, 1 = 100mA, 2 = 400mA, 3 = 450mA, 4 = 500mA, 5 = 600mA,
6 = 700mA, 7 = 800mA, 8 = 900mA, 9 = 1000mA</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>

<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/interrupt-controller/irq.h&gt;
i2c {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  lp8727: charger@27 {
    compatible = "ti,lp8727";
    reg = &lt;0x27&gt;;
    interrupt-parent = &lt;&amp;gpio5&gt;;
    interrupts = &lt;6 IRQ_TYPE_EDGE_FALLING&gt;;
    debounce-ms = &lt;300&gt;;

    /* AC charger: 5% EOC and 500mA charging current */
    ac {
      charger-type = "ac";
      eoc-level = /bits/ 8 &lt;0&gt;;
      charging-current = /bits/ 8 &lt;4&gt;;
    };

    /* USB charger: 10% EOC and 400mA charging current */
    usb {
      charger-type = "usb";
      eoc-level = /bits/ 8 &lt;1&gt;;
      charging-current = /bits/ 8 &lt;2&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>

</details>
