# Allwinner H6 CPU OPP

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

> Device-tree binding reference for Allwinner H6 CPU OPP.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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;allwinner&#44;sun50i&#45;h6&#45;operating&#45;points&#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;Chen&#45;Yu Tsai &#60;wens&#64;csie&#46;org&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Maxime Ripard &#60;mripard&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">For some SoCs, the CPU frequency subset and voltage value of each
OPP varies based on the silicon variant in use. Allwinner Process
Voltage Scaling Tables define the voltage and frequency values based
on the speedbin blown in the efuse combination.</p>
</div>

<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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;allwinner&#44;sun50i&#45;a100&#45;operating&#45;points&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;allwinner&#44;sun50i&#45;h6&#45;operating&#45;points&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;allwinner&#44;sun50i&#45;h616&#45;operating&#45;points&#34;</code></span>

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

### <code>nvmem&#45;cells</code> — required here

<div id="dt-6e22bea212c5f15c1ddb">
<p style="white-space: pre-wrap">A phandle pointing to a nvmem-cells node representing the efuse
register that has information about the speedbin that is used
to select the right frequency/voltage value pair. Please refer
to the nvmem-cells bindings in
Documentation/devicetree/bindings/nvmem/nvmem.yaml and also the
examples below.</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.

**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;nvmem&#45;cells&#34;</code></span>

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

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

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

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

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

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

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

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

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

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

<a id="dt-5c863292a044c09aad6c"></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-a1ccd2aefe116c018ad2"></a>

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

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

<a id="dt-67d716b300fa5eb72594"></a>

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

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

<div id="dt-48cba95c9cd9d3d29e86">
<p style="white-space: pre-wrap">A single 32 bit bitmap value, representing compatible HW, one bit per speed bin index.</p>
</div>

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

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

<a id="dt-7a6e6c99412e0f640d3c"></a>

**<code>&#94;opp&#45;microvolt&#45;speed&#91;0&#45;9&#93;&#36;</code> — name matches this regular expression**

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

**Required in this object (<code>required</code>):** <a id="dt-1f9e9c9f6245339c3923"></a> <span id="dt-7ea7d65f5825048e7ce7"><code>&#34;opp&#45;hz&#34;</code></span>

<a id="dt-54b01a7abb6ea2db8563"></a>

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

<code>false</code>

Not allowed by this rule.

<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">cpu_opp_table: opp-table {
    compatible = "allwinner,sun50i-h6-operating-points";
    nvmem-cells = &lt;&amp;speedbin_efuse&gt;;
    opp-shared;

    opp-480000000 {
        clock-latency-ns = &lt;244144&gt;; /* 8 32k periods */
        opp-hz = /bits/ 64 &lt;480000000&gt;;

        opp-microvolt-speed0 = &lt;880000&gt;;
        opp-microvolt-speed1 = &lt;820000&gt;;
        opp-microvolt-speed2 = &lt;800000&gt;;
    };

    opp-1080000000 {
        clock-latency-ns = &lt;244144&gt;; /* 8 32k periods */
        opp-hz = /bits/ 64 &lt;1080000000&gt;;

        opp-microvolt-speed0 = &lt;1060000&gt;;
        opp-microvolt-speed1 = &lt;880000&gt;;
        opp-microvolt-speed2 = &lt;840000&gt;;
    };

    opp-1488000000 {
        clock-latency-ns = &lt;244144&gt;; /* 8 32k periods */
        opp-hz = /bits/ 64 &lt;1488000000&gt;;

        opp-microvolt-speed0 = &lt;1160000&gt;;
        opp-microvolt-speed1 = &lt;1000000&gt;;
        opp-microvolt-speed2 = &lt;960000&gt;;
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">opp-table {
    compatible = "allwinner,sun50i-h616-operating-points";
    nvmem-cells = &lt;&amp;speedbin_efuse&gt;;
    opp-shared;

    opp-480000000 {
        clock-latency-ns = &lt;244144&gt;; /* 8 32k periods */
        opp-hz = /bits/ 64 &lt;480000000&gt;;

        opp-microvolt = &lt;900000&gt;;
        opp-supported-hw = &lt;0x1f&gt;;
    };

    opp-792000000 {
        clock-latency-ns = &lt;244144&gt;; /* 8 32k periods */
        opp-hz = /bits/ 64 &lt;792000000&gt;;

        opp-microvolt-speed1 = &lt;900000&gt;;
        opp-microvolt-speed4 = &lt;940000&gt;;
        opp-supported-hw = &lt;0x12&gt;;
    };

    opp-1512000000 {
        clock-latency-ns = &lt;244144&gt;; /* 8 32k periods */
        opp-hz = /bits/ 64 &lt;1512000000&gt;;

        opp-microvolt = &lt;1100000&gt;;
        opp-supported-hw = &lt;0x0a&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</span></p>

</details>
