Skip to content

Commit 84b3b8d

Browse files
krzkthierryreding
authored andcommitted
dt-bindings: pwm: renesas,pwm: 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> Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
1 parent e040921 commit 84b3b8d

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.yaml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,23 @@ properties:
5959
required:
6060
- compatible
6161
- reg
62-
- '#pwm-cells'
6362
- clocks
6463
- power-domains
6564

66-
if:
67-
not:
68-
properties:
69-
compatible:
70-
contains:
71-
enum:
72-
- renesas,pwm-r8a7778
73-
- renesas,pwm-r8a7779
74-
then:
75-
required:
76-
- resets
65+
allOf:
66+
- $ref: pwm.yaml#
67+
68+
- if:
69+
not:
70+
properties:
71+
compatible:
72+
contains:
73+
enum:
74+
- renesas,pwm-r8a7778
75+
- renesas,pwm-r8a7779
76+
then:
77+
required:
78+
- resets
7779

7880
additionalProperties: false
7981

0 commit comments

Comments
 (0)