Skip to content

Commit 3a04293

Browse files
krzkAndi Shyti
authored andcommitted
dt-bindings: i2c: nvidia,tegra20-i2c: define power-domains top-level
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 <[email protected]> Acked-by: Conor Dooley <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent 6d88bb7 commit 3a04293

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
@@ -103,6 +103,9 @@ properties:
103103
items:
104104
- const: i2c
105105

106+
power-domains:
107+
maxItems: 1
108+
106109
dmas:
107110
items:
108111
- description: DMA channel for the reception FIFO
@@ -162,6 +165,9 @@ allOf:
162165
power-domains:
163166
items:
164167
- description: phandle to the VENC power domain
168+
else:
169+
properties:
170+
power-domains: false
165171

166172
unevaluatedProperties: false
167173

0 commit comments

Comments
 (0)