[PATCH v2 1/3] dt-bindings: riscv: Add Worlds ISA extensions
Yu-Chien Peter Lin <[email protected]> Thu, 30 Jul 2026 00:39:06 +0800
| Newsgroups | org.infradead.lists.linux-riscv,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Add DT bindings for five RISC-V Worlds ISA extensions that implement World ID tagging for hardware-enforced context isolation. Also, add checks for extension dependency requirements. Signed-off-by: Yu-Chien Peter Lin <[email protected]> --- .../devicetree/bindings/riscv/extensions.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml index 2b0a8a93bb21..7a57191a0293 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -193,12 +193,35 @@ properties: ratified at commit d70011dde6c2 ("Update to ratified state") of riscv-j-extension. + - const: smlwid + description: | + The standard Smlwid extension for M-mode control of lower + privilege World ID via the mlwid CSR as ratified at commit + TBD ("TBD") of riscv-worlds. + + - const: smlwidlist + description: | + The standard Smlwidlist extension for M-mode control of lower + privilege World IDs via the mlwidlist CSR as ratified at commit + TBD ("TBD") of riscv-worlds. + - const: smstateen description: | The standard Smstateen extension for controlling access to CSRs added by other RISC-V extensions in H/S/VS/U/VU modes and as ratified at commit a28bfae (Ratified (#7)) of riscv-state-enable. + - const: smwiddeleg + description: | + The standard Smwiddeleg extension for M-mode delegation of lower + privilege World ID control to S-mode via the mwiddeleg CSR, as + ratified at commit TBD ("TBD") of riscv-worlds. + + - const: smwid + description: | + The standard Smwid extension for M-mode World ID control via the + mwid CSR as ratified at commit TBD ("TBD") of riscv-worlds. + - const: ssaia description: | The standard Ssaia supervisor-level extension for the advanced @@ -262,6 +285,12 @@ properties: ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.") + - const: sswid + description: | + The standard Sswid extension for S-mode control of lower + privilege World IDs via the slwid CSR as ratified at commit + TBD ("TBD") of riscv-worlds. + - const: supm description: | The standard Supm extension for pointer masking support in user @@ -924,6 +953,30 @@ properties: then: contains: const: b + # Smlwidlist depends on Smwid and Smlwid + - if: + contains: + const: smlwidlist + then: + allOf: + - contains: + const: smwid + - contains: + const: smlwid + # Smwiddeleg depends on Smlwid + - if: + contains: + const: smwiddeleg + then: + contains: + const: smlwid + # Sswid depends on Smwiddeleg + - if: + contains: + const: sswid + then: + contains: + const: smwiddeleg # Supm depends on Smnpm or Ssnpm - if: contains: -- 2.43.7 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv