Skip to content

Commit 360e770

Browse files
krzkthierryreding
authored andcommitted
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>
1 parent 4d690e5 commit 360e770

1 file changed

Lines changed: 28 additions & 25 deletions

File tree

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

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -52,33 +52,36 @@ properties:
5252
resets:
5353
maxItems: 1
5454

55-
if:
56-
properties:
57-
compatible:
58-
contains:
59-
const: allwinner,sun50i-h6-pwm
60-
61-
then:
62-
properties:
63-
clocks:
64-
maxItems: 2
65-
66-
clock-names:
67-
items:
68-
- const: mod
69-
- const: bus
70-
71-
required:
72-
- clock-names
73-
- resets
74-
75-
else:
76-
properties:
77-
clocks:
78-
maxItems: 1
55+
56+
allOf:
57+
- $ref: pwm.yaml#
58+
59+
- if:
60+
properties:
61+
compatible:
62+
contains:
63+
const: allwinner,sun50i-h6-pwm
64+
65+
then:
66+
properties:
67+
clocks:
68+
maxItems: 2
69+
70+
clock-names:
71+
items:
72+
- const: mod
73+
- const: bus
74+
75+
required:
76+
- clock-names
77+
- resets
78+
79+
else:
80+
properties:
81+
clocks:
82+
maxItems: 1
7983

8084
required:
81-
- "#pwm-cells"
8285
- compatible
8386
- reg
8487
- clocks

0 commit comments

Comments
 (0)