Skip to content

Commit 3bc2f3b

Browse files
Sheetaltiwai
authored andcommitted
dt-bindings: Document Tegra264 HDA Support
For Tegra264 device there is one clock, two resets and no power-domain. Add the Tegra264 compatible and necessary logic to the binding doc to determine appropriate clocks, resets and power-domain properties based on the compatible string. Signed-off-by: Sheetal <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 494475e commit 3bc2f3b

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.yaml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ properties:
2424
- nvidia,tegra30-hda
2525
- nvidia,tegra194-hda
2626
- nvidia,tegra234-hda
27+
- nvidia,tegra264-hda
2728
- items:
2829
- enum:
2930
- nvidia,tegra186-hda
@@ -44,11 +45,11 @@ properties:
4445
maxItems: 1
4546

4647
clocks:
47-
minItems: 2
48+
minItems: 1
4849
maxItems: 3
4950

5051
clock-names:
51-
minItems: 2
52+
minItems: 1
5253
maxItems: 3
5354

5455
resets:
@@ -153,6 +154,26 @@ allOf:
153154
items:
154155
- const: hda
155156
- const: hda2codec_2x
157+
- if:
158+
properties:
159+
compatible:
160+
contains:
161+
enum:
162+
- nvidia,tegra264-hda
163+
then:
164+
properties:
165+
clocks:
166+
maxItems: 1
167+
clock-names:
168+
items:
169+
- const: hda
170+
resets:
171+
maxItems: 2
172+
reset-names:
173+
items:
174+
- const: hda
175+
- const: hda2codec_2x
176+
power-domains: false
156177

157178
examples:
158179
- |

0 commit comments

Comments
 (0)