spi: dt-bindings: Fix 'reg' child node schema
authorRob Herring <robh@kernel.org>
Wed, 26 Jan 2022 23:13:26 +0000 (17:13 -0600)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jan 2022 13:05:21 +0000 (13:05 +0000)
The schema for SPI child nodes' 'reg' property is not complete. 'reg' is
a matrix of cells. The schema needs to define both the number of 'reg'
entries and constraints on each entry.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220126231326.1636199-1-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml

index 5dd2092..3ec2d7b 100644 (file)
@@ -23,8 +23,9 @@ properties:
     minItems: 1
     maxItems: 256
     items:
-      minimum: 0
-      maximum: 256
+      items:
+        - minimum: 0
+          maximum: 256
     description:
       Chip select used by the device.