# Voltage controlled regulators

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

> Device-tree binding reference for Voltage controlled regulators.

<!-- 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;vctrl&#45;regulator&#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;Heiko Stuebner &#60;heiko&#64;sntech&#46;de&#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>regulator&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-regulator/regulator.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;vctrl&#45;regulator&#34;</code></span>

<a id="dt-99435639ca8c0c527f6f"></a>

### <code>ctrl&#45;supply</code> — required here

<div id="dt-2467a86b9793c32b8d5c">
<p style="white-space: pre-wrap">Regulator supplying the control voltage</p>
</div>

<a id="dt-36bf228a341605939259"></a>

### <code>ctrl&#45;voltage&#45;range</code> — required here

<div id="dt-9f6f39a09f89c74be097">
<p style="white-space: pre-wrap">Array of two integer values describing the range (min/max) of the control voltage. The values specify the control voltage needed to generate the corresponding regulator-min/max-microvolt output voltage.</p>
</div>

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-46065364b3642ad80948"><code>2</code></span>

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

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

### <code>min&#45;slew&#45;down&#45;rate</code> — not listed as required here

<div id="dt-ea33302d5ca0fe339668">
<p style="white-space: pre-wrap">Describes how slowly the regulator voltage will decay down in the worst case (lightest expected load). Specified in uV / us (like main regulator ramp rate). This value is required when ovp-threshold-percent is specified.</p>
</div>

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

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

### <code>ovp&#45;threshold&#45;percent</code> — not listed as required here

<div id="dt-80eecbed9f4791f50c78">
<p style="white-space: pre-wrap">Overvoltage protection (OVP) threshold of the regulator in percent. Some regulators have an OVP circuitry which shuts down the regulator when the actual output voltage deviates beyond a certain margin from the expected value for a given control voltage. On larger voltage decreases this can occur undesiredly since the output voltage does not adjust immediately to changes in the control voltage. To avoid this situation the vctrl driver breaks down larger voltage decreases into multiple steps, where each step is within the OVP threshold.</p>
</div>

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

**Maximum value (<code>maximum</code>):** <span id="dt-02a0ce2b642760089dc4"><code>100</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

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

<code>false</code>

Not allowed by this rule.

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

## Property dependencies (<code>dependencies</code>)

<a id="dt-164610329dbcfe56342e"></a>

### <code>ovp&#45;threshold&#45;percent</code> — applies when this property is present

Also requires: <span id="dt-8a7933b878718a1ac935"><code>&#34;min&#45;slew&#45;down&#45;rate&#34;</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;ctrl&#45;supply&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;ctrl&#45;voltage&#45;range&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;regulator&#45;min&#45;microvolt&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;regulator&#45;max&#45;microvolt&#34;</code></span>

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">vctrl-reg {
        compatible = "vctrl-regulator";
        regulator-name = "vctrl_reg";

        ctrl-supply = &lt;&amp;ctrl_reg&gt;;
        ctrl-voltage-range = &lt;200000 500000&gt;;

        min-slew-down-rate = &lt;225&gt;;
        ovp-threshold-percent = &lt;16&gt;;

        regulator-min-microvolt = &lt;800000&gt;;
        regulator-max-microvolt = &lt;1500000&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>
