xref: /linux/Documentation/devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml (revision 3fd6c59042dbba50391e30862beac979491145fe)
1*824ccabdSNikita Shubin# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*824ccabdSNikita Shubin%YAML 1.2
3*824ccabdSNikita Shubin---
4*824ccabdSNikita Shubin$id: http://devicetree.org/schemas/pwm/cirrus,ep9301-pwm.yaml#
5*824ccabdSNikita Shubin$schema: http://devicetree.org/meta-schemas/core.yaml#
6*824ccabdSNikita Shubin
7*824ccabdSNikita Shubintitle: Cirrus Logic ep93xx PWM controller
8*824ccabdSNikita Shubin
9*824ccabdSNikita Shubinmaintainers:
10*824ccabdSNikita Shubin  - Alexander Sverdlin <alexander.sverdlin@gmail.com>
11*824ccabdSNikita Shubin  - Nikita Shubin <nikita.shubin@maquefel.me>
12*824ccabdSNikita Shubin
13*824ccabdSNikita ShubinallOf:
14*824ccabdSNikita Shubin  - $ref: pwm.yaml#
15*824ccabdSNikita Shubin
16*824ccabdSNikita Shubinproperties:
17*824ccabdSNikita Shubin  compatible:
18*824ccabdSNikita Shubin    oneOf:
19*824ccabdSNikita Shubin      - const: cirrus,ep9301-pwm
20*824ccabdSNikita Shubin      - items:
21*824ccabdSNikita Shubin          - enum:
22*824ccabdSNikita Shubin              - cirrus,ep9302-pwm
23*824ccabdSNikita Shubin              - cirrus,ep9307-pwm
24*824ccabdSNikita Shubin              - cirrus,ep9312-pwm
25*824ccabdSNikita Shubin              - cirrus,ep9315-pwm
26*824ccabdSNikita Shubin          - const: cirrus,ep9301-pwm
27*824ccabdSNikita Shubin
28*824ccabdSNikita Shubin  reg:
29*824ccabdSNikita Shubin    maxItems: 1
30*824ccabdSNikita Shubin
31*824ccabdSNikita Shubin  clocks:
32*824ccabdSNikita Shubin    items:
33*824ccabdSNikita Shubin      - description: SoC PWM clock
34*824ccabdSNikita Shubin
35*824ccabdSNikita Shubin  "#pwm-cells":
36*824ccabdSNikita Shubin    const: 3
37*824ccabdSNikita Shubin
38*824ccabdSNikita Shubinrequired:
39*824ccabdSNikita Shubin  - compatible
40*824ccabdSNikita Shubin  - reg
41*824ccabdSNikita Shubin  - clocks
42*824ccabdSNikita Shubin
43*824ccabdSNikita ShubinunevaluatedProperties: false
44*824ccabdSNikita Shubin
45*824ccabdSNikita Shubinexamples:
46*824ccabdSNikita Shubin  - |
47*824ccabdSNikita Shubin    #include <dt-bindings/clock/cirrus,ep9301-syscon.h>
48*824ccabdSNikita Shubin    pwm@80910000 {
49*824ccabdSNikita Shubin        compatible = "cirrus,ep9301-pwm";
50*824ccabdSNikita Shubin        reg = <0x80910000 0x10>;
51*824ccabdSNikita Shubin        clocks = <&syscon EP93XX_CLK_PWM>;
52*824ccabdSNikita Shubin        #pwm-cells = <3>;
53*824ccabdSNikita Shubin    };
54