Skip to content

Commit 31b6c34

Browse files
krzkrobherring
authored andcommitted
media: dt-bindings: renesas,fcp: add top-level constraints
Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks and clock-names. Acked-by: Conor Dooley <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent 54cec13 commit 31b6c34

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

Documentation/devicetree/bindings/media/renesas,fcp.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,18 @@ properties:
3535
reg:
3636
maxItems: 1
3737

38-
clocks: true
39-
40-
clock-names: true
38+
clocks:
39+
minItems: 1
40+
items:
41+
- description: Main clock
42+
- description: Register access clock
43+
- description: Video clock
44+
45+
clock-names:
46+
items:
47+
- const: aclk
48+
- const: pclk
49+
- const: vclk
4150

4251
iommus:
4352
maxItems: 1
@@ -69,15 +78,7 @@ allOf:
6978
then:
7079
properties:
7180
clocks:
72-
items:
73-
- description: Main clock
74-
- description: Register access clock
75-
- description: Video clock
76-
clock-names:
77-
items:
78-
- const: aclk
79-
- const: pclk
80-
- const: vclk
81+
minItems: 3
8182
required:
8283
- clock-names
8384
else:

0 commit comments

Comments
 (0)