# MediaTek Cache Coherent Interconnect (CCI) frequency and voltage scaling

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

> Device-tree binding reference for MediaTek Cache Coherent Interconnect (CCI) frequency and voltage scaling.

<!-- 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;interconnect&#47;mediatek&#44;cci&#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;Jia&#45;Wei Chang &#60;jia&#45;wei&#46;chang&#64;mediatek&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Johnson Wang &#60;johnson&#46;wang&#64;mediatek&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">MediaTek Cache Coherent Interconnect (CCI) is a hardware engine used by
MT8183 and MT8186 SoCs to scale the frequency and adjust the voltage in
hardware. It can also optimize the voltage to reduce the power consumption.</p>
</div>

<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-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Allowed values (<code>enum</code>):** <a id="dt-617e1a2040e2496013d4"></a> <span id="dt-c31075c43df89b2793e3"><code>&#34;mediatek&#44;mt8183&#45;cci&#34;</code></span>, <span id="dt-44b402f75e7bf3caf313"><code>&#34;mediatek&#44;mt8186&#45;cci&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;mediatek&#44;mt7988&#45;cci&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;mediatek&#44;mt8183&#45;cci&#34;</code></span>

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

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

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

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

<a id="dt-41adf3ed8101eca13466"></a>

**Item 1**

> <div id="dt-4cfd4c1642ba13c357d6">
> <p style="white-space: pre-wrap">The multiplexer for clock input of the bus.</p>
> </div>

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

**Item 2**

> <div id="dt-6b79aebfd2287d4aeab8">
> <p style="white-space: pre-wrap">A parent of "bus" clock which is used as an intermediate clock source when the original clock source (PLL) is under transition and not stable yet.</p>
> </div>

<a id="dt-041d7cd76b652a5de06a"></a>

### <code>clock&#45;names</code> — required here

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-3403d68873725c15739a"><code>&#34;cci&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;intermediate&#34;</code></span>

<a id="dt-324942e28549e5e189eb"></a>

### <code>operating&#45;points&#45;v2</code> — required here

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

<a id="dt-242e482ee6fa5e68b3dc"></a>

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

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

<a id="dt-16a3e10ad264aa598d6f"></a>

### <code>proc&#45;supply</code> — required here

<div id="dt-fb6b60bb80235eea4e37">
<p style="white-space: pre-wrap">Phandle of the regulator for CCI that provides the supply voltage.</p>
</div>

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

### <code>sram&#45;supply</code> — not listed as required here

<div id="dt-737d0a9736c856c149d7">
<p style="white-space: pre-wrap">Phandle of the regulator for sram of CCI that provides the supply voltage. When it is present, the implementation needs to do "voltage tracking" to step by step scale up/down Vproc and Vsram to fit SoC specific needs. When absent, the voltage scaling flow is handled by hardware, hence no software "voltage tracking" is needed.</p>
</div>

**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;clocks&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;operating&#45;points&#45;v2&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;proc&#45;supply&#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/clock/mt8183-clk.h&gt;
cci: cci {
    compatible = "mediatek,mt8183-cci";
    clocks = &lt;&amp;mcucfg CLK_MCU_BUS_SEL&gt;,
             &lt;&amp;topckgen CLK_TOP_ARMPLL_DIV_PLL1&gt;;
    clock-names = "cci", "intermediate";
    operating-points-v2 = &lt;&amp;cci_opp&gt;;
    proc-supply = &lt;&amp;mt6358_vproc12_reg&gt;;
};

cci_opp: opp-table-cci {
    compatible = "operating-points-v2";
    opp-shared;
    opp2_00: opp-273000000 {
        opp-hz = /bits/ 64 &lt;273000000&gt;;
        opp-microvolt = &lt;650000&gt;;
    };
    opp2_01: opp-338000000 {
        opp-hz = /bits/ 64 &lt;338000000&gt;;
        opp-microvolt = &lt;687500&gt;;
    };
    opp2_02: opp-403000000 {
        opp-hz = /bits/ 64 &lt;403000000&gt;;
        opp-microvolt = &lt;718750&gt;;
    };
    opp2_03: opp-463000000 {
        opp-hz = /bits/ 64 &lt;463000000&gt;;
        opp-microvolt = &lt;756250&gt;;
    };
    opp2_04: opp-546000000 {
        opp-hz = /bits/ 64 &lt;546000000&gt;;
        opp-microvolt = &lt;800000&gt;;
    };
    opp2_05: opp-624000000 {
        opp-hz = /bits/ 64 &lt;624000000&gt;;
        opp-microvolt = &lt;818750&gt;;
    };
    opp2_06: opp-689000000 {
        opp-hz = /bits/ 64 &lt;689000000&gt;;
        opp-microvolt = &lt;850000&gt;;
    };
    opp2_07: opp-767000000 {
        opp-hz = /bits/ 64 &lt;767000000&gt;;
        opp-microvolt = &lt;868750&gt;;
    };
    opp2_08: opp-845000000 {
        opp-hz = /bits/ 64 &lt;845000000&gt;;
        opp-microvolt = &lt;893750&gt;;
    };
    opp2_09: opp-871000000 {
        opp-hz = /bits/ 64 &lt;871000000&gt;;
        opp-microvolt = &lt;906250&gt;;
    };
    opp2_10: opp-923000000 {
        opp-hz = /bits/ 64 &lt;923000000&gt;;
        opp-microvolt = &lt;931250&gt;;
    };
    opp2_11: opp-962000000 {
        opp-hz = /bits/ 64 &lt;962000000&gt;;
        opp-microvolt = &lt;943750&gt;;
    };
    opp2_12: opp-1027000000 {
        opp-hz = /bits/ 64 &lt;1027000000&gt;;
        opp-microvolt = &lt;975000&gt;;
    };
    opp2_13: opp-1092000000 {
        opp-hz = /bits/ 64 &lt;1092000000&gt;;
        opp-microvolt = &lt;1000000&gt;;
    };
    opp2_14: opp-1144000000 {
        opp-hz = /bits/ 64 &lt;1144000000&gt;;
        opp-microvolt = &lt;1025000&gt;;
    };
    opp2_15: opp-1196000000 {
        opp-hz = /bits/ 64 &lt;1196000000&gt;;
        opp-microvolt = &lt;1050000&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>
