Skip to content

Commit 28f73ea

Browse files
committed
dts: bindings : explains the flag for stm32 complementary channel
Depending on the stm32 mcus and the timer instance, several channels can enable the complementary output for the PWM signal. Example of a DTS <&pwm1 2 4 (PWM_POLARITY_NORMAL | PWM_COMPLEMENTARY)>; Note that the timer channel must support the complementary output on that channel : usually channels 1-3 + channel 4 on stm32g4x. Signed-off-by: Francois Ramu <[email protected]>
1 parent 75634f1 commit 28f73ea

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,15 @@ properties:
2626
2727
"#pwm-cells":
2828
const: 3
29+
description: |
30+
Number of items to expect in a PWM
31+
- channel of the timer used for PWM
32+
- period to set in ns
33+
- flags : combination of standard flags like PWM_POLARITY_NORMAL
34+
or specific flags like PWM_STM32_COMPLEMENTARY. As an example for channel2:
35+
<&pwm1 2 100 (PWM_POLARITY_NORMAL | PWM_STM32_COMPLEMENTARY)>;
2936
3037
pwm-cells:
3138
- channel
32-
# period in terms of nanoseconds
3339
- period
3440
- flags

0 commit comments

Comments
 (0)