File Index
Files and directories
Sign in
FILE

thead,th1520-pwm.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/pwm/thead,th1520-pwm.yaml YAML
 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
 7title: T-HEAD TH1520 PWM controller
 8
 9maintainers:
10  - Michal Wilczynski <m.wilczynski@samsung.com>
11
12allOf:
13  - $ref: pwm.yaml#
14
15properties:
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
29required:
30  - compatible
31  - reg
32  - clocks
33
34unevaluatedProperties: false
35
36examples:
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    };
~/ Read-only file preview.