Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <yash.shah@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>

authored by

Yash Shah and committed by
Palmer Dabbelt
af951c3a 21855cac

+30 -4
+30 -4
Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml
··· 27 27 items: 28 28 - enum: 29 29 - sifive,fu540-c000-ccache 30 + - sifive,fu740-c000-ccache 30 31 31 32 required: 32 33 - compatible ··· 35 34 properties: 36 35 compatible: 37 36 items: 38 - - const: sifive,fu540-c000-ccache 37 + - enum: 38 + - sifive,fu540-c000-ccache 39 + - sifive,fu740-c000-ccache 39 40 - const: cache 40 41 41 42 cache-block-size: ··· 55 52 cache-unified: true 56 53 57 54 interrupts: 58 - description: | 59 - Must contain entries for DirError, DataError and DataFail signals. 60 55 minItems: 3 61 - maxItems: 3 56 + maxItems: 4 57 + items: 58 + - description: DirError interrupt 59 + - description: DataError interrupt 60 + - description: DataFail interrupt 61 + - description: DirFail interrupt 62 62 63 63 reg: 64 64 maxItems: 1 ··· 72 66 description: | 73 67 The reference to the reserved-memory for the L2 Loosely Integrated Memory region. 74 68 The reserved memory node should be defined as per the bindings in reserved-memory.txt. 69 + 70 + if: 71 + properties: 72 + compatible: 73 + contains: 74 + const: sifive,fu540-c000-ccache 75 + 76 + then: 77 + properties: 78 + interrupts: 79 + description: | 80 + Must contain entries for DirError, DataError and DataFail signals. 81 + maxItems: 3 82 + 83 + else: 84 + properties: 85 + interrupts: 86 + description: | 87 + Must contain entries for DirError, DataError, DataFail, DirFail signals. 88 + minItems: 4 75 89 76 90 additionalProperties: false 77 91