1description: STM32 PWM
2
3compatible: "st,stm32-pwm"
4
5include: [pwm-controller.yaml, base.yaml, pinctrl-device.yaml]
6
7properties:
8  pinctrl-0:
9    required: true
10
11  pinctrl-names:
12    required: true
13
14  four-channel-capture-support:
15    type: boolean
16    description: |
17      Add support to capture on four channels. This is less accurate than
18      the default 2 channel support because the counter is reset by
19      interrupt instead of slave-mode controller. This option can also
20      be used as alternative for timers that does not support slave mode.
21
22  "#pwm-cells":
23    const: 3
24    description: |
25      Number of items to expect in a PWM
26      - channel of the timer used for PWM
27      - period to set in ns
28      - flags : combination of standard flags like PWM_POLARITY_NORMAL
29        or specific flags like STM32_PWM_COMPLEMENTARY. As an example,
30        the following complementary PWMs(CH2&CH2N) are shown below.
31          <&pwm1 2 100 (PWM_POLARITY_NORMAL)>;
32          <&pwm1 2 100 (PWM_POLARITY_NORMAL | STM32_PWM_COMPLEMENTARY)>;
33
34pwm-cells:
35  - channel
36  - period
37  - flags
38