xref: /freebsd/sys/contrib/device-tree/Bindings/pwm/sprd,ums512-pwm.yaml (revision 2846c90520eb4cc74e24d586a0ea0f4a0006bc73)
1*2846c905SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*2846c905SEmmanuel Vadot%YAML 1.2
3*2846c905SEmmanuel Vadot---
4*2846c905SEmmanuel Vadot$id: http://devicetree.org/schemas/pwm/sprd,ums512-pwm.yaml#
5*2846c905SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*2846c905SEmmanuel Vadot
7*2846c905SEmmanuel Vadottitle: Spreadtrum/Unisoc UMS512 PWM Controller
8*2846c905SEmmanuel Vadot
9*2846c905SEmmanuel Vadotmaintainers:
10*2846c905SEmmanuel Vadot  - Orson Zhai <orsonzhai@gmail.com>
11*2846c905SEmmanuel Vadot  - Baolin Wang <baolin.wang@linux.alibaba.com>
12*2846c905SEmmanuel Vadot  - Chunyan Zhang <zhang.lyra@gmail.com>
13*2846c905SEmmanuel Vadot
14*2846c905SEmmanuel Vadotproperties:
15*2846c905SEmmanuel Vadot  compatible:
16*2846c905SEmmanuel Vadot    const: sprd,ums512-pwm
17*2846c905SEmmanuel Vadot
18*2846c905SEmmanuel Vadot  reg:
19*2846c905SEmmanuel Vadot    maxItems: 1
20*2846c905SEmmanuel Vadot
21*2846c905SEmmanuel Vadot  clocks:
22*2846c905SEmmanuel Vadot    maxItems: 8
23*2846c905SEmmanuel Vadot
24*2846c905SEmmanuel Vadot  clock-names:
25*2846c905SEmmanuel Vadot    items:
26*2846c905SEmmanuel Vadot      - const: pwm0
27*2846c905SEmmanuel Vadot      - const: enable0
28*2846c905SEmmanuel Vadot      - const: pwm1
29*2846c905SEmmanuel Vadot      - const: enable1
30*2846c905SEmmanuel Vadot      - const: pwm2
31*2846c905SEmmanuel Vadot      - const: enable2
32*2846c905SEmmanuel Vadot      - const: pwm3
33*2846c905SEmmanuel Vadot      - const: enable3
34*2846c905SEmmanuel Vadot
35*2846c905SEmmanuel Vadot  '#pwm-cells':
36*2846c905SEmmanuel Vadot    const: 2
37*2846c905SEmmanuel Vadot
38*2846c905SEmmanuel Vadotrequired:
39*2846c905SEmmanuel Vadot  - compatible
40*2846c905SEmmanuel Vadot  - reg
41*2846c905SEmmanuel Vadot  - clocks
42*2846c905SEmmanuel Vadot  - clock-names
43*2846c905SEmmanuel Vadot
44*2846c905SEmmanuel VadotallOf:
45*2846c905SEmmanuel Vadot  - $ref: pwm.yaml#
46*2846c905SEmmanuel Vadot
47*2846c905SEmmanuel VadotunevaluatedProperties: false
48*2846c905SEmmanuel Vadot
49*2846c905SEmmanuel Vadotexamples:
50*2846c905SEmmanuel Vadot  - |
51*2846c905SEmmanuel Vadot    #include <dt-bindings/clock/sprd,ums512-clk.h>
52*2846c905SEmmanuel Vadot
53*2846c905SEmmanuel Vadot    pwm@32260000 {
54*2846c905SEmmanuel Vadot      compatible = "sprd,ums512-pwm";
55*2846c905SEmmanuel Vadot      reg = <0x32260000 0x10000>;
56*2846c905SEmmanuel Vadot      clocks = <&aon_clk CLK_PWM0>, <&aonapb_gate CLK_PWM0_EB>,
57*2846c905SEmmanuel Vadot               <&aon_clk CLK_PWM1>, <&aonapb_gate CLK_PWM1_EB>,
58*2846c905SEmmanuel Vadot               <&aon_clk CLK_PWM2>, <&aonapb_gate CLK_PWM2_EB>,
59*2846c905SEmmanuel Vadot               <&aon_clk CLK_PWM3>, <&aonapb_gate CLK_PWM3_EB>;
60*2846c905SEmmanuel Vadot      clock-names = "pwm0", "enable0",
61*2846c905SEmmanuel Vadot                    "pwm1", "enable1",
62*2846c905SEmmanuel Vadot                    "pwm2", "enable2",
63*2846c905SEmmanuel Vadot                    "pwm3", "enable3";
64*2846c905SEmmanuel Vadot      #pwm-cells = <2>;
65*2846c905SEmmanuel Vadot    };
66*2846c905SEmmanuel Vadot...
67