1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/pwm/pwm.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: PWM controllers (providers)
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Thierry Reding <thierry.reding@gmail.com>
11c66ec88fSEmmanuel Vadot
12e67e8565SEmmanuel Vadotselect: false
13e67e8565SEmmanuel Vadot
14c66ec88fSEmmanuel Vadotproperties:
15c66ec88fSEmmanuel Vadot  $nodename:
16*f126890aSEmmanuel Vadot    pattern: "^pwm(@.*|-([0-9]|[1-9][0-9]+))?$"
17c66ec88fSEmmanuel Vadot
18c66ec88fSEmmanuel Vadot  "#pwm-cells":
19c66ec88fSEmmanuel Vadot    description:
20c66ec88fSEmmanuel Vadot      Number of cells in a PWM specifier.
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadotrequired:
23c66ec88fSEmmanuel Vadot  - "#pwm-cells"
24c66ec88fSEmmanuel Vadot
256be33864SEmmanuel VadotadditionalProperties: true
266be33864SEmmanuel Vadot
27c66ec88fSEmmanuel Vadotexamples:
28c66ec88fSEmmanuel Vadot  - |
295956d97fSEmmanuel Vadot    pwm: pwm@1c20e00 {
305956d97fSEmmanuel Vadot        compatible = "allwinner,sun7i-a20-pwm";
315956d97fSEmmanuel Vadot        reg = <0x01c20e00 0xc>;
325956d97fSEmmanuel Vadot        clocks = <&osc24M>;
335956d97fSEmmanuel Vadot        #pwm-cells = <3>;
34c66ec88fSEmmanuel Vadot    };
35