# Andestech AX45MP L2 Cache Controller

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

> Device-tree binding reference for Andestech AX45MP L2 Cache Controller.

<!-- SPDX-License-Identifier: (GPL-2.0 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;cache&#47;andestech&#44;ax45mp&#45;cache&#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;Lad Prabhakar &#60;prabhakar&#46;mahadev&#45;lad&#46;rj&#64;bp&#46;renesas&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">A level-2 cache (L2C) is used to improve the system performance by providing a large amount of cache line entries and reasonable access delays. The L2C is shared between cores, and a non-inclusive non-exclusive policy is used.</p>
</div>

<a id="dt-865ef19e891fb9fe7b15"></a>

## Automatic schema selection (<code>select</code>)

> <a id="dt-54d143fae2406295c883"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-e3400bab629503b08322"></a>
>
> #### <code>compatible</code> — required here
>
> <a id="dt-2ae4f0f9580bb5b2e406"></a>
>
> **Rule for matching array elements (<code>contains</code>)**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-ce9b069a8031ff280c23"></a> <span id="dt-e79f31d4eec3cf736314"><code>&#34;andestech&#44;ax45mp&#45;cache&#34;</code></span>
>
> **Required in this object (<code>required</code>):** <a id="dt-c7b135d3aebb6d627788"></a> <span id="dt-7b7a89ef483af1198868"><code>&#34;compatible&#34;</code></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-cc3709943397035582d2"></a>

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

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

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;andestech&#44;qilai&#45;ax45mp&#45;cache&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;renesas&#44;r9a07g043f&#45;ax45mp&#45;cache&#34;</code></span>

<a id="dt-0891c69625632ea817fd"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-f1f862a3cfab3ac620c8"><code>&#34;andestech&#44;ax45mp&#45;cache&#34;</code></span>

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

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-985600cab9ae8398068d"><code>&#34;cache&#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>

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

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

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

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

### <code>cache&#45;line&#45;size</code> — required here

**Exact value (<code>const</code>):** <span id="dt-a6b0ec8d298b9ad8ecab"><code>64</code></span>

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

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

**Exact value (<code>const</code>):** <span id="dt-8fc8f436443351ff3c77"><code>2</code></span>

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

### <code>cache&#45;sets</code> — required here

**Allowed values (<code>enum</code>):** <a id="dt-21a008da40027296851f"></a> <span id="dt-6d76680c41745f937138"><code>1024</code></span>, <span id="dt-d6d715b44098ac770dda"><code>2048</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-65b18b4b5a3f26810e7e"></a> <span id="dt-fbcfce3a2a690107c384"><code>131072</code></span>, <span id="dt-709e31b9df47b16aac64"><code>262144</code></span>, <span id="dt-98f86beca4b95e0f306e"><code>524288</code></span>, <span id="dt-83e2e826485223b8591c"><code>1048576</code></span>, <span id="dt-bc24f84b8038b528feca"><code>2097152</code></span>

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

### <code>cache&#45;unified</code> — required here

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

<a id="dt-82b375bc8a7b9533ccbc"></a>

### <code>next&#45;level&#45;cache</code> — not listed as required here

<code>true</code> — No constraints added by this property 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.

**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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;cache&#45;line&#45;size&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;cache&#45;level&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;cache&#45;sets&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;cache&#45;size&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;cache&#45;unified&#34;</code></span>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-97f47e9dc804c839f86d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bbadeeb73dfaefabae79"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-ebe43a424f4497a78746"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8997992e7087b5549d86"><code>&#34;andestech&#44;qilai&#45;ax45mp&#45;cache&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-b212c2ef78c22fab2e20"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bb827d32fdd1ad63521d"></a>
> >
> > **<code>cache&#45;sets</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-abb2f2c37e8c4c1f63ae"><code>2048</code></span>
> >
> > <a id="dt-029ec88623de97e47043"></a>
> >
> > **<code>cache&#45;size</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-f23b7f7e3dd9f907fcda"><code>2097152</code></span>
>
> <a id="dt-f985d6aaa3f73a650205"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-0b56c96a40292905ded0"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-fc81e989691d4da333d5"></a>
> >
> > **<code>cache&#45;sets</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-7b92bea4cbf3c5dd42a7"><code>1024</code></span>

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

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

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

cache-controller@13400000 {
    compatible = "renesas,r9a07g043f-ax45mp-cache", "andestech,ax45mp-cache",
                 "cache";
    reg = &lt;0x13400000 0x100000&gt;;
    interrupts = &lt;508 IRQ_TYPE_LEVEL_HIGH&gt;;
    cache-line-size = &lt;64&gt;;
    cache-level = &lt;2&gt;;
    cache-sets = &lt;1024&gt;;
    cache-size = &lt;262144&gt;;
    cache-unified;
};
</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 OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright (C) 2023 Renesas Electronics Corp.</span></p>

</details>
