blob: 6521bc44a74e99d821bc5a87467451ab018c57f8 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001STMicroelectronics STM32 Low-Power Timer PWM
2
3STM32 Low-Power Timer provides single channel PWM.
4
5Must be a sub-node of an STM32 Low-Power Timer device tree node.
6See ../mfd/stm32-lptimer.txt for details about the parent node.
7
8Required parameters:
9- compatible: Must be "st,stm32-pwm-lp".
10- #pwm-cells: Should be set to 3. This PWM chip uses the default 3 cells
11 bindings defined in pwm.txt.
12
13Optional properties:
14- pinctrl-names: Set to "default". An additional "sleep" state can be
15 defined to set pins in sleep state when in low power.
16- pinctrl-n: Phandle(s) pointing to pin configuration node for PWM,
17 respectively for "default" and "sleep" states.
18
19Example:
20 timer@40002400 {
21 compatible = "st,stm32-lptimer";
22 ...
23 pwm {
24 compatible = "st,stm32-pwm-lp";
25 #pwm-cells = <3>;
26 pinctrl-names = "default", "sleep";
27 pinctrl-0 = <&lppwm1_pins>;
28 pinctrl-1 = <&lppwm1_sleep_pins>;
29 };
30 };