blob: f2206ec3c7c4c15a44300df48f6c6a9166a2b550 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/pwm/pwm.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: PWM controllers (providers)
8
9maintainers:
10 - Thierry Reding <thierry.reding@gmail.com>
11
12select: false
13
14properties:
15 $nodename:
16 pattern: "^pwm(@.*|-([0-9]|[1-9][0-9]+))?$"
17
18 "#pwm-cells":
Tom Rini6b642ac2024-10-01 12:20:28 -060019 description: |
20 Number of cells in a PWM specifier. Typically the cells represent, in
21 order: the chip-relative PWM number, the PWM period in nanoseconds and
22 optionally a number of flags (defined in <dt-bindings/pwm/pwm.h>).
Tom Rini53633a82024-02-29 12:33:36 -050023
24required:
25 - "#pwm-cells"
26
27additionalProperties: true
28
29examples:
30 - |
31 pwm: pwm@1c20e00 {
32 compatible = "allwinner,sun7i-a20-pwm";
33 reg = <0x01c20e00 0xc>;
34 clocks = <&osc24M>;
35 #pwm-cells = <3>;
36 };