# Qualcomm Adreno compatible OPP supply

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

> Device-tree binding reference for Qualcomm Adreno 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;opp&#45;v2&#45;qcom&#45;adreno&#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">Adreno GPUs present in Qualcomm's Snapdragon chipsets uses an OPP specific ACD related information tailored for the specific chipset. This binding provides the information needed to describe such a hardware value.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Rob Clark &#60;robdclark&#64;gmail&#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

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

#### Rule for matching array elements (<code>contains</code>)

> **Exact value (<code>const</code>):** <span id="dt-ff3eaf4463f1c113a4cd"><code>&#34;operating&#45;points&#45;v2&#45;adreno&#34;</code></span>

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

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

<a id="dt-781bab0e37ca77f805ac"></a>

### <code>&#94;opp&#40;&#45;&#91;0&#45;9&#93;&#43;&#41;&#123;1&#44;2&#125;&#36;</code> — name matches this regular expression

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

<a id="dt-377a25da1c5c083fbfd4"></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-eb33017d64eae339af53"></a>

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

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

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

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

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

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

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

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

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

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

<a id="dt-94ef065b65a00e1e1e30"></a>

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

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

<a id="dt-51f1e5ffb13c428f929c"></a>

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

<div id="dt-bac3b5198e23a8e59bae">
<p style="white-space: pre-wrap">A positive value representing the ACD (Adaptive Clock Distribution,
a fancy name for clk throttling during voltage droop) level associated
with this OPP node. This value is shared to a co-processor inside GPU
(called Graphics Management Unit a.k.a GMU) during wake up. It may not
be present for some OPPs and GMU will disable ACD while transitioning
to that OPP. This value encodes a voltage threshold, delay cycles &amp;
calibration margins which are identified by characterization of the
SoC. So, it doesn't have any unit. This data is passed to GMU firmware
via 'HFI_H2F_MSG_ACD' packet.</p>
</div>

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

**Required in this object (<code>required</code>):** <a id="dt-b50b2f2751f1a6db843a"></a> <span id="dt-eef7b89d687cd49b3ead"><code>&#34;opp&#45;hz&#34;</code></span>, <span id="dt-35665458241804c5ff31"><code>&#34;opp&#45;level&#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>false</code>

Not allowed by this rule.

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/power/qcom-rpmpd.h&gt;

gpu_opp_table: opp-table {
    compatible = "operating-points-v2-adreno", "operating-points-v2";

    opp-687000000 {
        opp-hz = /bits/ 64 &lt;687000000&gt;;
        opp-level = &lt;RPMH_REGULATOR_LEVEL_SVS_L1&gt;;
        opp-peak-kBps = &lt;8171875&gt;;
        qcom,opp-acd-level = &lt;0x882e5ffd&gt;;
    };

    opp-550000000 {
        opp-hz = /bits/ 64 &lt;550000000&gt;;
        opp-level = &lt;RPMH_REGULATOR_LEVEL_SVS&gt;;
        opp-peak-kBps = &lt;6074219&gt;;
        qcom,opp-acd-level = &lt;0xc0285ffd&gt;;
    };

    opp-390000000 {
        opp-hz = /bits/ 64 &lt;390000000&gt;;
        opp-level = &lt;RPMH_REGULATOR_LEVEL_LOW_SVS&gt;;
        opp-peak-kBps = &lt;3000000&gt;;
        qcom,opp-acd-level = &lt;0xc0285ffd&gt;;
    };

    opp-300000000 {
        opp-hz = /bits/ 64 &lt;300000000&gt;;
        opp-level = &lt;RPMH_REGULATOR_LEVEL_LOW_SVS_D1&gt;;
        opp-peak-kBps = &lt;2136719&gt;;
        /* Intentionally left out qcom,opp-acd-level property here */
    };

};
</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>
