# MediaTek MT6370 Battery Charger

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

> Device-tree binding reference for MediaTek MT6370 Battery Charger.

<!-- SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -->


<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;mediatek&#44;mt6370&#45;charger&#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;ChiaEn Wu &#60;chiaen&#95;wu&#64;richtek&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This module is part of the MT6370 MFD device.
Provides Battery Charger, Boost for OTG devices and BC1.2 detection.</p>
</div>

<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;mediatek&#44;mt6370&#45;charger&#34;</code></span>

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">Specify what irqs are needed to be handled by MT6370 Charger driver.
We need to use the IRQ "MT6370_IRQ_OVPCTRL_UVP_D" to know when USB
is plugged in, and then the driver will enable BC1.2 detection.
After the hardware of MT6370 completes the BC1.2 detection,
IRQ "MT6370_IRQ_ATTACH" will be triggered, and the driver will know
the result of BC1.2 detection.
When the IRQ "MT6370_IRQ_CHG_MIVR" is triggered, it means that the
hardware enters the "Minimum Input Voltage Regulation loop" and
a workaround needs to be applied at this time.
In summary, "MT6370_IRQ_OVPCTRL_UVP_D", "MT6370_IRQ_ATTACH" and
"MT6370_IRQ_CHG_MIVR" are required in this charger driver.</p>
</div>

<a id="dt-985aed94c3a5de8e946a"></a>

#### Array item rules (<code>items</code>)

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

**Item 1**

> <div id="dt-094ee990c529b33ab668">
> <p style="white-space: pre-wrap">irq of "USB is plugged in"</p>
> </div>

<a id="dt-14fdf3275cf454d3c593"></a>

**Item 2**

> <div id="dt-f26fcb0c97f34db34fe4">
> <p style="white-space: pre-wrap">irq of "BC1.2 is done"</p>
> </div>

<a id="dt-6825e597892563d56556"></a>

**Item 3**

> <div id="dt-2c85367ad575dfda8b35">
> <p style="white-space: pre-wrap">irq of "Minimum Input Voltage Regulation loop is active"</p>
> </div>

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

### <code>interrupt&#45;names</code> — required here

<a id="dt-77e94e63ca0b20bb5ef1"></a>

#### Array item rules (<code>items</code>)

<a id="dt-1198ecbdbe49337cf73e"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-7f7686a533ef09dda0b1"><code>&#34;uvp&#95;d&#95;evt&#34;</code></span>

<a id="dt-0d40baae5346e6957f8a"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-5af1964d23a153c89b8a"><code>&#34;attach&#95;i&#34;</code></span>

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

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-25e85adf3e7caf29cd92"><code>&#34;mivr&#34;</code></span>

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

### <code>io&#45;channels</code> — required here

<div id="dt-00f0389e57ab952e1ac1">
<p style="white-space: pre-wrap">Use ADC channel to read VBUS, IBUS, IBAT, etc., info.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-0350e4fe024bda6fb981"><code>1</code></span>

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

#### Array item rules (<code>items</code>)

<a id="dt-17d53412d1fa1395a9a8"></a>

**Item 1**

> <div id="dt-abac078e3f886f38f23a">
> <p style="white-space: pre-wrap">VBUS voltage with lower accuracy (+-75mV) but higher measure
> range (1~22V)</p>
> </div>

<a id="dt-706340a02132e83106e4"></a>

**Item 2**

> <div id="dt-6a3df8da3f9b46911305">
> <p style="white-space: pre-wrap">VBUS voltage with higher accuracy (+-30mV) but lower measure
> range (1~9.76V)</p>
> </div>

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

**Item 3**

> <div id="dt-f2625c7126283f939f63">
> <p style="white-space: pre-wrap">the main system input voltage</p>
> </div>

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

**Item 4**

> <div id="dt-ad8393dcc295ea693d13">
> <p style="white-space: pre-wrap">battery voltage</p>
> </div>

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

**Item 5**

> <div id="dt-f1e39f52dfbab4ac8a90">
> <p style="white-space: pre-wrap">battery temperature-sense input voltage</p>
> </div>

<a id="dt-18a277dcdce3e0a1f808"></a>

**Item 6**

> <div id="dt-2e76fb3e3ba934b85833">
> <p style="white-space: pre-wrap">IBUS current (required)</p>
> </div>

<a id="dt-07e0367fc6f8d4e3eb9e"></a>

**Item 7**

> <div id="dt-507e7cf899539f9f618c">
> <p style="white-space: pre-wrap">battery current</p>
> </div>

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

**Item 8**

> <div id="dt-44acca2416fc315d4427">
> <p style="white-space: pre-wrap">regulated output voltage to supply for the PWM low-side gate driver
> and the bootstrap capacitor</p>
> </div>

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

**Item 9**

> <div id="dt-79278a39c6fc13fba208">
> <p style="white-space: pre-wrap">IC junction temperature</p>
> </div>

<a id="dt-52503acc5d03431d5405"></a>

### <code>io&#45;channel&#45;names</code> — not listed as required here

**Minimum number of items (<code>minItems</code>):** <span id="dt-a53aa242d05c553f066c"><code>1</code></span>

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

#### Array item rules (<code>items</code>)

<a id="dt-55a5fdf011bea14cc16c"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-ca12438828b4e158bfc1"><code>&#34;vbusdiv5&#34;</code></span>

<a id="dt-049f32fdf9d22ec0b83a"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-baa95bab20ce8d394f5b"><code>&#34;vbusdiv2&#34;</code></span>

<a id="dt-375e1fd47db466dce48b"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-5e84458d59f4d0e1acb0"><code>&#34;vsys&#34;</code></span>

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

**Item 4**

> **Exact value (<code>const</code>):** <span id="dt-f8ffadbe4697b5a78811"><code>&#34;vbat&#34;</code></span>

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

**Item 5**

> **Exact value (<code>const</code>):** <span id="dt-e4453b3211f031c54b9b"><code>&#34;ts&#95;bat&#34;</code></span>

<a id="dt-34301743a36d8a37e847"></a>

**Item 6**

> **Exact value (<code>const</code>):** <span id="dt-162b8f9ffb3d79d0979c"><code>&#34;ibus&#34;</code></span>

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

**Item 7**

> **Exact value (<code>const</code>):** <span id="dt-7dcf30fc5288eff43074"><code>&#34;ibat&#34;</code></span>

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

**Item 8**

> **Exact value (<code>const</code>):** <span id="dt-1e77515c5a1c3da6ed68"><code>&#34;chg&#95;vddp&#34;</code></span>

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

**Item 9**

> **Exact value (<code>const</code>):** <span id="dt-545d1a7423e4b0959449"><code>&#34;temp&#95;jc&#34;</code></span>

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

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

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

<div id="dt-98e880876a2aef902e8b">
<p style="white-space: pre-wrap">OTG boost regulator.</p>
</div>

<a id="dt-72067fbe7ef7660f78cb"></a>

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

<code>false</code>

Not allowed by this rule.

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

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

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

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

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

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

**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;interrupts&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupt&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;io&#45;channels&#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.

## 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-only OR BSD-2-Clause)</span></p>

</details>
