Skip to content

Commit e9f1d61

Browse files
ConchuODAlexandre Ghiti
authored andcommitted
dt-bindings: riscv: add vector sub-extension dependencies
Section 33.18.2. Zve*: Vector Extensions for Embedded Processors in [1] says: | The Zve32f and Zve64x extensions depend on the Zve32x extension. The Zve64f extension depends | on the Zve32f and Zve64x extensions. The Zve64d extension depends on the Zve64f extension | The Zve32x extension depends on the Zicsr extension. The Zve32f and Zve64f extensions depend | upon the F extension | The Zve64d extension depends upon the D extension Apply these rules to the bindings to help prevent invalid combinations. Link: https://github.com/riscv/riscv-isa-manual/releases/tag/riscv-isa-release-698e64a-2024-09-09 [1] Reviewed-by: Clément Léger <cleger@rivosinc.com> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20250312-banking-crestless-58f3259a5018@spud Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
1 parent 534d813 commit e9f1d61

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

Documentation/devicetree/bindings/riscv/extensions.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,52 @@ properties:
680680
contains:
681681
const: zca
682682

683+
- if:
684+
contains:
685+
const: zve32x
686+
then:
687+
contains:
688+
const: zicsr
689+
690+
- if:
691+
contains:
692+
const: zve32f
693+
then:
694+
allOf:
695+
- contains:
696+
const: f
697+
- contains:
698+
const: zve32x
699+
700+
- if:
701+
contains:
702+
const: zve64x
703+
then:
704+
contains:
705+
const: zve32x
706+
707+
- if:
708+
contains:
709+
const: zve64f
710+
then:
711+
allOf:
712+
- contains:
713+
const: f
714+
- contains:
715+
const: zve32f
716+
- contains:
717+
const: zve64x
718+
719+
- if:
720+
contains:
721+
const: zve64d
722+
then:
723+
allOf:
724+
- contains:
725+
const: d
726+
- contains:
727+
const: zve64f
728+
683729
allOf:
684730
# Zcf extension does not exist on rv64
685731
- if:

0 commit comments

Comments
 (0)