dt-bindings: pwm: allwinner,sun4i-a10: Include generic PWM schema

Include generic pwm.yaml schema, which enforces PWM node naming and
brings pwm-cells requirement.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
Krzysztof Kozlowski 2022-02-14 22:21:40 +01:00 committed by Thierry Reding
parent 4d690e508a
commit 360e770c9c

View File

@ -52,33 +52,36 @@ properties:
resets:
maxItems: 1
if:
properties:
compatible:
contains:
const: allwinner,sun50i-h6-pwm
then:
properties:
clocks:
maxItems: 2
allOf:
- $ref: pwm.yaml#
clock-names:
items:
- const: mod
- const: bus
- if:
properties:
compatible:
contains:
const: allwinner,sun50i-h6-pwm
required:
- clock-names
- resets
then:
properties:
clocks:
maxItems: 2
else:
properties:
clocks:
maxItems: 1
clock-names:
items:
- const: mod
- const: bus
required:
- clock-names
- resets
else:
properties:
clocks:
maxItems: 1
required:
- "#pwm-cells"
- compatible
- reg
- clocks