xref: /freebsd/sys/contrib/device-tree/Bindings/pwm/mxs-pwm.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/pwm/mxs-pwm.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Freescale MXS PWM controller
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Shawn Guo <shawnguo@kernel.org>
11c66ec88fSEmmanuel Vadot
12c9ccf3a3SEmmanuel VadotallOf:
13c9ccf3a3SEmmanuel Vadot  - $ref: pwm.yaml#
14c9ccf3a3SEmmanuel Vadot
15c66ec88fSEmmanuel Vadotproperties:
16c66ec88fSEmmanuel Vadot  compatible:
17*84943d6fSEmmanuel Vadot    oneOf:
18*84943d6fSEmmanuel Vadot      - const: fsl,imx23-pwm
19*84943d6fSEmmanuel Vadot      - items:
20*84943d6fSEmmanuel Vadot          - enum:
21*84943d6fSEmmanuel Vadot              - fsl,imx28-pwm
22*84943d6fSEmmanuel Vadot          - const: fsl,imx23-pwm
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadot  reg:
25c66ec88fSEmmanuel Vadot    maxItems: 1
26c66ec88fSEmmanuel Vadot
27*84943d6fSEmmanuel Vadot  clocks:
28*84943d6fSEmmanuel Vadot    maxItems: 1
29*84943d6fSEmmanuel Vadot
30c66ec88fSEmmanuel Vadot  "#pwm-cells":
31c66ec88fSEmmanuel Vadot    const: 3
32c66ec88fSEmmanuel Vadot
33c66ec88fSEmmanuel Vadot  fsl,pwm-number:
34f126890aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
35c66ec88fSEmmanuel Vadot    description: u32 value representing the number of PWM devices
36c66ec88fSEmmanuel Vadot
37c66ec88fSEmmanuel Vadotrequired:
38c66ec88fSEmmanuel Vadot  - compatible
39c66ec88fSEmmanuel Vadot  - reg
40*84943d6fSEmmanuel Vadot  - clocks
41c66ec88fSEmmanuel Vadot  - fsl,pwm-number
42c66ec88fSEmmanuel Vadot
43c66ec88fSEmmanuel VadotadditionalProperties: false
44c66ec88fSEmmanuel Vadot
45c66ec88fSEmmanuel Vadotexamples:
46c66ec88fSEmmanuel Vadot  - |
47c66ec88fSEmmanuel Vadot    pwm@80064000 {
48c66ec88fSEmmanuel Vadot        compatible = "fsl,imx23-pwm";
49c66ec88fSEmmanuel Vadot        reg = <0x80064000 0x2000>;
50*84943d6fSEmmanuel Vadot        clocks = <&clks 30>;
51c66ec88fSEmmanuel Vadot        #pwm-cells = <3>;
52c66ec88fSEmmanuel Vadot        fsl,pwm-number = <8>;
53c66ec88fSEmmanuel Vadot    };
54