Commit c46ed28d authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring
Browse files

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: default avatarAlim Akhtar <alim.akhtar@samsung.com>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200702155149.12854-1-krzk@kernel.org


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 44e1655a
Loading
Loading
Loading
Loading
+18 −5
Original line number Diff line number Diff line
@@ -18,9 +18,6 @@ description: |+

  Be aware that the clocksource driver supports only uniprocessor systems.

allOf:
  - $ref: pwm.yaml#

properties:
  compatible:
    enum:
@@ -63,7 +60,8 @@ properties:

  interrupts:
    description:
      One interrupt per timer, starting at timer 0.
      One interrupt per timer, starting at timer 0. Necessary only for SoCs which
      use PWM clocksource.
    minItems: 1
    maxItems: 5

@@ -88,12 +86,27 @@ required:
  - clocks
  - clock-names
  - compatible
  - interrupts
  - "#pwm-cells"
  - reg

additionalProperties: false

allOf:
  - $ref: pwm.yaml#

  - if:
      properties:
        compatible:
          contains:
            enum:
              - samsung,s3c2410-pwm
              - samsung,s3c6400-pwm
              - samsung,s5p6440-pwm
              - samsung,s5pc100-pwm
    then:
      required:
        - interrupts

examples:
  - |
    pwm@7f006000 {