Skip to content

Commit a0d8572

Browse files
ConchuODAlexandre Ghiti
authored andcommitted
dt-bindings: riscv: document vector crypto requirements
The Unpriv spec states: | The Zvknhb and Zvbc Vector Crypto Extensions --and accordingly the | composite extensions Zvkn, Zvknc, Zvkng, and Zvksc-- require a Zve64x | base, or application ("V") base Vector Extension. All of the other | Vector Crypto Extensions can be built on any embedded (Zve*) or | application ("V") base Vector Extension. Enforce the minimum requirement via schema. Link: https://github.com/riscv/riscv-isa-manual/blob/main/src/vector-crypto.adoc#extensions-overview Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20250312-flask-relay-b36ee622b2c8@spud Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
1 parent e9f1d61 commit a0d8572

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Documentation/devicetree/bindings/riscv/extensions.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,39 @@ properties:
726726
- contains:
727727
const: zve64f
728728

729+
- if:
730+
contains:
731+
anyOf:
732+
- const: zvbc
733+
- const: zvkn
734+
- const: zvknc
735+
- const: zvkng
736+
- const: zvknhb
737+
- const: zvksc
738+
then:
739+
contains:
740+
anyOf:
741+
- const: v
742+
- const: zve64x
743+
744+
- if:
745+
contains:
746+
anyOf:
747+
- const: zvbb
748+
- const: zvkb
749+
- const: zvkg
750+
- const: zvkned
751+
- const: zvknha
752+
- const: zvksed
753+
- const: zvksh
754+
- const: zvks
755+
- const: zvkt
756+
then:
757+
contains:
758+
anyOf:
759+
- const: v
760+
- const: zve32x
761+
729762
allOf:
730763
# Zcf extension does not exist on rv64
731764
- if:

0 commit comments

Comments
 (0)