# Generic OPP (Operating Performance Points) Common Properties

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

> Device-tree binding reference for Generic OPP (Operating Performance Points) Common Properties.

<!-- 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;opp&#45;v2&#45;base&#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;Viresh Kumar &#60;viresh&#46;kumar&#64;linaro&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Devices work at voltage-current-frequency combinations and some implementations
have the liberty of choosing these. These combinations are called Operating
Performance Points aka OPPs. This document defines bindings for these OPPs
applicable across wide range of devices. For illustration purpose, this document
uses CPU as a device.</p>
<p style="white-space: pre-wrap">This describes the OPPs belonging to a device.</p>
</div>

<a id="dt-865ef19e891fb9fe7b15"></a>

## Automatic schema selection (<code>select</code>)

<code>false</code>

Not selected automatically by this rule.

<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;table&#40;&#45;&#91;a&#45;z0&#45;9&#93;&#43;&#41;&#63;&#36;&#34;</code></span>

<a id="dt-4a53ed2162f8a79b7794"></a>

### <code>opp&#45;shared</code> — not listed as required here

<div id="dt-a552fc17813ef5c7ad21">
<p style="white-space: pre-wrap">Indicates that device nodes using this OPP Table Node's phandle switch their DVFS state together, i.e. they share clock/voltage/current lines. Missing property means devices have independent clock/voltage/current lines, but they share OPP tables.</p>
</div>

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

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

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

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

### <code>&#94;opp&#40;&#45;&#63;&#91;0&#45;9&#93;&#43;&#41;&#42;&#36;</code> — name matches this regular expression

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

<div id="dt-a2cb6a9e68e08c1c5093">
<p style="white-space: pre-wrap">One or more OPP nodes describing voltage-current-frequency combinations. Their name isn't significant but their phandle can be used to reference an OPP. These are mandatory except for the case where the OPP table is present only to indicate dependency between devices using the opp-shared property.</p>
</div>

<a id="dt-8676bf13e8f476d733de"></a>

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

<a id="dt-84b3f9f6840a424804a8"></a>

**<code>opp&#45;hz</code> — not listed as required here**

<div id="dt-8727c045ff1f556907f2">
<p style="white-space: pre-wrap">Frequency in Hz, expressed as a 64-bit big-endian integer. This is a required property for all device nodes, unless another "required" property to uniquely identify the OPP nodes exists. Devices like power domains must have another (implementation dependent) property.
Entries for multiple clocks shall be provided in the same field, as array of frequencies.  The OPP binding doesn't provide any provisions to relate the values to their clocks or the order in which the clocks need to be configured and that is left for the implementation specific binding.</p>
</div>

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

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

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

**<code>opp&#45;microvolt</code> — not listed as required here**

<div id="dt-ff4a35591ccd7d3b2a98">
<p style="white-space: pre-wrap">Voltage for the OPP</p>
<p style="white-space: pre-wrap">A single regulator's voltage is specified with an array of size one or three.
Single entry is for target voltage and three entries are for &lt;target min max&gt;
voltages.</p>
<p style="white-space: pre-wrap">Entries for multiple regulators shall be provided in the same field separated
by angular brackets &lt;&gt;. The OPP binding doesn't provide any provisions to
relate the values to their power supplies or the order in which the supplies
need to be configured and that is left for the implementation specific
binding.</p>
<p style="white-space: pre-wrap">Entries for all regulators shall be of the same size, i.e. either all use a
single value or triplets.</p>
</div>

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-307d2b964c24320ebb2e"><code>8</code></span>

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

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

> **Minimum number of items (<code>minItems</code>):** <span id="dt-974e76743fa22bc76595"><code>1</code></span>
>
> **Maximum number of items (<code>maxItems</code>):** <span id="dt-07f99bdcc640b91996ed"><code>3</code></span>

<a id="dt-1429e1b530672bb8cd29"></a>

**<code>opp&#45;microamp</code> — not listed as required here**

<div id="dt-6d049cdde90cc89da372">
<p style="white-space: pre-wrap">The maximum current drawn by the device in microamperes considering
system specific parameters (such as transients, process, aging,
maximum operating temperature range etc.) as necessary. This may be
used to set the most efficient regulator operating mode.</p>
<p style="white-space: pre-wrap">Should only be set if opp-microvolt or opp-microvolt-&lt;name&gt; is set for
the OPP.</p>
<p style="white-space: pre-wrap">Entries for multiple regulators shall be provided in the same field
separated by angular brackets &lt;&gt;. If current values aren't required
for a regulator, then it shall be filled with 0. If current values
aren't required for any of the regulators, then this field is not
required. The OPP binding doesn't provide any provisions to relate the
values to their power supplies or the order in which the supplies need
to be configured and that is left for the implementation specific
binding.</p>
</div>

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

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

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

**<code>opp&#45;microwatt</code> — not listed as required here**

<div id="dt-a2e1b176cf28804f1fe9">
<p style="white-space: pre-wrap">The power for the OPP in micro-Watts.</p>
<p style="white-space: pre-wrap">Entries for multiple regulators shall be provided in the same field
separated by angular brackets &lt;&gt;. If power values aren't required
for a regulator, then it shall be filled with 0. If power values
aren't required for any of the regulators, then this field is not
required. The OPP binding doesn't provide any provisions to relate the
values to their power supplies or the order in which the supplies need
to be configured and that is left for the implementation specific
binding.</p>
</div>

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

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

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

**<code>opp&#45;level</code> — not listed as required here**

<div id="dt-8cfc1b3bdc34bbbe162b">
<p style="white-space: pre-wrap">A value representing the performance level of the device.</p>
</div>

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

**<code>opp&#45;peak&#45;kBps</code> — not listed as required here**

<div id="dt-57ebf845f1d5024c80d6">
<p style="white-space: pre-wrap">Peak bandwidth in kilobytes per second, expressed as an array of 32-bit big-endian integers. Each element of the array represents the peak bandwidth value of each interconnect path. The number of elements should match the number of interconnect paths.</p>
</div>

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-59af8446650360ad1b90"><code>32</code></span>

<a id="dt-064ed5f4ff85319f2126"></a>

**<code>opp&#45;avg&#45;kBps</code> — not listed as required here**

<div id="dt-18be45459f4385e49204">
<p style="white-space: pre-wrap">Average bandwidth in kilobytes per second, expressed as an array of 32-bit big-endian integers. Each element of the array represents the average bandwidth value of each interconnect path. The number of elements should match the number of interconnect paths. This property is only meaningful in OPP tables where opp-peak-kBps is present.</p>
</div>

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

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

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

**<code>clock&#45;latency&#45;ns</code> — not listed as required here**

<div id="dt-b1464c51800beb520533">
<p style="white-space: pre-wrap">Specifies the maximum possible transition latency (in nanoseconds) for switching to this OPP from any other OPP.</p>
</div>

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

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

<div id="dt-c20c644ec4da0bed7be1">
<p style="white-space: pre-wrap">Marks the OPP to be used only for turbo modes. Turbo mode is available on some platforms, where the device can run over its operating frequency for a short duration of time limited by the device's power, current and thermal limits.</p>
</div>

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

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

**<code>opp&#45;suspend</code> — not listed as required here**

<div id="dt-27100abd953fd68c920b">
<p style="white-space: pre-wrap">Marks the OPP to be used during device suspend. If multiple OPPs in the table have this, the OPP with highest opp-hz will be used.</p>
</div>

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

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

**<code>opp&#45;supported&#45;hw</code> — not listed as required here**

<div id="dt-4dcf5ca43b7941f5eb94">
<p style="white-space: pre-wrap">This property allows a platform to enable only a subset of the OPPs
from the larger set present in the OPP table, based on the current
version of the hardware (already known to the operating system).</p>
<p style="white-space: pre-wrap">Each block present in the array of blocks in this property, represents
a sub-group of hardware versions supported by the OPP. i.e. &lt;sub-group
A&gt;, &lt;sub-group B&gt;, etc. The OPP will be enabled if _any_ of these
sub-groups match the hardware's version.</p>
<p style="white-space: pre-wrap">Each sub-group is a platform defined array representing the hierarchy
of hardware versions supported by the platform. For a platform with
three hierarchical levels of version (X.Y.Z), this field shall look
like</p>
<p style="white-space: pre-wrap">opp-supported-hw = &lt;X1 Y1 Z1&gt;, &lt;X2 Y2 Z2&gt;, &lt;X3 Y3 Z3&gt;.</p>
<p style="white-space: pre-wrap">Each level (eg. X1) in version hierarchy is represented by a 32 bit
value, one bit per version and so there can be maximum 32 versions per
level. Logical AND (&amp;) operation is performed for each level with the
hardware's level version and a non-zero output for _all_ the levels in
a sub-group means the OPP is supported by hardware. A value of
0xFFFFFFFF for each level in the sub-group will enable the OPP for all
versions for the hardware.</p>
</div>

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

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

<a id="dt-5607dc88b9b9f02bd0ff"></a>

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

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

<a id="dt-3652404e169229b04119"></a>

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

<div id="dt-67e170106a82024f1063">
<p style="white-space: pre-wrap">This contains phandle to an OPP node in another device's OPP table. It may contain an array of phandles, where each phandle points to an OPP of a different device. It should not contain multiple phandles to the OPP nodes in the same OPP table. This specifies the minimum required OPP of the device(s), whose OPP's phandle is present in this property, for the functioning of the current device at the current OPP (where this property is present).</p>
</div>

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

<a id="dt-25538c803c7a9fd8a72b"></a>

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

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

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

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

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

**<code>&#94;opp&#45;microvolt&#45;</code> — name matches this regular expression**

<div id="dt-c8a4d32adeea354fb92b">
<p style="white-space: pre-wrap">Named opp-microvolt property. This is exactly similar to the above opp-microvolt property, but allows multiple voltage ranges to be provided for the same OPP. At runtime, the platform can pick a &lt;name&gt; and matching opp-microvolt-&lt;name&gt; property will be enabled for all OPPs. If the platform doesn't pick a specific &lt;name&gt; or the &lt;name&gt; doesn't match with any opp-microvolt-&lt;name&gt; properties, then opp-microvolt property shall be used, if present.</p>
</div>

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

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

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

<a id="dt-5376deee87f4fcbcbf9e"></a>

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

> **Minimum number of items (<code>minItems</code>):** <span id="dt-d95fdcb5949fe4dd1c5c"><code>1</code></span>
>
> **Maximum number of items (<code>maxItems</code>):** <span id="dt-53a456439ac117656bf1"><code>3</code></span>

<a id="dt-622a102addb395f87de6"></a>

**<code>&#94;opp&#45;microamp&#45;</code> — name matches this regular expression**

<div id="dt-4c05861fc1808c850920">
<p style="white-space: pre-wrap">Named opp-microamp property. Similar to opp-microvolt-&lt;name&gt; property, but for microamp instead.</p>
</div>

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-5c2c6255b3cb3c79a1c9"><code>8</code></span>

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

**<code>&#94;opp&#45;microwatt&#45;</code> — name matches this regular expression**

<div id="dt-8249645ab32597f908f0">
<p style="white-space: pre-wrap">Named opp-microwatt property. Similar to opp-microamp-&lt;name&gt; property, but for microwatt instead.</p>
</div>

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

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

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

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

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

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

**<code>opp&#45;avg&#45;kBps</code> — applies when this property is present**

Also requires: <span id="dt-6740f1cca469c34e21d3"><code>&#34;opp&#45;peak&#45;kBps&#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>

<a id="dt-738c4b4f9e483441138b"></a>

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

<code>true</code>

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>

<p id="dt-comment-1"><strong>Line 78:</strong> <span> Should be enough regulators</span></p>

<p id="dt-comment-2"><strong>Line 102:</strong> <span> Should be enough regulators</span></p>

<p id="dt-comment-3"><strong>Line 117:</strong> <span> Should be enough regulators</span></p>

<p id="dt-comment-4"><strong>Line 131:</strong> <span> Should be enough</span></p>

<p id="dt-comment-5"><strong>Line 141:</strong> <span> Should be enough</span></p>

<p id="dt-comment-6"><strong>Line 218:</strong> <span> Should be enough regulators</span></p>

<p id="dt-comment-7"><strong>Line 229:</strong> <span> Should be enough regulators</span></p>

<p id="dt-comment-8"><strong>Line 237:</strong> <span> Should be enough regulators</span></p>

</details>
