Skip to content

Commit

Permalink
dt-bindings: i2c: nvidia,tegra20-i2c: combine same if:then: clauses
Browse files Browse the repository at this point in the history
"if:then:" block for Tegra114 and Tegra120 I2C controllers has the same
"then" part (same clocks), so combine them.

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 3e3c9be commit 13b09d0
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,9 @@ allOf:
properties:
compatible:
contains:
const: nvidia,tegra114-i2c
then:
properties:
clock-names:
items:
- const: div-clk

- if:
properties:
compatible:
contains:
const: nvidia,tegra210-i2c
enum:
- nvidia,tegra114-i2c
- nvidia,tegra210-i2c
then:
properties:
clock-names:
Expand Down

0 comments on commit 13b09d0

Please sign in to comment.