Skip to content

Commit 6d88bb7

Browse files
krzkAndi Shyti
authored andcommitted
dt-bindings: i2c: nvidia,tegra20-i2c: restrict also clocks in if:then:
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 <[email protected]> Acked-by: Conor Dooley <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent 13b09d0 commit 6d88bb7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ allOf:
124124
- nvidia,tegra30-i2c
125125
then:
126126
properties:
127+
clocks:
128+
minItems: 2
127129
clock-names:
128130
items:
129131
- const: div-clk
@@ -138,6 +140,8 @@ allOf:
138140
- nvidia,tegra210-i2c
139141
then:
140142
properties:
143+
clocks:
144+
maxItems: 1
141145
clock-names:
142146
items:
143147
- const: div-clk
@@ -149,6 +153,8 @@ allOf:
149153
const: nvidia,tegra210-i2c-vi
150154
then:
151155
properties:
156+
clocks:
157+
minItems: 2
152158
clock-names:
153159
items:
154160
- const: div-clk

0 commit comments

Comments
 (0)