Skip to content

Commit

Permalink
dt-bindings: i2c: nvidia,tegra20-i2c: restrict also clocks in if:then:
Browse files Browse the repository at this point in the history
Both xxx and xxx-names properties with variable number of items should
be constrained in each "if:then:".  Add missing constraints for clocks,
since we have such for clock-names.

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 13b09d0 commit 6d88bb7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ allOf:
- nvidia,tegra30-i2c
then:
properties:
clocks:
minItems: 2
clock-names:
items:
- const: div-clk
Expand All @@ -138,6 +140,8 @@ allOf:
- nvidia,tegra210-i2c
then:
properties:
clocks:
maxItems: 1
clock-names:
items:
- const: div-clk
Expand All @@ -149,6 +153,8 @@ allOf:
const: nvidia,tegra210-i2c-vi
then:
properties:
clocks:
minItems: 2
clock-names:
items:
- const: div-clk
Expand Down

0 comments on commit 6d88bb7

Please sign in to comment.