spi: qcom-qspi: Add minItems to interconnect-names
authorKuldeep Singh <singh.kuldeep87k@gmail.com>
Mon, 28 Mar 2022 19:20:06 +0000 (00:50 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 5 Apr 2022 09:21:54 +0000 (10:21 +0100)
Add minItems constraint to interconnect-names as well. The schema
currently tries to match 2 names and fail for DTs with single entry.

With the change applied, below interconnect-names values are possible:
['qspi-config'], ['qspi-config', 'qspi-memory']

Fixes: 8f9c291558ea ("dt-bindings: spi: Add interconnect binding for QSPI")
Signed-off-by: Kuldeep Singh <singh.kuldeep87k@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220328192006.18523-1-singh.kuldeep87k@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.yaml

index 5a60fba..44d08aa 100644 (file)
@@ -49,6 +49,7 @@ properties:
     maxItems: 2
 
   interconnect-names:
+    minItems: 1
     items:
       - const: qspi-config
       - const: qspi-memory