blob: d4fc9e8db1d15c02104d2f508fa58e017bc3f3ad [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2# Copyright (C) Sunplus Co., Ltd. 2021
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/pwm/sunplus,sp7021-pwm.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Sunplus SoC SP7021 PWM Controller
9
10maintainers:
11 - Hammer Hsieh <hammerh0314@gmail.com>
12
13allOf:
14 - $ref: pwm.yaml#
15
16properties:
17 compatible:
18 const: sunplus,sp7021-pwm
19
20 reg:
21 maxItems: 1
22
23 clocks:
24 maxItems: 1
25
26 '#pwm-cells':
27 const: 2
28
29unevaluatedProperties: false
30
31required:
32 - reg
33 - clocks
34
35examples:
36 - |
37 pwm: pwm@9c007a00 {
38 compatible = "sunplus,sp7021-pwm";
39 reg = <0x9c007a00 0x80>;
40 clocks = <&clkc 0xa2>;
41 #pwm-cells = <2>;
42 };