# ARM CCI Cache Coherent Interconnect

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

> Device-tree binding reference for ARM CCI Cache Coherent Interconnect.

<!-- 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;arm&#47;arm&#44;cci&#45;400&#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;Lorenzo Pieralisi &#60;lorenzo&#46;pieralisi&#64;arm&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">ARM multi-cluster systems maintain intra-cluster coherency through a cache coherent interconnect (CCI) that is capable of monitoring bus transactions and manage coherency, TLB invalidations and memory barriers.
It allows snooping and distributed virtual memory message broadcast across clusters, through memory mapped interface, with a global control register space and multiple sets of interface control registers, one per slave interface.</p>
</div>

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

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

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;cci&#40;&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#41;&#63;&#36;&#34;</code></span>

<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;arm&#44;cci&#45;400&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;arm&#44;cci&#45;500&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;arm&#44;cci&#45;550&#34;</code></span>

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

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">Specifies base physical address of CCI control registers common to all interfaces.</p>
</div>

<a id="dt-2efe70314a961a652abe"></a>

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

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

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

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

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

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

### <code>ranges</code> — 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-c786fe6188f6f6789fdf"></a>

### <code>&#94;slave&#45;if&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

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

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

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

<a id="dt-0871c20311bb3b7a3eb5"></a>

**<code>compatible</code> — required here**

**Exact value (<code>const</code>):** <span id="dt-647d3a0b6e6c23541592"><code>&#34;arm&#44;cci&#45;400&#45;ctrl&#45;if&#34;</code></span>

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

**<code>interface&#45;type</code> — required here**

**Allowed values (<code>enum</code>):** <a id="dt-737f81e055bad7a8dd12"></a> <span id="dt-b424c46afb4c8726bb7a"><code>&#34;ace&#34;</code></span>, <span id="dt-b315472981f90dac4ae6"><code>&#34;ace&#45;lite&#34;</code></span>

<a id="dt-77e63e883c12e3540dd5"></a>

**<code>reg</code> — required here**

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

**Required in this object (<code>required</code>):** <a id="dt-809a3c2bcd98e8aee348"></a> <span id="dt-7c498fa0a4fb36fb1db0"><code>&#34;compatible&#34;</code></span>, <span id="dt-c368bcc5bdeb70acb05f"><code>&#34;interface&#45;type&#34;</code></span>, <span id="dt-f10883e7571c5bbb0ff5"><code>&#34;reg&#34;</code></span>

<a id="dt-d2738bffe4c7bc85c1e3"></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-aaf970024845e45117ab"></a>

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

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

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

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

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

**<code>compatible</code> — required here**

<a id="dt-18bd5e4565816a2e9a75"></a>

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

<a id="dt-1381e75ec6db1cdd9a8a"></a>

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-c663e866f5d532d38abd"><code>&#34;arm&#44;cci&#45;400&#45;pmu&#44;r0&#34;</code></span>

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

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-5485cb4d40849e7a9277"><code>&#34;arm&#44;cci&#45;400&#45;pmu&#44;r1&#34;</code></span>

<a id="dt-6ed8891735ef5fef2803"></a>

**Rule 3**

> **Exact value (<code>const</code>):** <span id="dt-4a3378ea888090cd01b9"><code>&#34;arm&#44;cci&#45;400&#45;pmu&#34;</code></span>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-43ef67a52c58c900b86a"><code>true</code></span>
>
> <div id="dt-8817259eb9c6aec223b0">
> <p style="white-space: pre-wrap">Permitted only where OS has secure access to CCI registers</p>
> </div>

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

**Rule 4**

> **Exact value (<code>const</code>):** <span id="dt-67ea61991635c4d50668"><code>&#34;arm&#44;cci&#45;500&#45;pmu&#44;r0&#34;</code></span>

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

**Rule 5**

> **Exact value (<code>const</code>):** <span id="dt-d1b76c2567aff613bdc8"><code>&#34;arm&#44;cci&#45;550&#45;pmu&#44;r0&#34;</code></span>

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

**<code>interrupts</code> — required here**

**Minimum number of items (<code>minItems</code>):** <span id="dt-c6042422d2c05502fca8"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-f26903b1c7fb3f3837f7"><code>8</code></span>

<div id="dt-be2535053bc07ddecbaf">
<p style="white-space: pre-wrap">List of counter overflow interrupts, one per counter. The interrupts must be specified starting with the cycle counter overflow interrupt, followed by counter0 overflow interrupt, counter1 overflow interrupt,...  ,counterN overflow interrupt.
The CCI PMU has an interrupt signal for each counter. The number of interrupts must be equal to the number of counters.</p>
</div>

<a id="dt-34e61176f8420f545b77"></a>

**<code>reg</code> — required here**

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

**Required in this object (<code>required</code>):** <a id="dt-01cebad15a5e88386707"></a> <span id="dt-1b57aa181cf10e39f27a"><code>&#34;compatible&#34;</code></span>, <span id="dt-0d043a7661ae9b93c77f"><code>&#34;interrupts&#34;</code></span>, <span id="dt-d60ee326a382027d295e"><code>&#34;reg&#34;</code></span>

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

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;&#35;size&#45;cells&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;compatible&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;ranges&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;reg&#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">/ {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

    compatible = "arm,vexpress,v2p-ca15_a7", "arm,vexpress";
    model = "V2P-CA15_CA7";
    arm,hbi = &lt;0x249&gt;;
    interrupt-parent = &lt;&amp;gic&gt;;

    gic: interrupt-controller {
        interrupt-controller;
        #interrupt-cells = &lt;3&gt;;
    };

    /*
     * This CCI node corresponds to a CCI component whose control
     * registers sits at address 0x000000002c090000.
     *
     * CCI slave interface @0x000000002c091000 is connected to dma
     * controller dma0.
     *
     * CCI slave interface @0x000000002c094000 is connected to CPUs
     * {CPU0, CPU1};
     *
     * CCI slave interface @0x000000002c095000 is connected to CPUs
     * {CPU2, CPU3};
     */

    cpus {
        #size-cells = &lt;0&gt;;
        #address-cells = &lt;1&gt;;

        CPU0: cpu@0 {
            device_type = "cpu";
            compatible = "arm,cortex-a15";
            cci-control-port = &lt;&amp;cci_control1&gt;;
            reg = &lt;0x0&gt;;
        };

        CPU1: cpu@1 {
            device_type = "cpu";
            compatible = "arm,cortex-a15";
            cci-control-port = &lt;&amp;cci_control1&gt;;
            reg = &lt;0x1&gt;;
        };

        CPU2: cpu@100 {
            device_type = "cpu";
            compatible = "arm,cortex-a7";
            cci-control-port = &lt;&amp;cci_control2&gt;;
            reg = &lt;0x100&gt;;
        };

        CPU3: cpu@101 {
            device_type = "cpu";
            compatible = "arm,cortex-a7";
            cci-control-port = &lt;&amp;cci_control2&gt;;
            reg = &lt;0x101&gt;;
        };
    };

    cci@2c090000 {
        compatible = "arm,cci-400";
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;1&gt;;
        reg = &lt;0x0 0x2c090000 0 0x1000&gt;;
        ranges = &lt;0x0 0x0 0x2c090000 0x10000&gt;;

        cci_control0: slave-if@1000 {
            compatible = "arm,cci-400-ctrl-if";
            interface-type = "ace-lite";
            reg = &lt;0x1000 0x1000&gt;;
        };

        cci_control1: slave-if@4000 {
            compatible = "arm,cci-400-ctrl-if";
            interface-type = "ace";
            reg = &lt;0x4000 0x1000&gt;;
        };

        cci_control2: slave-if@5000 {
            compatible = "arm,cci-400-ctrl-if";
            interface-type = "ace";
            reg = &lt;0x5000 0x1000&gt;;
        };

        pmu@9000 {
            compatible = "arm,cci-400-pmu";
            reg = &lt;0x9000 0x5000&gt;;
            interrupts = &lt;0 101 4&gt;,
              &lt;0 102 4&gt;,
              &lt;0 103 4&gt;,
              &lt;0 104 4&gt;,
              &lt;0 105 4&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>
