# Generic OPP (Operating Performance Points) v1

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

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

<!-- 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;v1&#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 binding only supports voltage-frequency pairs.</p>
</div>

**Deprecated (<code>deprecated</code>):** <span id="dt-a3c8d6bcd87de16bde6b"><code>true</code></span>

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

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

<a id="dt-4229939c079a443fd69a"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-69954436e1b15df0e8a4">[<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-5b7e85985e043619a5e2">
<p style="white-space: pre-wrap">The latency in nanoseconds for clock changes. Use OPP tables for new designs instead.</p>
</div>

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

### <code>voltage&#45;tolerance</code> — not listed as required here

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

**Maximum value (<code>maximum</code>):** <span id="dt-24c62bd9a4101710efbe"><code>10</code></span>

<div id="dt-10eabdff515c06fd9b5e">
<p style="white-space: pre-wrap">The voltage tolerance in percent. Use OPP tables for new designs instead.</p>
</div>

<a id="dt-898469751c1b436eafff"></a>

### <code>operating&#45;points</code> — not listed as required here

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

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

> <a id="dt-983720e5cb83d53a76ea"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-1564b46d0f86a984f793"></a>
>
> **Item 1**
>
> > <div id="dt-06453773f0362ce2c393">
> > <p style="white-space: pre-wrap">Frequency in kHz</p>
> > </div>
>
> <a id="dt-3e32ac788c6e811fc9a5"></a>
>
> **Item 2**
>
> > <div id="dt-4a6653ee17b1b687df6c">
> > <p style="white-space: pre-wrap">Voltage for OPP in uV</p>
> > </div>

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

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

<a id="dt-38af081605a43aebf370"></a>

### <code>clock&#45;latency</code> — applies when this property is present

Also requires: <span id="dt-494dd223964bc6fa72b0"><code>&#34;operating&#45;points&#34;</code></span>

<a id="dt-95ae7bd571ad666c9ded"></a>

### <code>voltage&#45;tolerance</code> — applies when this property is present

Also requires: <span id="dt-061b46ecbf31e0ba86a7"><code>&#34;operating&#45;points&#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.

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">cpus {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    cpu@0 {
        compatible = "arm,cortex-a9";
        device_type = "cpu";
        reg = &lt;0&gt;;
        next-level-cache = &lt;&amp;L2&gt;;
        operating-points =
            /* kHz    uV */
            &lt;792000 1100000&gt;,
            &lt;396000 950000&gt;,
            &lt;198000 850000&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>
