0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 # Copyright (C) Sunplus Co., Ltd. 2021
0003 %YAML 1.2
0004 ---
0005 $id: http://devicetree.org/schemas/pwm/sunplus,sp7021-pwm.yaml#
0006 $schema: http://devicetree.org/meta-schemas/core.yaml#
0007
0008 title: Sunplus SoC SP7021 PWM Controller
0009
0010 maintainers:
0011 - Hammer Hsieh <hammerh0314@gmail.com>
0012
0013 allOf:
0014 - $ref: pwm.yaml#
0015
0016 properties:
0017 compatible:
0018 const: sunplus,sp7021-pwm
0019
0020 reg:
0021 maxItems: 1
0022
0023 clocks:
0024 maxItems: 1
0025
0026 '#pwm-cells':
0027 const: 2
0028
0029 unevaluatedProperties: false
0030
0031 required:
0032 - reg
0033 - clocks
0034
0035 examples:
0036 - |
0037 pwm: pwm@9c007a00 {
0038 compatible = "sunplus,sp7021-pwm";
0039 reg = <0x9c007a00 0x80>;
0040 clocks = <&clkc 0xa2>;
0041 #pwm-cells = <2>;
0042 };