Skip to content

Commit 35bc188

Browse files
inochisaAlexandre Ghiti
authored andcommitted
dt-bindings: riscv: add bfloat16 ISA extension description
Add description for the BFloat16 precision Floating-Point ISA extension, (Zfbfmin, Zvfbfmin, Zvfbfwma). which was ratified in commit 4dc23d62 ("Added Chapter title to BF16") of the riscv-isa-manual. Signed-off-by: Inochi Amaoto <[email protected]> Acked-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Ghiti <[email protected]>
1 parent 75ad023 commit 35bc188

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

Documentation/devicetree/bindings/riscv/extensions.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,12 @@ properties:
329329
instructions, as ratified in commit 056b6ff ("Zfa is ratified") of
330330
riscv-isa-manual.
331331

332+
- const: zfbfmin
333+
description:
334+
The standard Zfbfmin extension which provides minimal support for
335+
16-bit half-precision brain floating-point instructions, as ratified
336+
in commit 4dc23d62 ("Added Chapter title to BF16") of riscv-isa-manual.
337+
332338
- const: zfh
333339
description:
334340
The standard Zfh extension for 16-bit half-precision binary
@@ -525,6 +531,18 @@ properties:
525531
in commit 6f702a2 ("Vector extensions are now ratified") of
526532
riscv-v-spec.
527533

534+
- const: zvfbfmin
535+
description:
536+
The standard Zvfbfmin extension for minimal support for vectored
537+
16-bit half-precision brain floating-point instructions, as ratified
538+
in commit 4dc23d62 ("Added Chapter title to BF16") of riscv-isa-manual.
539+
540+
- const: zvfbfwma
541+
description:
542+
The standard Zvfbfwma extension for vectored half-precision brain
543+
floating-point widening multiply-accumulate instructions, as ratified
544+
in commit 4dc23d62 ("Added Chapter title to BF16") of riscv-isa-manual.
545+
528546
- const: zvfh
529547
description:
530548
The standard Zvfh extension for vectored half-precision
@@ -663,6 +681,33 @@ properties:
663681
then:
664682
contains:
665683
const: zca
684+
# Zfbfmin depends on F
685+
- if:
686+
contains:
687+
const: zfbfmin
688+
then:
689+
contains:
690+
const: f
691+
# Zvfbfmin depends on V or Zve32f
692+
- if:
693+
contains:
694+
const: zvfbfmin
695+
then:
696+
oneOf:
697+
- contains:
698+
const: v
699+
- contains:
700+
const: zve32f
701+
# Zvfbfwma depends on Zfbfmin and Zvfbfmin
702+
- if:
703+
contains:
704+
const: zvfbfwma
705+
then:
706+
allOf:
707+
- contains:
708+
const: zfbfmin
709+
- contains:
710+
const: zvfbfmin
666711

667712
allOf:
668713
# Zcf extension does not exist on rv64

0 commit comments

Comments
 (0)