Skip to content

Commit

Permalink
dt-bindings: i2c: nvidia,tegra20-i2c: define power-domains top-level
Browse files Browse the repository at this point in the history
Properties are expected to be defined in top-level "properties:" block
and further customized in "if:then:".  Only one variant has power
domains, so add respective top-level property and disallow it for other
devices.

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 6d88bb7 commit 3a04293
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 @@ -103,6 +103,9 @@ properties:
items:
- const: i2c

power-domains:
maxItems: 1

dmas:
items:
- description: DMA channel for the reception FIFO
Expand Down Expand Up @@ -162,6 +165,9 @@ allOf:
power-domains:
items:
- description: phandle to the VENC power domain
else:
properties:
power-domains: false

unevaluatedProperties: false

Expand Down

0 comments on commit 3a04293

Please sign in to comment.