From: Atish Patra <atishp@atishpatra.org>
To: linux-kernel@vger.kernel.org
Cc: Atish Patra <atishp@rivosinc.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Atish Patra <atishp@atishpatra.org>,
Anup Patel <anup@brainfault.org>,
Damien Le Moal <damien.lemoal@wdc.com>,
devicetree@vger.kernel.org, Jisheng Zhang <jszhang@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>,
linux-riscv@lists.infradead.org,
Palmer Dabbelt <palmer@dabbelt.com>,
Paul Walmsley <paul.walmsley@sifive.com>,
Rob Herring <robh+dt@kernel.org>
Subject: [PATCH v1 2/2] dt-bindings: riscv: Add DT binding for RISC-V ISA extensions
Date: Fri, 24 Dec 2021 13:16:32 -0800 [thread overview]
Message-ID: <20211224211632.1698523-3-atishp@rivosinc.com> (raw)
In-Reply-To: <20211224211632.1698523-1-atishp@rivosinc.com>
RISC-V ISA extensions can be single letter or multi-letter names.
The single letter extensions are mostly base extensions and encoded in
"riscv,isa" DT property. However, parsing the multi-letter extensions
via the isa string is cumbersome and is not scalable.
Add a new DT node for multi-letter extensions.
Signed-off-by: Atish Patra <atishp@rivosinc.com>
---
Documentation/devicetree/bindings/riscv/cpus.yaml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml
index aa5fb64d57eb..6c4eecf389a9 100644
--- a/Documentation/devicetree/bindings/riscv/cpus.yaml
+++ b/Documentation/devicetree/bindings/riscv/cpus.yaml
@@ -78,6 +78,15 @@ properties:
- rv64imac
- rv64imafdc
+ riscv,isa-ext:
+ description:
+ Identifies the specific RISC-V instruction set architecture extensions
+ supported by one or multiple harts. All the multi-letter extensions
+ should be listed here as a boolean property. This subnode can be under
+ /cpus or under individual cpu node. In case of former, it represent
+ the common ISA extensions for all harts. The name of the boolean property
+ must match the actual ISA extension name in all lowercase format.
+ $ref: "/schemas/types.yaml#/definitions/boolean"
# RISC-V requires 'timebase-frequency' in /cpus, so disallow it here
timebase-frequency: false
--
2.33.1
next prev parent reply other threads:[~2021-12-24 21:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-24 21:16 [PATCH v1 0/2] Provide a fraemework " Atish Patra
2021-12-24 21:16 ` [PATCH v1 1/2] RISC-V: Provide a framework for parsing multi-letter " Atish Patra
2021-12-25 3:12 ` Tsukasa OI
2021-12-25 6:09 ` Atish Patra
2021-12-25 10:11 ` Krzysztof Kozlowski
2021-12-24 21:16 ` Atish Patra [this message]
2021-12-24 23:25 ` [PATCH v1 2/2] dt-bindings: riscv: Add DT binding for RISC-V " Jessica Clarke
2021-12-25 5:52 ` Atish Patra
2021-12-25 14:48 ` Rob Herring
2022-01-07 21:58 ` [PATCH v1 0/2] Provide a fraemework " Palmer Dabbelt
2022-01-08 2:24 ` Atish Patra
2022-02-03 13:56 ` Heiko Stübner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211224211632.1698523-3-atishp@rivosinc.com \
--to=atishp@atishpatra.org \
--cc=anup@brainfault.org \
--cc=aou@eecs.berkeley.edu \
--cc=atishp@rivosinc.com \
--cc=damien.lemoal@wdc.com \
--cc=devicetree@vger.kernel.org \
--cc=jszhang@kernel.org \
--cc=krzysztof.kozlowski@canonical.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®