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 <krzysztof.kozlowski@linaro.org> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20240818172828.121728-1-krzysztof.kozlowski@linaro.org Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
1 parent 34d973c commit edeedfa

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

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)