Skip to content

Commit

Permalink
spi: qcom-qspi: Add minItems to interconnect-names
Browse files Browse the repository at this point in the history
[ Upstream commit e23d86c ]

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: 8f9c291 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Kuldeep Singh authored and gregkh committed Jun 9, 2022
1 parent 187ecfc commit 35db6e2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ properties:
maxItems: 2

interconnect-names:
minItems: 1
items:
- const: qspi-config
- const: qspi-memory
Expand Down

0 comments on commit 35db6e2

Please sign in to comment.