spi: dt-bindings: mediatek: Set min size for 'mediatek,pad-select'
authorRob Herring <robh@kernel.org>
Tue, 1 Mar 2022 21:23:57 +0000 (15:23 -0600)
committerMark Brown <broonie@kernel.org>
Wed, 2 Mar 2022 13:45:35 +0000 (13:45 +0000)
The minimum array length defaults to the same size as the maximum. For
'mediatek,pad-select', the example has a length of 2 and in-tree .dts
files have a length of 1, but the schema says the length must be 4.

There's currently no warning in the example because the schema fixups
are not handling this case correctly.

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

index bfa44ac..ac9ff12 100644 (file)
@@ -62,6 +62,7 @@ properties:
 
   mediatek,pad-select:
     $ref: /schemas/types.yaml#/definitions/uint32-array
+    minItems: 1
     maxItems: 4
     items:
       enum: [0, 1, 2, 3]