summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml
blob: 903210ef9c31a8410b996f487b98a63df5d2dbd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/pwm/cirrus,ep9301-pwm.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Cirrus Logic ep93xx PWM controller

maintainers:
  - Alexander Sverdlin <alexander.sverdlin@gmail.com>
  - Nikita Shubin <nikita.shubin@maquefel.me>

allOf:
  - $ref: pwm.yaml#

properties:
  compatible:
    oneOf:
      - const: cirrus,ep9301-pwm
      - items:
          - enum:
              - cirrus,ep9302-pwm
              - cirrus,ep9307-pwm
              - cirrus,ep9312-pwm
              - cirrus,ep9315-pwm
          - const: cirrus,ep9301-pwm

  reg:
    maxItems: 1

  clocks:
    items:
      - description: SoC PWM clock

  "#pwm-cells":
    const: 3

required:
  - compatible
  - reg
  - clocks

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/cirrus,ep9301-syscon.h>
    pwm@80910000 {
        compatible = "cirrus,ep9301-pwm";
        reg = <0x80910000 0x10>;
        clocks = <&syscon EP93XX_CLK_PWM>;
        #pwm-cells = <3>;
    };