blob: 8f50e23ca8c9b3a3ead1bf9e1d554b8a4277b33e [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# 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 - Anson Huang <anson.huang@nxp.com>
12
13allOf:
14 - $ref: pwm.yaml#
15
16properties:
17 compatible:
18 oneOf:
19 - const: fsl,imx23-pwm
20 - items:
21 - enum:
22 - fsl,imx28-pwm
23 - const: fsl,imx23-pwm
24
25 reg:
26 maxItems: 1
27
28 clocks:
29 maxItems: 1
30
31 "#pwm-cells":
32 const: 3
33
34 fsl,pwm-number:
35 $ref: /schemas/types.yaml#/definitions/uint32
36 description: u32 value representing the number of PWM devices
37
38required:
39 - compatible
40 - reg
41 - clocks
42 - fsl,pwm-number
43
44additionalProperties: false
45
46examples:
47 - |
48 pwm@80064000 {
49 compatible = "fsl,imx23-pwm";
50 reg = <0x80064000 0x2000>;
51 clocks = <&clks 30>;
52 #pwm-cells = <3>;
53 fsl,pwm-number = <8>;
54 };