# Richtek RT5120 PMIC

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Mfd bindings_

> Device-tree binding reference for Richtek RT5120 PMIC.

<!-- 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;mfd&#47;richtek&#44;rt5120&#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;ChiYuan Huang &#60;cy&#95;huang&#64;richtek&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The RT5120 provides four high-efficiency buck converters and one LDO voltage
regulator. The device is targeted at providingthe processor voltage, memory,
I/O, and peripheral rails in home entertainment devices. The I2C interface is
used for dynamic voltage scaling of the processor voltage, power rails on/off
sequence control, operation mode selection.</p>
</div>

<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;richtek&#44;rt5120&#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-b98252f9c39642b1db8f"></a>

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

<code>true</code> — No constraints added by this property rule.

<a id="dt-8586fac2d9a71adf4795"></a>

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

**Exact value (<code>const</code>):** <span id="dt-317bbf786489389e8233"><code>1</code></span>

<a id="dt-2a09d6d20023955671c8"></a>

### <code>wakeup&#45;source</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

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

### <code>richtek&#44;enable&#45;undervolt&#45;hiccup</code> — not listed as required here

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

<div id="dt-b59de3dcc6094e588eeb">
<p style="white-space: pre-wrap">If used, under voltage protection trigger hiccup behavior, else latchup as
default</p>
</div>

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

### <code>richtek&#44;enable&#45;overvolt&#45;hiccup</code> — not listed as required here

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

<div id="dt-454e4a8d9abe26133333">
<p style="white-space: pre-wrap">Like as 'enable-uv-hiccup', it configures over voltage protection to hiccup, else latchup as default</p>
</div>

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

### <code>vin1&#45;supply</code> — not listed as required here

<div id="dt-770c7c22587fd1c5987b">
<p style="white-space: pre-wrap">phandle for buck1 input power source</p>
</div>

<a id="dt-49d80349ebc5dc88a1cd"></a>

### <code>vin2&#45;supply</code> — not listed as required here

<div id="dt-101223f780fad5beccf9">
<p style="white-space: pre-wrap">phandle for buck2 input power source</p>
</div>

<a id="dt-475ced49e2a9251f39b0"></a>

### <code>vin3&#45;supply</code> — not listed as required here

<div id="dt-aa9a9a05d93659f86633">
<p style="white-space: pre-wrap">phandle for buck3 input power source</p>
</div>

<a id="dt-5bd2aa541f393cd1ddff"></a>

### <code>vin4&#45;supply</code> — not listed as required here

<div id="dt-da7876e91a9ddebb2c69">
<p style="white-space: pre-wrap">phandle for buck4 input power source</p>
</div>

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

### <code>vinldo&#45;supply</code> — not listed as required here

<div id="dt-74c2d9635d7db6c0ad0d">
<p style="white-space: pre-wrap">phandle for ldo input power source</p>
</div>

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

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

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

<a id="dt-61f1ab18943e36a1a8bc"></a>

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

<a id="dt-6561bee06f82f4d546b8"></a>

**<code>&#94;buck&#91;1&#45;4&#93;&#36;</code> — name matches this regular expression**

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-0777084e30337e5fa416">[<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-f093252e95da072addfa"></a>

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

<code>false</code>

Not allowed by this rule.

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

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

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

**<code>regulator&#45;allowed&#45;modes</code> — not listed as required here**

<div id="dt-886958a51b7bae0b7c44">
<pre><code>Used to specify the allowed buck converter operating mode
mode mapping:
  0: auto mode
  1: force pwm mode</code></pre>
</div>

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

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

> **Allowed values (<code>enum</code>):** <a id="dt-62852f127c230ab96637"></a> <span id="dt-1f9a3df68fd2bf62f771"><code>0</code></span>, <span id="dt-569b989da2d9d36072d7"><code>1</code></span>

<a id="dt-6410292b114e478af46a"></a>

**<code>&#94;&#40;ldo&#124;exten&#41;&#36;</code> — name matches this regular expression**

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8fa517168568c9fb2e53">[<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-e83458556e301d078708"></a>

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

<code>false</code>

Not allowed by this rule.

<a id="dt-8e4e67ed0dd0ed4ae33a"></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-5a22f3b767fbe1c4abea"></a>

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

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

<div id="dt-dee3d6996895881e1345">
<p style="white-space: pre-wrap">PON key that connected to RT5120 PMIC.</p>
</div>

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

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

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

**<code>compatible</code> — required here**

**Allowed values (<code>enum</code>):** <a id="dt-ba213b78edaf6dac3736"></a> <span id="dt-9edd19ffe4474fbcafda"><code>&#34;richtek&#44;rt5120&#45;pwrkey&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-fbb9361fcf89df96ceef"></a> <span id="dt-1608d9c9fd59c6bd93e2"><code>&#34;compatible&#34;</code></span>

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

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

<code>false</code>

Not allowed by this rule.

**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;&#35;interrupt&#45;cells&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;interrupt&#45;controller&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;regulators&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;powerkey&#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;;

  pmic@62 {
    compatible = "richtek,rt5120";
    reg = &lt;0x62&gt;;
    interrupts-extended = &lt;&amp;gpio_intc 32 IRQ_TYPE_LEVEL_LOW&gt;;
    interrupt-controller;
    #interrupt-cells = &lt;1&gt;;
    wakeup-source;

    regulators {
      buck1 {
        regulator-name = "rt5120-buck1";
        regulator-min-microvolt = &lt;600000&gt;;
        regulator-max-microvolt = &lt;1393750&gt;;
        regulator-allowed-modes = &lt;0 1&gt;;
        regulator-boot-on;
      };
      buck2 {
        regulator-name = "rt5120-buck2";
        regulator-min-microvolt = &lt;1100000&gt;;
        regulator-max-microvolt = &lt;1100000&gt;;
        regulator-allowed-modes = &lt;0 1&gt;;
        regulator-always-on;
      };
      buck3 {
        regulator-name = "rt5120-buck3";
        regulator-min-microvolt = &lt;1800000&gt;;
        regulator-max-microvolt = &lt;1800000&gt;;
        regulator-allowed-modes = &lt;0 1&gt;;
        regulator-always-on;
      };
      buck4 {
        regulator-name = "rt5120-buck4";
        regulator-min-microvolt = &lt;3300000&gt;;
        regulator-max-microvolt = &lt;3300000&gt;;
        regulator-allowed-modes = &lt;0 1&gt;;
        regulator-always-on;
      };
      ldo {
        regulator-name = "rt5120-ldo";
        regulator-min-microvolt = &lt;1800000&gt;;
        regulator-max-microvolt = &lt;1800000&gt;;
        regulator-always-on;
      };
      exten {
        regulator-name = "rt5120-exten";
        regulator-min-microvolt = &lt;3000000&gt;;
        regulator-max-microvolt = &lt;3000000&gt;;
        regulator-always-on;
      };
    };
    powerkey {
      compatible = "richtek,rt5120-pwrkey";
    };
  };
};
</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-only OR BSD-2-Clause</span></p>

</details>
