Skip to content

Commit

Permalink
dt-bindings: i2c: qcom,i2c-cci: add missing clocks constraint in if:t…
Browse files Browse the repository at this point in the history
…hen:

Top level defines clocks as variable from 3 to 6 items, so each clause
in if:then: should narrow it further with explicit min and maxItems.
Without minItems, the constrain from top-level is being applied, thus
qcom,msm8996-cci allows between 3 and 4 clocks.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
  • Loading branch information
Krzysztof Kozlowski authored and Andi Shyti committed Sep 9, 2024
1 parent 3a04293 commit c1a5e6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ allOf:
then:
properties:
clocks:
minItems: 4
maxItems: 4
clock-names:
items:
Expand Down

0 comments on commit c1a5e6f

Please sign in to comment.