# Baikal-T1 L2-cache Control Block

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

> Device-tree binding reference for Baikal-T1 L2-cache Control Block.

<!-- 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;cache&#47;baikal&#44;bt1&#45;l2&#45;ctl&#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;Serge Semin &#60;fancer&#46;lancer&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">By means of the System Controller Baikal-T1 SoC exposes a few settings to
tune the MIPS P5600 CM2 L2 cache performance up. In particular it's possible
to change the Tag, Data and Way-select RAM access latencies. Baikal-T1
L2-cache controller block is responsible for the tuning. Its DT node is
supposed to be a child of the system controller.</p>
</div>

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

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

<a id="dt-5c1d81699dcbe840de83"></a>

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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;baikal&#44;bt1&#45;l2&#45;ctl&#34;</code></span>

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

### <code>reg</code> — not listed as required here

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

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

### <code>baikal&#44;l2&#45;ws&#45;latency</code> — not listed as required here

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

<div id="dt-ff9547e4de96bb8a4dab">
<p style="white-space: pre-wrap">Cycles of latency for Way-select RAM accesses</p>
</div>

**Default value (<code>default</code>):** <span id="dt-742db42c9f3f9f96da7a"><code>0</code></span>

**Minimum value (<code>minimum</code>):** <span id="dt-67af000ee2da8cd8b587"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-a6c534bc93aef67cb259"><code>3</code></span>

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

### <code>baikal&#44;l2&#45;tag&#45;latency</code> — not listed as required here

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

<div id="dt-4447f7fc050399f40c5e">
<p style="white-space: pre-wrap">Cycles of latency for Tag RAM accesses</p>
</div>

**Default value (<code>default</code>):** <span id="dt-09249740634c3da61fc0"><code>0</code></span>

**Minimum value (<code>minimum</code>):** <span id="dt-3b48fe6792211ffe49cd"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-2220384fdb53394351a5"><code>3</code></span>

<a id="dt-900893db4a687c9ddb1a"></a>

### <code>baikal&#44;l2&#45;data&#45;latency</code> — not listed as required here

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

<div id="dt-5ebeb3a8c55a7a2efe5f">
<p style="white-space: pre-wrap">Cycles of latency for Data RAM accesses</p>
</div>

**Default value (<code>default</code>):** <span id="dt-8c56123b970c01573f79"><code>1</code></span>

**Minimum value (<code>minimum</code>):** <span id="dt-09df6128d7f5571e7279"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-6f12d07148908462c156"><code>3</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.

**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-1a130cabaa8a47b058bf"></a>

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">l2@1f04d028 {
  compatible = "baikal,bt1-l2-ctl";
  reg = &lt;0x1f04d028 0x004&gt;;

  baikal,l2-ws-latency = &lt;1&gt;;
  baikal,l2-tag-latency = &lt;1&gt;;
  baikal,l2-data-latency = &lt;2&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>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright (C) 2020 BAIKAL ELECTRONICS, JSC</span></p>

</details>
