Skip to content

Commit edeedfa

Browse files
krzkUwe Kleine-König
authored andcommitted
dt-bindings: pwm: allwinner,sun4i-a10-pwm: 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 clock-names. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]>
1 parent 34d973c commit edeedfa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ properties:
4646
- description: Module Clock
4747
- description: Bus Clock
4848

49-
# Even though it only applies to subschemas under the conditionals,
50-
# not listing them here will trigger a warning because of the
51-
# additionalsProperties set to false.
52-
clock-names: true
49+
clock-names:
50+
minItems: 1
51+
items:
52+
- const: mod
53+
- const: bus
5354

5455
resets:
5556
maxItems: 1

0 commit comments

Comments
 (0)