Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Krzysztof Kozlowski and committed by
Uwe Kleine-König
edeedfaa 34d973c9

+5 -4
+5 -4
Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml
··· 46 46 - description: Module Clock 47 47 - description: Bus Clock 48 48 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 53 54 54 55 resets: 55 56 maxItems: 1