Skip to content

Commit dfd5a60

Browse files
VynDragonkartben
authored andcommitted
dts: cache: Add bflb,l1c binding
Adds binding for the bflb L1C cache control Signed-off-by: Camille BAUD <[email protected]>
1 parent 3c1bb43 commit dfd5a60

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

dts/bindings/cache/bflb,l1c.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#
2+
# Copyright (c) 2025 MASSDRIVER EI <massdriver.space>
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
description: |
8+
Bouffalo Lab L1C cache control.
9+
10+
The node should be added in the soc group and be provided disabled ways
11+
12+
soc {
13+
14+
...
15+
16+
cache {
17+
compatible = "bflb,l1c";
18+
dcache-ways-disabled = <0>;
19+
};
20+
21+
...
22+
23+
};
24+
25+
The cache configuration is specific to the platform, this only provides controls for it.
26+
27+
compatible: "bflb,l1c"
28+
29+
include: base.yaml
30+
31+
properties:
32+
dcache-ways-disabled:
33+
type: int
34+
required: true
35+
description: How many data cache lines are disabled and used as instruction cache lines.
36+
enum:
37+
- 0
38+
- 1
39+
- 2
40+
- 3
41+
- 4

0 commit comments

Comments
 (0)