xref: /freebsd/sys/contrib/device-tree/Bindings/pwm/pwm.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
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:
16f126890aSEmmanuel Vadot    pattern: "^pwm(@.*|-([0-9]|[1-9][0-9]+))?$"
17c66ec88fSEmmanuel Vadot
18c66ec88fSEmmanuel Vadot  "#pwm-cells":
19*0e8011faSEmmanuel Vadot    description: |
20*0e8011faSEmmanuel Vadot      Number of cells in a PWM specifier. Typically the cells represent, in
21*0e8011faSEmmanuel Vadot      order: the chip-relative PWM number, the PWM period in nanoseconds and
22*0e8011faSEmmanuel Vadot      optionally a number of flags (defined in <dt-bindings/pwm/pwm.h>).
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadotrequired:
25c66ec88fSEmmanuel Vadot  - "#pwm-cells"
26c66ec88fSEmmanuel Vadot
276be33864SEmmanuel VadotadditionalProperties: true
286be33864SEmmanuel Vadot
29c66ec88fSEmmanuel Vadotexamples:
30c66ec88fSEmmanuel Vadot  - |
315956d97fSEmmanuel Vadot    pwm: pwm@1c20e00 {
325956d97fSEmmanuel Vadot        compatible = "allwinner,sun7i-a20-pwm";
335956d97fSEmmanuel Vadot        reg = <0x01c20e00 0xc>;
345956d97fSEmmanuel Vadot        clocks = <&osc24M>;
355956d97fSEmmanuel Vadot        #pwm-cells = <3>;
36c66ec88fSEmmanuel Vadot    };
37