Skip to content

Commit 2313fca

Browse files
fancerarndb
authored andcommitted
dt-bindings: memory: Add Baikal-T1 L2-cache Control Block binding
There is a single register provided by the SoC system controller, which can be used to tune the L2-cache RAM up. It only provides a way to change the L2-RAM access latencies. So aside from "be,bt1-l2-ctl" compatible string the device node can be optionally equipped with the properties of Tag/Data/WS latencies. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Serge Semin <[email protected]> Cc: Alexey Malahov <[email protected]> Cc: Paul Burton <[email protected]> Cc: Olof Johansson <[email protected]> Cc: [email protected] Cc: [email protected] Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 83ca8b3 commit 2313fca

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
# Copyright (C) 2020 BAIKAL ELECTRONICS, JSC
3+
%YAML 1.2
4+
---
5+
$id: http://devicetree.org/schemas/memory-controllers/baikal,bt1-l2-ctl.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: Baikal-T1 L2-cache Control Block
9+
10+
maintainers:
11+
- Serge Semin <[email protected]>
12+
13+
description: |
14+
By means of the System Controller Baikal-T1 SoC exposes a few settings to
15+
tune the MIPS P5600 CM2 L2 cache performance up. In particular it's possible
16+
to change the Tag, Data and Way-select RAM access latencies. Baikal-T1
17+
L2-cache controller block is responsible for the tuning. Its DT node is
18+
supposed to be a child of the system controller.
19+
20+
properties:
21+
compatible:
22+
const: baikal,bt1-l2-ctl
23+
24+
reg:
25+
maxItems: 1
26+
27+
baikal,l2-ws-latency:
28+
$ref: /schemas/types.yaml#/definitions/uint32
29+
description: Cycles of latency for Way-select RAM accesses
30+
default: 0
31+
minimum: 0
32+
maximum: 3
33+
34+
baikal,l2-tag-latency:
35+
$ref: /schemas/types.yaml#/definitions/uint32
36+
description: Cycles of latency for Tag RAM accesses
37+
default: 0
38+
minimum: 0
39+
maximum: 3
40+
41+
baikal,l2-data-latency:
42+
$ref: /schemas/types.yaml#/definitions/uint32
43+
description: Cycles of latency for Data RAM accesses
44+
default: 1
45+
minimum: 0
46+
maximum: 3
47+
48+
additionalProperties: false
49+
50+
required:
51+
- compatible
52+
53+
examples:
54+
- |
55+
l2@1f04d028 {
56+
compatible = "baikal,bt1-l2-ctl";
57+
reg = <0x1f04d028 0x004>;
58+
59+
baikal,l2-ws-latency = <1>;
60+
baikal,l2-tag-latency = <1>;
61+
baikal,l2-data-latency = <2>;
62+
};
63+
...

0 commit comments

Comments
 (0)