Skip to content

Commit a1c5ce4

Browse files
savent404qipengzha
authored andcommitted
dts: bindings: explains complementary pwms
Since Merge zephyrproject-rtos#57360, user can use ch<x> and ch<x>N simultaneously, which is beneficial for STM32 users working in motor control area. Signed-off-by: Savent Gate <[email protected]>
1 parent 31f0537 commit a1c5ce4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dts/bindings/pwm/st,stm32-pwm.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ properties:
1818
- channel of the timer used for PWM
1919
- period to set in ns
2020
- flags : combination of standard flags like PWM_POLARITY_NORMAL
21-
or specific flags like STM32_PWM_COMPLEMENTARY. As an example for channel2:
22-
<&pwm1 2 100 (PWM_POLARITY_NORMAL | STM32_PWM_COMPLEMENTARY)>;
21+
or specific flags like STM32_PWM_COMPLEMENTARY. As an example,
22+
the following complementary PWMs(CH2&CH2N) are shown below.
23+
<&pwm1 2 100 (PWM_POLARITY_NORMAL)>;
24+
<&pwm1 2 100 (PWM_POLARITY_NORMAL | STM32_PWM_COMPLEMENTARY)>;
2325
2426
pwm-cells:
2527
- channel

0 commit comments

Comments
 (0)