diff options
| author | Rob Herring (Arm) <robh@kernel.org> | 2024-09-25 18:24:06 -0500 |
|---|---|---|
| committer | Rob Herring (Arm) <robh@kernel.org> | 2024-10-01 21:17:00 -0500 |
| commit | a6fa1f9e32f573faf53f9587ddbb70a0b9ab8c9f (patch) | |
| tree | 5f4168085c3d2c48936737f7810bc6defcd1a0b1 /Documentation/devicetree/bindings/cache | |
| parent | b70ea8781988a0e81e183c27af9b391b7991ec3b (diff) | |
| download | linux-next-a6fa1f9e32f573faf53f9587ddbb70a0b9ab8c9f.tar.gz linux-next-a6fa1f9e32f573faf53f9587ddbb70a0b9ab8c9f.zip | |
dt-bindings: Fix array property constraints
Schemas for array properties should only have 1 level of array
constraints (e.g. items, maxItems, minItems). Sometimes the old
encoding of all properties into a matrix leaked into the schema, and
didn't matter for validation. Now the inner constraints are just
silently ignored as json-schema array keywords are ignored on scalar
values.
Generally, keep the inner constraints and drop the outer "items". With
gicv3 "mbi-alias" property, it is more appropriately a uint32 or uint64
as it is an address and size depends on "#address-cells".
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240925232409.2208515-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/cache')
| -rw-r--r-- | Documentation/devicetree/bindings/cache/l2c2x0.yaml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/cache/l2c2x0.yaml b/Documentation/devicetree/bindings/cache/l2c2x0.yaml index d7840a5c4037..10c1a900202f 100644 --- a/Documentation/devicetree/bindings/cache/l2c2x0.yaml +++ b/Documentation/devicetree/bindings/cache/l2c2x0.yaml @@ -100,9 +100,8 @@ properties: filter. Addresses in the filter window are directed to the M1 port. Other addresses will go to the M0 port. $ref: /schemas/types.yaml#/definitions/uint32-array - items: - minItems: 2 - maxItems: 2 + minItems: 2 + maxItems: 2 arm,io-coherent: description: indicates that the system is operating in an hardware |
