Skip to content

Commit af951c3

Browse files
yashshah7palmer-dabbelt
authored andcommitted
dt-bindings: riscv: Update l2 cache DT documentation to add support for SiFive FU740
The L2 cache controller in SiFive FU740 has 4 ECC interrupt sources as compared to 3 in FU540. Update the DT documentation accordingly with "compatible" and "interrupt" property changes. Signed-off-by: Yash Shah <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 21855ca commit af951c3

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@ select:
2727
items:
2828
- enum:
2929
- sifive,fu540-c000-ccache
30+
- sifive,fu740-c000-ccache
3031

3132
required:
3233
- compatible
3334

3435
properties:
3536
compatible:
3637
items:
37-
- const: sifive,fu540-c000-ccache
38+
- enum:
39+
- sifive,fu540-c000-ccache
40+
- sifive,fu740-c000-ccache
3841
- const: cache
3942

4043
cache-block-size:
@@ -52,10 +55,13 @@ properties:
5255
cache-unified: true
5356

5457
interrupts:
55-
description: |
56-
Must contain entries for DirError, DataError and DataFail signals.
5758
minItems: 3
58-
maxItems: 3
59+
maxItems: 4
60+
items:
61+
- description: DirError interrupt
62+
- description: DataError interrupt
63+
- description: DataFail interrupt
64+
- description: DirFail interrupt
5965

6066
reg:
6167
maxItems: 1
@@ -67,6 +73,26 @@ properties:
6773
The reference to the reserved-memory for the L2 Loosely Integrated Memory region.
6874
The reserved memory node should be defined as per the bindings in reserved-memory.txt.
6975
76+
if:
77+
properties:
78+
compatible:
79+
contains:
80+
const: sifive,fu540-c000-ccache
81+
82+
then:
83+
properties:
84+
interrupts:
85+
description: |
86+
Must contain entries for DirError, DataError and DataFail signals.
87+
maxItems: 3
88+
89+
else:
90+
properties:
91+
interrupts:
92+
description: |
93+
Must contain entries for DirError, DataError, DataFail, DirFail signals.
94+
minItems: 4
95+
7096
additionalProperties: false
7197

7298
required:

0 commit comments

Comments
 (0)