1*d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*d5b0e70fSEmmanuel Vadot# Copyright (C) Sunplus Co., Ltd. 2021
3*d5b0e70fSEmmanuel Vadot%YAML 1.2
4*d5b0e70fSEmmanuel Vadot---
5*d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/pwm/sunplus,sp7021-pwm.yaml#
6*d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7*d5b0e70fSEmmanuel Vadot
8*d5b0e70fSEmmanuel Vadottitle: Sunplus SoC SP7021 PWM Controller
9*d5b0e70fSEmmanuel Vadot
10*d5b0e70fSEmmanuel Vadotmaintainers:
11*d5b0e70fSEmmanuel Vadot  - Hammer Hsieh <hammerh0314@gmail.com>
12*d5b0e70fSEmmanuel Vadot
13*d5b0e70fSEmmanuel VadotallOf:
14*d5b0e70fSEmmanuel Vadot  - $ref: pwm.yaml#
15*d5b0e70fSEmmanuel Vadot
16*d5b0e70fSEmmanuel Vadotproperties:
17*d5b0e70fSEmmanuel Vadot  compatible:
18*d5b0e70fSEmmanuel Vadot    const: sunplus,sp7021-pwm
19*d5b0e70fSEmmanuel Vadot
20*d5b0e70fSEmmanuel Vadot  reg:
21*d5b0e70fSEmmanuel Vadot    maxItems: 1
22*d5b0e70fSEmmanuel Vadot
23*d5b0e70fSEmmanuel Vadot  clocks:
24*d5b0e70fSEmmanuel Vadot    maxItems: 1
25*d5b0e70fSEmmanuel Vadot
26*d5b0e70fSEmmanuel Vadot  '#pwm-cells':
27*d5b0e70fSEmmanuel Vadot    const: 2
28*d5b0e70fSEmmanuel Vadot
29*d5b0e70fSEmmanuel VadotunevaluatedProperties: false
30*d5b0e70fSEmmanuel Vadot
31*d5b0e70fSEmmanuel Vadotrequired:
32*d5b0e70fSEmmanuel Vadot  - reg
33*d5b0e70fSEmmanuel Vadot  - clocks
34*d5b0e70fSEmmanuel Vadot
35*d5b0e70fSEmmanuel Vadotexamples:
36*d5b0e70fSEmmanuel Vadot  - |
37*d5b0e70fSEmmanuel Vadot    pwm: pwm@9c007a00 {
38*d5b0e70fSEmmanuel Vadot      compatible = "sunplus,sp7021-pwm";
39*d5b0e70fSEmmanuel Vadot      reg = <0x9c007a00 0x80>;
40*d5b0e70fSEmmanuel Vadot      clocks = <&clkc 0xa2>;
41*d5b0e70fSEmmanuel Vadot      #pwm-cells = <2>;
42*d5b0e70fSEmmanuel Vadot    };
43