Skip to content

Commit 3c1b475

Browse files
ConchuODpalmer-dabbelt
authored andcommitted
dt-bindings: riscv: cpus: add a ref the common cpu schema
To permit validation of RISC-V cpu nodes, "additionalProperties: true" needs to be swapped for "unevaluatedProperties: false". To facilitate this in a way that passes dt_binding_check, a reference to the cpu schema is required. Disallow the generic cache-op-block-size property that that drags in, since the RISC-V CBO extensions do not require a common size, and have individual properties. Signed-off-by: Conor Dooley <[email protected]> Reviewed-by: Rob Herring <[email protected]> Acked-by: Palmer Dabbelt <[email protected]> Link: https://lore.kernel.org/r/20230615-dubiously-parasail-79d34cefedce@spud Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent ac9a786 commit 3c1b475

File tree

1 file changed

+6
-0
lines changed
  • Documentation/devicetree/bindings/riscv

1 file changed

+6
-0
lines changed

Documentation/devicetree/bindings/riscv/cpus.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ description: |
2323
two cores, each of which has two hyperthreads, could be described as
2424
having four harts.
2525
26+
allOf:
27+
- $ref: /schemas/cpu.yaml#
28+
2629
properties:
2730
compatible:
2831
oneOf:
@@ -98,6 +101,9 @@ properties:
98101
$ref: "/schemas/types.yaml#/definitions/string"
99102
pattern: ^rv(?:64|32)imaf?d?q?c?b?k?j?p?v?h?(?:[hsxz](?:[a-z])+)?(?:_[hsxz](?:[a-z])+)*$
100103

104+
# RISC-V has multiple properties for cache op block sizes as the sizes
105+
# differ between individual CBO extensions
106+
cache-op-block-size: false
101107
# RISC-V requires 'timebase-frequency' in /cpus, so disallow it here
102108
timebase-frequency: false
103109

0 commit comments

Comments
 (0)