# Dialog Semiconductor DA9121 voltage regulator

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

> Device-tree binding reference for Dialog Semiconductor DA9121 voltage regulator.

<!-- 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;regulator&#47;dlg&#44;da9121&#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;Adam Ward &#60;Adam&#46;Ward&#46;opensource&#64;diasemi&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Dialog Semiconductor DA9121 Single-channel 10A double-phase buck converter
Dialog Semiconductor DA9122 Double-channel  5A single-phase buck converter
Dialog Semiconductor DA9220 Double-channel  3A single-phase buck converter
Dialog Semiconductor DA9217 Single-channel  6A double-phase buck converter
Dialog Semiconductor DA9130 Single-channel 10A double-phase buck converter
Dialog Semiconductor DA9131 Double-channel  5A single-phase buck converter
Dialog Semiconductor DA9132 Double-channel  3A single-phase buck converter
Dialog Semiconductor DA9141 Single-channel 40A   quad-phase buck converter
Dialog Semiconductor DA9142 Single-channel 20A double-phase buck converter</p>
<p style="white-space: pre-wrap">Device parameter ranges</p>
<p style="white-space: pre-wrap">The current limits can be set to at/near double the rated current per channel
to allow for transient peaks.
Current limit changes when the output is enabled are not supported, as a
precaution against undefined behaviour.</p>
<p style="white-space: pre-wrap">|----------------------------------------------|
|               | range &amp; reset default value  |
| Device        |------------------------------|
|               | microvolt    | microamp      |
|----------------------------------------------|
| DA9121/DA9130 | Min:  300000 | Min:  7000000 |
|               | Max: 1900000 | Max: 20000000 |
|----------------------------------------------|
| DA9121/DA9131 | Min:  300000 | Min:  3500000 |
|               | Max: 1900000 | Max: 10000000 |
|----------------------------------------------|
| DA9121/DA9131 | Min:  300000 | Min:  3500000 |
|               | Max: 1900000 | Max:  6000000 |
|----------------------------------------------|
| DA9217        | Min:  300000 | Min:  7000000 |
|               | Max: 1900000 | Max: 12000000 |
|----------------------------------------------|
| DA9141        | Min:  300000 | Min: 26000000 |
|               | Max: 1300000 | Max: 78000000 |
|----------------------------------------------|
| DA9142        | Min:  300000 | Min: 13000000 |
|               | Max: 1300000 | Max: 39000000 |
|----------------------------------------------|</p>
</div>

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

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

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;pmic&#64;&#91;0&#45;9a&#45;f&#93;&#123;1&#44;2&#125;&#34;</code></span>

<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;dlg&#44;da9121&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;dlg&#44;da9122&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;dlg&#44;da9220&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;dlg&#44;da9217&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;dlg&#44;da9130&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;dlg&#44;da9131&#34;</code></span>, <span id="dt-5708aa713f48e19e156f"><code>&#34;dlg&#44;da9132&#34;</code></span>, <span id="dt-3edbd20dc5b59e47edf5"><code>&#34;dlg&#44;da9141&#34;</code></span>, <span id="dt-07feb33463d5c114ab05"><code>&#34;dlg&#44;da9142&#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>

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">Specifies the I2C slave address.</p>
</div>

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">IRQ line information.</p>
</div>

<a id="dt-2805982ed636b014cc4c"></a>

### <code>dlg&#44;irq&#45;polling&#45;delay&#45;passive&#45;ms</code> — not listed as required here

**Minimum value (<code>minimum</code>):** <span id="dt-ba1733d15b09c0507d75"><code>1000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-4b9fb375dbe1d837929c"><code>10000</code></span>

<div id="dt-cfa0512cef539aa47ab6">
<p style="white-space: pre-wrap">Specify the polling period, measured in milliseconds, between interrupt status
update checks. Range 1000-10000 ms.</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-8e4e67ed0dd0ed4ae33a"></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-21c242b401be5c67bade">
<p style="white-space: pre-wrap">List of regulators provided by the device</p>
</div>

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

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

<a id="dt-610ed8571b97a183d54b"></a>

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

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

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

<div id="dt-8520652919cc161cc1d4">
<p style="white-space: pre-wrap">Properties for a single BUCK regulator</p>
</div>

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

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

<a id="dt-6e30038fd7ab2602fedc"></a>

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

**Allowed values (<code>enum</code>):** <a id="dt-783b9b184cad50626c9e"></a> <span id="dt-525d08ea47718ad04fbb"><code>0</code></span>, <span id="dt-f4479e8204c22b6be1a7"><code>1</code></span>, <span id="dt-1786aa00f24de84fa005"><code>2</code></span>, <span id="dt-799e02b086339432cf07"><code>3</code></span>

<div id="dt-094b9671b9e9aa11cede">
<p style="white-space: pre-wrap">Defined in include/dt-bindings/regulator/dlg,da9121-regulator.h</p>
</div>

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

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

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

<div id="dt-dbad116877a967c19c57">
<p style="white-space: pre-wrap">Specify a valid GPIO for platform control of the regulator</p>
</div>

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

**<code>dlg&#44;ripple&#45;cancel</code> — not listed as required here**

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

**Allowed values (<code>enum</code>):** <a id="dt-af398b143b7a8087dd8f"></a> <span id="dt-1414b9bb776ccee1abd4"><code>0</code></span>, <span id="dt-0a0ee6cce919e1b21bb2"><code>1</code></span>, <span id="dt-ff58b5b29b5ecd8f1979"><code>2</code></span>, <span id="dt-b169e923ea8715e83e90"><code>3</code></span>

<div id="dt-d827ae1be783a8d11e12">
<p style="white-space: pre-wrap">Defined in include/dt-bindings/regulator/dlg,da9121-regulator.h
Only present on multi-channel devices (DA9122, DA9220, DA9131, DA9132)</p>
</div>

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

**Properties not evaluated by applicable rules (<code>unevaluatedProperties</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;regulators&#34;</code></span>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-97f47e9dc804c839f86d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bbadeeb73dfaefabae79"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-bf9d7a6c36fc19e6cd0a"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > <a id="dt-451f8454a4f96d20fdd9"></a>
> > >
> > > **Rule for matching array elements (<code>contains</code>)**
> > >
> > > > **Allowed values (<code>enum</code>):** <a id="dt-b0443397560b968195b8"></a> <span id="dt-eee805568886c3c0f483"><code>&#34;dlg&#44;da9122&#34;</code></span>, <span id="dt-db8973c13f1a89db260a"><code>&#34;dlg&#44;da9131&#34;</code></span>, <span id="dt-5867a4059d130044db8c"><code>&#34;dlg&#44;da9132&#34;</code></span>, <span id="dt-3ce27c0a9eaf0b6688a2"><code>&#34;dlg&#44;da9220&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-b212c2ef78c22fab2e20"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-a36efce75ba3d3990fcc"></a>
> >
> > **<code>regulators</code> — not listed as required here**
> >
> > <a id="dt-61eae43ec7b6d1adde24"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-c57702afffeb358ff0ef"></a>
> >
> > **<code>buck2</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<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;
#include &lt;dt-bindings/regulator/dlg,da9121-regulator.h&gt;
i2c {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;
  pmic@68 {
    compatible = "dlg,da9121";
    reg = &lt;0x68&gt;;

    interrupt-parent = &lt;&amp;gpio6&gt;;
    interrupts = &lt;11 IRQ_TYPE_LEVEL_LOW&gt;;

    dlg,irq-polling-delay-passive-ms = &lt;2000&gt;;

    regulators {
      DA9121_BUCK1: buck1 {
        regulator-name = "BUCK1";
        regulator-min-microvolt = &lt;300000&gt;;
        regulator-max-microvolt = &lt;1900000&gt;;
        regulator-min-microamp = &lt;7000000&gt;;
        regulator-max-microamp = &lt;20000000&gt;;
        regulator-boot-on;
        regulator-initial-mode = &lt;DA9121_BUCK_MODE_AUTO&gt;;
        enable-gpios = &lt;&amp;gpio 1 GPIO_ACTIVE_HIGH&gt;;
      };
    };
  };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/gpio/gpio.h&gt;
#include &lt;dt-bindings/interrupt-controller/irq.h&gt;
#include &lt;dt-bindings/regulator/dlg,da9121-regulator.h&gt;
i2c {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;
  pmic@68 {
    compatible = "dlg,da9122";
    reg = &lt;0x68&gt;;

    interrupt-parent = &lt;&amp;gpio6&gt;;
    interrupts = &lt;11 IRQ_TYPE_LEVEL_LOW&gt;;

    dlg,irq-polling-delay-passive-ms = &lt;2000&gt;;

    regulators {
      DA9122_BUCK1: buck1 {
        regulator-name = "BUCK1";
        regulator-min-microvolt = &lt;300000&gt;;
        regulator-max-microvolt = &lt;1900000&gt;;
        regulator-min-microamp = &lt;3500000&gt;;
        regulator-max-microamp = &lt;10000000&gt;;
        regulator-boot-on;
        regulator-initial-mode = &lt;DA9121_BUCK_MODE_AUTO&gt;;
        enable-gpios = &lt;&amp;gpio6 1 GPIO_ACTIVE_HIGH&gt;;
        dlg,ripple-cancel = &lt;DA9121_BUCK_RIPPLE_CANCEL_NONE&gt;;
      };
      DA9122_BUCK2: buck2 {
        regulator-name = "BUCK2";
        regulator-min-microvolt = &lt;300000&gt;;
        regulator-max-microvolt = &lt;1900000&gt;;
        regulator-min-microamp = &lt;3500000&gt;;
        regulator-max-microamp = &lt;10000000&gt;;
        regulator-boot-on;
        regulator-initial-mode = &lt;DA9121_BUCK_MODE_AUTO&gt;;
        enable-gpios = &lt;&amp;gpio6 2 GPIO_ACTIVE_HIGH&gt;;
        dlg,ripple-cancel = &lt;DA9121_BUCK_RIPPLE_CANCEL_NONE&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-only OR BSD-2-Clause)</span></p>

</details>
