1# Copyright 2024 NXP
2# SPDX-License-Identifier: Apache-2.0
3
4description: NXP Flexio PWM controller.
5  Each flexio timer can be used for generating one pwm pulse.
6  The two PWM modes supported by flexio are chosen based on the selected polarity -
7  Dual 8-bit counters PWM mode and Dual 8-bit counters PWM Low mode.
8
9compatible: "nxp,flexio-pwm"
10
11include: [pwm-controller.yaml, pinctrl-device.yaml, base.yaml]
12
13properties:
14  pinctrl-0:
15    required: true
16
17  pinctrl-names:
18    required: true
19
20  "#pwm-cells":
21    const: 3
22
23pwm-cells:
24  - channel
25  - period
26  - flags
27
28child-binding:
29  description: |
30    Flexio PWM channel configuration.
31
32  properties:
33    pin-id:
34      type: int
35      required: true
36      description: |
37        pin-id should be populated with number 'n' specified in the
38        FXIO_D<n> data pin of your board's schematic.
39
40    prescaler:
41      type: int
42      description: |
43        The clock divider for internal counter prescaler.
44        - 1: Divide by 1
45        - 16: Divide by 16
46        - 256: Divide by 256
47      enum: [1, 16, 256]
48