1# Copyright (c) 2018, Diego Sueiro <diego.sueiro@gmail.com>
2# SPDX-License-Identifier: Apache-2.0
3
4description: |
5    This driver supports both i.MX6SX and i.MX7D PWM.
6    The compatible string is named "imx27" because the hardware module is the
7    same module present starting from imx27 CPUs and this driver can potentially
8    support other CPUs with imx27 module. This is also the same string used
9    in the Linux kernel.
10
11compatible: "fsl,imx27-pwm"
12
13include: [pwm-controller.yaml, pinctrl-device.yaml, base.yaml, "nxp,rdc-policy.yaml"]
14
15properties:
16  reg:
17    required: true
18
19  interrupts:
20    required: true
21
22  prescaler:
23    type: int
24    required: true
25    description: Set the PWM prescale between 0 and 4096
26
27  "#pwm-cells":
28    const: 2
29
30pwm-cells:
31  - channel
32  # period in terms of nanoseconds
33  - period
34