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