dt-bindings: Fix array property constraints
authorRob Herring (Arm) <robh@kernel.org>
Wed, 25 Sep 2024 23:24:06 +0000 (18:24 -0500)
committerRob Herring (Arm) <robh@kernel.org>
Wed, 2 Oct 2024 02:17:00 +0000 (21:17 -0500)
commita6fa1f9e32f573faf53f9587ddbb70a0b9ab8c9f
tree5f4168085c3d2c48936737f7810bc6defcd1a0b1
parentb70ea8781988a0e81e183c27af9b391b7991ec3b
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>
Documentation/devicetree/bindings/cache/l2c2x0.yaml
Documentation/devicetree/bindings/dma/dma-common.yaml
Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml
Documentation/devicetree/bindings/media/i2c/thine,thp7312.yaml
Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml
Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml
Documentation/devicetree/bindings/soc/qcom/qcom,smp2p.yaml