Skip to content

Commit 2eb6836

Browse files
Pritesh201192ConchuOD
authored andcommitted
dt-bindings: cache: sifive,ccache0: Add ESWIN EIC7700 SoC compatibility
This cache controller is also used on the ESWIN EIC7700 SoC. However, it have 256KB private L2 Cache and shared L3 Cache of 4MB. So add dedicated compatible string for it. Signed-off-by: Pritesh Patel <[email protected]> Reviewed-by: Samuel Holland <[email protected]> Signed-off-by: Pinkesh Vaghela <[email protected]> Signed-off-by: Conor Dooley <[email protected]>
1 parent 0af2f6b commit 2eb6836

File tree

1 file changed

+41
-3
lines changed

1 file changed

+41
-3
lines changed

Documentation/devicetree/bindings/cache/sifive,ccache0.yaml

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ properties:
3939
- const: cache
4040
- items:
4141
- enum:
42+
- eswin,eic7700-l3-cache
4243
- starfive,jh7100-ccache
4344
- starfive,jh7110-ccache
4445
- const: sifive,ccache0
@@ -55,10 +56,10 @@ properties:
5556
enum: [2, 3]
5657

5758
cache-sets:
58-
enum: [1024, 2048]
59+
enum: [1024, 2048, 4096]
5960

6061
cache-size:
61-
const: 2097152
62+
enum: [2097152, 4194304]
6263

6364
cache-unified: true
6465

@@ -89,6 +90,7 @@ allOf:
8990
compatible:
9091
contains:
9192
enum:
93+
- eswin,eic7700-l3-cache
9294
- sifive,fu740-c000-ccache
9395
- starfive,jh7100-ccache
9496
- starfive,jh7110-ccache
@@ -108,6 +110,22 @@ allOf:
108110
Must contain entries for DirError, DataError and DataFail signals.
109111
maxItems: 3
110112

113+
- if:
114+
properties:
115+
compatible:
116+
contains:
117+
const: eswin,eic7700-l3-cache
118+
119+
then:
120+
properties:
121+
cache-size:
122+
const: 4194304
123+
124+
else:
125+
properties:
126+
cache-size:
127+
const: 2097152
128+
111129
- if:
112130
properties:
113131
compatible:
@@ -122,11 +140,31 @@ allOf:
122140
cache-sets:
123141
const: 2048
124142

125-
else:
143+
- if:
144+
properties:
145+
compatible:
146+
contains:
147+
enum:
148+
- microchip,mpfs-ccache
149+
- sifive,fu540-c000-ccache
150+
151+
then:
126152
properties:
127153
cache-sets:
128154
const: 1024
129155

156+
- if:
157+
properties:
158+
compatible:
159+
contains:
160+
enum:
161+
- eswin,eic7700-l3-cache
162+
163+
then:
164+
properties:
165+
cache-sets:
166+
const: 4096
167+
130168
- if:
131169
properties:
132170
compatible:

0 commit comments

Comments
 (0)