Skip to content

Commit c46ed28

Browse files
krzkrobherring
authored andcommitted
dt-bindings: pwm: samsung: Do not require interrupts on Exynos SoCs
The bindings required interrupts for all SoCs but actually only the PWM timer clocksource (for S3C/S5P SoCs) was using them. This PWM timer clocksource driver is not used on Exynos SoCs thus the interrupts can be marked as optional. Reported-by: Alim Akhtar <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent 44e1655 commit c46ed28

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

Documentation/devicetree/bindings/pwm/pwm-samsung.yaml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ description: |+
1818
1919
Be aware that the clocksource driver supports only uniprocessor systems.
2020
21-
allOf:
22-
- $ref: pwm.yaml#
23-
2421
properties:
2522
compatible:
2623
enum:
@@ -63,7 +60,8 @@ properties:
6360

6461
interrupts:
6562
description:
66-
One interrupt per timer, starting at timer 0.
63+
One interrupt per timer, starting at timer 0. Necessary only for SoCs which
64+
use PWM clocksource.
6765
minItems: 1
6866
maxItems: 5
6967

@@ -88,12 +86,27 @@ required:
8886
- clocks
8987
- clock-names
9088
- compatible
91-
- interrupts
9289
- "#pwm-cells"
9390
- reg
9491

9592
additionalProperties: false
9693

94+
allOf:
95+
- $ref: pwm.yaml#
96+
97+
- if:
98+
properties:
99+
compatible:
100+
contains:
101+
enum:
102+
- samsung,s3c2410-pwm
103+
- samsung,s3c6400-pwm
104+
- samsung,s5p6440-pwm
105+
- samsung,s5pc100-pwm
106+
then:
107+
required:
108+
- interrupts
109+
97110
examples:
98111
- |
99112
pwm@7f006000 {

0 commit comments

Comments
 (0)