Skip to content

Commit aa84580

Browse files
krzkbroonie
authored andcommitted
ASoC: dt-bindings: qcom,lpass-va-macro: Define clock-names in top-level
Device variants use different amount of clock inputs, but all of them are in the same order, 'clock-names' in top-level properties can define the list and each if:then: block can only narrow the number of items. This is preferred syntax, because it keeps list unified among devices and encourages adding new entries to the end of the list, instead of adding them in the middle. The change has no functional impact, but partially reverts approach implemented in commit cfad817 ("ASoC: dt-bindings: qcom,lpass-va-macro: Add missing NPL clock"). Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 3f998cd commit aa84580

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ properties:
4040

4141
clock-names:
4242
minItems: 1
43-
maxItems: 4
43+
items:
44+
- const: mclk
45+
- const: macro
46+
- const: dcodec
47+
- const: npl
4448

4549
clock-output-names:
4650
maxItems: 1
@@ -80,8 +84,7 @@ allOf:
8084
clocks:
8185
maxItems: 1
8286
clock-names:
83-
items:
84-
- const: mclk
87+
maxItems: 1
8588

8689
- if:
8790
properties:
@@ -94,10 +97,8 @@ allOf:
9497
minItems: 3
9598
maxItems: 3
9699
clock-names:
97-
items:
98-
- const: mclk
99-
- const: macro
100-
- const: dcodec
100+
minItems: 3
101+
maxItems: 3
101102

102103
- if:
103104
properties:
@@ -112,11 +113,8 @@ allOf:
112113
minItems: 4
113114
maxItems: 4
114115
clock-names:
115-
items:
116-
- const: mclk
117-
- const: macro
118-
- const: dcodec
119-
- const: npl
116+
minItems: 4
117+
maxItems: 4
120118

121119
- if:
122120
properties:
@@ -130,10 +128,8 @@ allOf:
130128
minItems: 3
131129
maxItems: 3
132130
clock-names:
133-
items:
134-
- const: mclk
135-
- const: macro
136-
- const: dcodec
131+
minItems: 3
132+
maxItems: 3
137133

138134
unevaluatedProperties: false
139135

0 commit comments

Comments
 (0)