Skip to contentSkip to conversation

dt-bindings: riscv: Add SiFive vendor extensions description

PATCH In review Nick Hu 2 participants 4 messages Aug 1, 2025 – Aug 11, 2025

Subsystems (2)
lore
Share & tools
lore

Nick Hu

author
#0 lore raw

PATCH v2 1/1 dt-bindings: riscv: Add SiFive vendor extensions description

Add description for SiFive vendor extensions "xsfcflushdlone", "xsfpgflushdlone" and "xsfcease". This is used in the SBI implementation [1].

[1] https://lore.kernel.org/opensbi/[email protected]/

Changes in v2:
- Update the message to indicate the user of the extensions.

---
 .../devicetree/bindings/riscv/extensions.yaml  | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
Documentation/devicetree/bindings/riscv/extensions.yaml +18 -0
index ede6a58ccf53..5638297759df 100644
@@ -663,6 +663,24 @@ properties:
             https://www.andestech.com/wp-content/uploads/AX45MP-1C-Rev.-5.0.0-Datasheet.pdf
 
         # SiFive
+        - const: xsfcease
+          description:
+            SiFive CEASE Instruction Extensions Specification.
+            See more details in
+            https://www.sifive.com/document-file/freedom-u740-c000-manual
+
+        - const: xsfcflushdlone
+          description:
+            SiFive L1D Cache Flush Instruction Extensions Specification.
+            See more details in
+            https://www.sifive.com/document-file/freedom-u740-c000-manual
+
+        - const: xsfpgflushdlone
+          description:
+            SiFive PGFLUSH Instruction Extensions for the power management. The
+            CPU will flush the L1D and enter the cease state after executing
+            the instruction.
+
         - const: xsfvqmaccdod
           description:
             SiFive Int8 Matrix Multiplication Extensions Specification.
Signature · 1 line
2.17.1
Acked-by on v2 1/1
#1 lore raw
Quoted 9 lines · Nick Hu

Add description for SiFive vendor extensions "xsfcflushdlone", "xsfpgflushdlone" and "xsfcease". This is used in the SBI implementation [1].

[1] https://lore.kernel.org/opensbi/[email protected]/

Changes in v2:
- Update the message to indicate the user of the extensions.

This should be below the --- line.
With that,

although I suppose it'll be me taking this and I can fix it up on application?

Quoted 38 lines
---
 .../devicetree/bindings/riscv/extensions.yaml  | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
Documentation/devicetree/bindings/riscv/extensions.yaml +18 -0
index ede6a58ccf53..5638297759df 100644
@@ -663,6 +663,24 @@ properties:
             https://www.andestech.com/wp-content/uploads/AX45MP-1C-Rev.-5.0.0-Datasheet.pdf
 
         # SiFive
+        - const: xsfcease
+          description:
+            SiFive CEASE Instruction Extensions Specification.
+            See more details in
+            https://www.sifive.com/document-file/freedom-u740-c000-manual
+
+        - const: xsfcflushdlone
+          description:
+            SiFive L1D Cache Flush Instruction Extensions Specification.
+            See more details in
+            https://www.sifive.com/document-file/freedom-u740-c000-manual
+
+        - const: xsfpgflushdlone
+          description:
+            SiFive PGFLUSH Instruction Extensions for the power management. The
+            CPU will flush the L1D and enter the cease state after executing
+            the instruction.
+
         - const: xsfvqmaccdod
           description:
             SiFive Int8 Matrix Multiplication Extensions Specification.
Signature · 1 line
2.17.1
author
#2 lore raw
Quoted 9 lines · Conor Dooley
Quoted 6 lines · Nick Hu

Add description for SiFive vendor extensions "xsfcflushdlone", "xsfpgflushdlone" and "xsfcease". This is used in the SBI implementation [1].

[1] https://lore.kernel.org/opensbi/[email protected]/

Quoted 9 lines
Quoted 2 lines

Changes in v2:
- Update the message to indicate the user of the extensions.

This should be below the --- line.
With that,

although I suppose it'll be me taking this and I can fix it up on application?

Thanks! That would be really helpful.

Best Regards,
Nick

Quoted 38 lines
Quoted 38 lines
---
 .../devicetree/bindings/riscv/extensions.yaml  | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
Documentation/devicetree/bindings/riscv/extensions.yaml +18 -1
index ede6a58ccf53..5638297759df 100644
@@ -663,6 +663,24 @@ properties:
             https://www.andestech.com/wp-content/uploads/AX45MP-1C-Rev.-5.0.0-Datasheet.pdf
 
         # SiFive
+        - const: xsfcease
+          description:
+            SiFive CEASE Instruction Extensions Specification.
+            See more details in
+            https://www.sifive.com/document-file/freedom-u740-c000-manual
+
+        - const: xsfcflushdlone
+          description:
+            SiFive L1D Cache Flush Instruction Extensions Specification.
+            See more details in
+            https://www.sifive.com/document-file/freedom-u740-c000-manual
+
+        - const: xsfpgflushdlone
+          description:
+            SiFive PGFLUSH Instruction Extensions for the power management. The
+            CPU will flush the L1D and enter the cease state after executing
+            the instruction.
+
         - const: xsfvqmaccdod
           description:
             SiFive Int8 Matrix Multiplication Extensions Specification.
--

2.17.1

#3 lore raw
Quoted 13 lines · Nick Hu
Quoted 12 lines · Conor Dooley
Quoted 9 lines · Nick Hu

Add description for SiFive vendor extensions "xsfcflushdlone", "xsfpgflushdlone" and "xsfcease". This is used in the SBI implementation [1].

[1] https://lore.kernel.org/opensbi/[email protected]/

Changes in v2:
- Update the message to indicate the user of the extensions.

Quoted 7 lines
Quoted 6 lines

This should be below the --- line.
With that,

although I suppose it'll be me taking this and I can fix it up on application?

Thanks! That would be really helpful.

Done, applied for 6.18 material.