# Texas Instruments OMAP compatible OPP supply

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

> Device-tree binding reference for Texas Instruments OMAP compatible OPP supply.

<!-- 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;opp&#47;ti&#44;omap&#45;opp&#45;supply&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">OMAP5, DRA7, and AM57 families of SoCs have Class 0 AVS eFuse registers, which contain OPP-specific voltage information tailored for the specific device. This binding provides the information needed to describe such a hardware values and relate them to program the primary regulator during an OPP transition.
Also, some supplies may have an associated vbb-supply, an Adaptive Body Bias regulator, which must transition in a specific sequence w.r.t the vdd-supply and clk when making an OPP transition. By supplying two regulators to the device that will undergo OPP transitions, we can use the multi-regulator support implemented by the OPP core to describe both regulators the platform needs. The OPP core binding Documentation/devicetree/bindings/opp/opp-v2.yaml provides further information (refer to Example 4 Handling multiple regulators).</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Nishanth Menon &#60;nm&#64;ti&#46;com&#62;&#34;</code></span>

<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;&#94;opp&#45;supply&#40;&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#41;&#63;&#36;&#34;</code></span>

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

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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <div id="dt-ab1c3e7063bd95dc962e">
> <p style="white-space: pre-wrap">Basic OPP supply controlling VDD and VBB</p>
> </div>
>
> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;ti&#44;omap&#45;opp&#45;supply&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <div id="dt-4b64ce44adfe069638c4">
> <p style="white-space: pre-wrap">OMAP5+ optimized voltages in efuse(Class 0) VDD along with VBB.</p>
> </div>
>
> **Exact value (<code>const</code>):** <span id="dt-58a429cd4bf531951c0d"><code>&#34;ti&#44;omap5&#45;opp&#45;supply&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> <div id="dt-34ebc3371373135d1528">
> <p style="white-space: pre-wrap">OMAP5+ optimized voltages in efuse(class0) VDD but no VBB</p>
> </div>
>
> **Exact value (<code>const</code>):** <span id="dt-710bc579d54b8b6b1f6c"><code>&#34;ti&#44;omap5&#45;core&#45;opp&#45;supply&#34;</code></span>

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

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

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

<a id="dt-40edb957b0831f558a92"></a>

### <code>ti&#44;absolute&#45;max&#45;voltage&#45;uv</code> — required here

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

<div id="dt-fbb073ef8782f94efbe1">
<p style="white-space: pre-wrap">Absolute maximum voltage for the OPP supply in micro-volts.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-31061a89a77db20359e6"><code>750000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-46e24b708fe33d939426"><code>1500000</code></span>

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

### <code>ti&#44;efuse&#45;settings</code> — not listed as required here

<div id="dt-25432b895340321be3dd">
<p style="white-space: pre-wrap">An array of u32 tuple items providing information about optimized efuse configuration.</p>
</div>

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

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

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

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

> <a id="dt-1a7eafad77bd843fe52b"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-726c3df1b6dfab5dcb6c"></a>
>
> **Item 1**
>
> > <div id="dt-b922c53082292feba9f4">
> > <p style="white-space: pre-wrap">Reference voltage in micro-volts (OPP Voltage)</p>
> > </div>
> >
> > **Minimum value (<code>minimum</code>):** <span id="dt-f799dea24c9130a6a45c"><code>750000</code></span>
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-81474e2f2a2ba194a7e0"><code>1500000</code></span>
> >
> > **Multiple of (<code>multipleOf</code>):** <span id="dt-cde57891595d8e09ef86"><code>10000</code></span>
>
> <a id="dt-cd9bded1657dacf6c2a7"></a>
>
> **Item 2**
>
> > <div id="dt-b78f5254bef9e4424eee">
> > <p style="white-space: pre-wrap">efuse offset where the optimized voltage is located</p>
> > </div>
> >
> > **Multiple of (<code>multipleOf</code>):** <span id="dt-2316682cb80a0b8853e2"><code>4</code></span>
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-2992f6f534d2959fb711"><code>256</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;ti&#44;absolute&#45;max&#45;voltage&#45;uv&#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-17723ad0bbc7f42a3e70"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > <a id="dt-3defb1f4dc0d6847a043"></a>
> > >
> > > **Properties and child nodes (<code>properties</code>)**
> > >
> > > <a id="dt-0e5d4207b2374940f9d3"></a>
> > >
> > > **<code>compatible</code> — not listed as required here**
> > >
> > > <a id="dt-6e1ee4ed1b112666419d"></a>
> > >
> > > **Rule for matching array elements (<code>contains</code>)**
> > >
> > > > **Exact value (<code>const</code>):** <span id="dt-1c1f690154555df6cea9"><code>&#34;ti&#44;omap&#45;opp&#45;supply&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-b0b2f2243ff9a854f151"></a> <span id="dt-4e9ead0e861b67997dec"><code>&#34;reg&#34;</code></span>, <span id="dt-5652a54c9ddda3dcd6bf"><code>&#34;ti&#44;efuse&#45;settings&#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">opp-supply {
    compatible = "ti,omap-opp-supply";
    ti,absolute-max-voltage-uv = &lt;1375000&gt;;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">opp-supply@4a003b20 {
    compatible = "ti,omap5-opp-supply";
    reg = &lt;0x4a003b20 0x8&gt;;
    ti,efuse-settings =
        /* uV   offset */
        &lt;1060000 0x0&gt;,
        &lt;1160000 0x4&gt;,
        &lt;1210000 0x8&gt;;
    ti,absolute-max-voltage-uv = &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>
