Commit 6d88bb79 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Andi Shyti

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: default avatarConor Dooley <conor.dooley@microchip.com>
Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent 13b09d0f
...@@ -124,6 +124,8 @@ allOf: ...@@ -124,6 +124,8 @@ allOf:
- nvidia,tegra30-i2c - nvidia,tegra30-i2c
then: then:
properties: properties:
clocks:
minItems: 2
clock-names: clock-names:
items: items:
- const: div-clk - const: div-clk
...@@ -138,6 +140,8 @@ allOf: ...@@ -138,6 +140,8 @@ allOf:
- nvidia,tegra210-i2c - nvidia,tegra210-i2c
then: then:
properties: properties:
clocks:
maxItems: 1
clock-names: clock-names:
items: items:
- const: div-clk - const: div-clk
...@@ -149,6 +153,8 @@ allOf: ...@@ -149,6 +153,8 @@ allOf:
const: nvidia,tegra210-i2c-vi const: nvidia,tegra210-i2c-vi
then: then:
properties: properties:
clocks:
minItems: 2
clock-names: clock-names:
items: items:
- const: div-clk - const: div-clk
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment