# TI CPU OPP (Operating Performance Points)

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

> Device-tree binding reference for TI CPU OPP (Operating Performance Points).

<!-- 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;operating&#45;points&#45;v2&#45;ti&#45;cpu&#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">TI SoCs, like those in the AM335x, AM437x, AM57xx, AM62x, and DRA7xx families, the CPU frequencies subset and the voltage value of each OPP vary based on the silicon variant used. The data sheet sections corresponding to "Operating Performance Points" describe the frequency and voltage values based on device type and speed bin information blown in corresponding eFuse bits as referred to by the Technical Reference Manual.
This document extends the operating-points-v2 binding by providing the hardware description for the scheme mentioned above.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Dhruva Gole &#60;d&#45;gole&#64;ti&#46;com&#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>opp&#45;v2&#45;base&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-opp/opp-v2-base.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;operating&#45;points&#45;v2&#45;ti&#45;cpu&#34;</code></span>

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

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

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

<div id="dt-94e0d14f31e0ec14b27a">
<p style="white-space: pre-wrap">points to syscon node representing the control module
register space of the SoC.</p>
</div>

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

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

<code>true</code> — No constraints added by this property rule.

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

<a id="dt-b0bc9c738a0a5a61a02a"></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-8676bf13e8f476d733de"></a>

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

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

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

<code>true</code> — No constraints added by this property rule.

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

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

<code>true</code> — No constraints added by this property rule.

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

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

<code>true</code> — No constraints added by this property rule.

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

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

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

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

> <a id="dt-a40abbbe246f519305c8"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-498fa186481a0cecebdd"></a>
>
> **Item 1**
>
> > <div id="dt-61369f0c07b82086751f">
> > <p style="white-space: pre-wrap">The revision of the SoC the OPP is supported by. This can be easily obtained from the datasheet of the part being ordered/used. For example, it will be 0x01 for SR1.0</p>
> > </div>
>
> <a id="dt-9026e1501da43d16363c"></a>
>
> **Item 2**
>
> > <div id="dt-5e31f74ef638811bcd05">
> > <p style="white-space: pre-wrap">The eFuse bits that indicate the particular OPP is available. The device datasheet has a table talking about Device Speed Grades. This table is to be sorted with only the unique elements of the MAXIMUM OPERATING FREQUENCY starting from the first row which tells the lowest OPP, to the highest. The corresponding bits need to be set based on N elements of speed grade the device supports. So, if there are 3 possible unique MAXIMUM OPERATING FREQUENCY in the table, then BIT(0) | (1) | (2) will be set, which means the value shall be 0x7.</p>
> > </div>

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

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

<code>true</code> — No constraints added by this property rule.

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

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

<code>true</code> — No constraints added by this property rule.

**Required in this object (<code>required</code>):** <a id="dt-c3225fe002b33b2b4b89"></a> <span id="dt-3c209259eee84c273e60"><code>&#34;opp&#45;hz&#34;</code></span>, <span id="dt-351e77a978737f046762"><code>&#34;opp&#45;supported&#45;hw&#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;syscon&#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-table {
    compatible = "operating-points-v2-ti-cpu";
    syscon = &lt;&amp;scm_conf&gt;;

    opp-300000000 {
        opp-hz = /bits/ 64 &lt;300000000&gt;;
        opp-microvolt = &lt;1100000 1078000 1122000&gt;;
        opp-supported-hw = &lt;0x06 0x0020&gt;;
        opp-suspend;
    };

    opp-500000000 {
        opp-hz = /bits/ 64 &lt;500000000&gt;;
        opp-microvolt = &lt;1100000 1078000 1122000&gt;;
        opp-supported-hw = &lt;0x01 0xFFFF&gt;;
    };

    opp-600000000 {
        opp-hz = /bits/ 64 &lt;600000000&gt;;
        opp-microvolt = &lt;1100000 1078000 1122000&gt;;
        opp-supported-hw = &lt;0x06 0x0040&gt;;
    };

    opp-1000000000 {
        opp-hz = /bits/ 64 &lt;1000000000&gt;;
        opp-microvolt = &lt;1325000 1298500 1351500&gt;;
        opp-supported-hw = &lt;0x04 0x0200&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>
