Debian Codegraph @

Documentation/devicetree/bindings/pwm/thead,th1520-pwm.yaml

raw symbols SCIP
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/pwm/thead,th1520-pwm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: T-HEAD TH1520 PWM controller
8
9 maintainers:
10 - Michal Wilczynski <[email protected]>
11
12 allOf:
13 - $ref: pwm.yaml#
14
15 properties:
16 compatible:
17 const: thead,th1520-pwm
18
19 reg:
20 maxItems: 1
21
22 clocks:
23 items:
24 - description: SoC PWM clock
25
26 "#pwm-cells":
27 const: 3
28
29 required:
30 - compatible
31 - reg
32 - clocks
33
34 unevaluatedProperties: false
35
36 examples:
37 - |
38 #include <dt-bindings/clock/thead,th1520-clk-ap.h>
39 soc {
40 #address-cells = <2>;
41 #size-cells = <2>;
42 pwm@ffec01c000 {
43 compatible = "thead,th1520-pwm";
44 reg = <0xff 0xec01c000 0x0 0x4000>;
45 clocks = <&clk CLK_PWM>;
46 #pwm-cells = <3>;
47 };
48 };