1# Copyright (c) 2019, Linaro Limited
2# SPDX-License-Identifier: Apache-2.0
3
4description: NXP MCUX PWM
5
6compatible: "nxp,imx-pwm"
7
8include: [pwm-controller.yaml, pinctrl-device.yaml, base.yaml]
9
10properties:
11  index:
12    type: int
13    description: flexpwm submodule index
14    required: true
15
16  interrupts:
17    required: true
18
19  run-in-wait:
20    type: boolean
21    description: |
22      Enable for PWM to keep running in WAIT mode.
23
24  run-in-debug:
25    type: boolean
26    description: |
27      Enable for PWM to keep running in debug mode.
28
29  nxp,prescaler:
30    type: int
31    enum: [1, 2, 4, 8, 16, 32, 64, 128]
32    required: true
33    description: |
34      Clock prescaler at the input of the PWM.
35
36  nxp,reload:
37    type: string
38    enum:
39      - "immediate"
40      - "half-cycle"
41      - "full-cycle"
42      - "half-and-full-cycle"
43    description: |
44      Select how to load the buffered-registers with new values:
45      "immediate" - buffered-registers get loaded with new values as soon as LDOK bit is set;
46      "half-cycle" - registers loaded on a PWM half cycle;
47      "full-cycle" - registers loaded on a PWM full cycle;
48      "half-and-full-cycle" - registers loaded on a PWM half & full cycle.
49
50  "#pwm-cells":
51    const: 3
52
53pwm-cells:
54  - channel
55  - period
56  - flags
57