Skip to content

Commit 13b09d0

Browse files
krzkAndi Shyti
authored andcommitted
dt-bindings: i2c: nvidia,tegra20-i2c: combine same if:then: clauses
"if:then:" block for Tegra114 and Tegra120 I2C controllers has the same "then" part (same clocks), so combine them. Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Conor Dooley <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent 3e3c9be commit 13b09d0

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

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

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,9 @@ allOf:
133133
properties:
134134
compatible:
135135
contains:
136-
const: nvidia,tegra114-i2c
137-
then:
138-
properties:
139-
clock-names:
140-
items:
141-
- const: div-clk
142-
143-
- if:
144-
properties:
145-
compatible:
146-
contains:
147-
const: nvidia,tegra210-i2c
136+
enum:
137+
- nvidia,tegra114-i2c
138+
- nvidia,tegra210-i2c
148139
then:
149140
properties:
150141
clock-names:

0 commit comments

Comments
 (0)