[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_221A82C2DAF38E66B85B313221958DDD7C08@qq.com>
Date: Tue, 25 Apr 2023 20:00:16 +0800
From: Yangyu Chen <cyy@...self.name>
To: Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>
Cc: linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org,
Wende Tan <twd2.me@...il.com>, Soha Jin <soha@...u.info>,
Hongren Zheng <i@...ithal.me>, Yangyu Chen <cyy@...self.name>
Subject: [PATCH 2/2] docs: dt: allow case-insensitive RISC-V ISA string
After allowing case-insensitive ISA string parsing in the kernel code,
the docs should be updated.
Signed-off-by: Yangyu Chen <cyy@...self.name>
---
Documentation/devicetree/bindings/riscv/cpus.yaml | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml
index 001931d526ec..70afd1e8638b 100644
--- a/Documentation/devicetree/bindings/riscv/cpus.yaml
+++ b/Documentation/devicetree/bindings/riscv/cpus.yaml
@@ -79,11 +79,10 @@ properties:
User-Level ISA document, available from
https://riscv.org/specifications/
- While the isa strings in ISA specification are case
- insensitive, letters in the riscv,isa string must be all
- lowercase to simplify parsing.
+ According to RISC-V ISA specification, the isa strings are
+ case insensitive.
$ref: "/schemas/types.yaml#/definitions/string"
- pattern: ^rv(?:64|32)imaf?d?q?c?b?k?j?p?v?h?(?:[hsxz](?:[a-z])+)?(?:_[hsxz](?:[a-z])+)*$
+ pattern: (?i)^rv(?:64|32)imaf?d?q?c?b?k?j?p?v?h?(?:[hsxz](?:[a-z])+)?(?:_[hsxz](?:[a-z])+)*$
# RISC-V requires 'timebase-frequency' in /cpus, so disallow it here
timebase-frequency: false
--
2.40.0
Powered by blists - more mailing lists