Merge tag 'for-5.3-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / pwm / pwm-stm32-lp.txt
1 STMicroelectronics STM32 Low-Power Timer PWM
2
3 STM32 Low-Power Timer provides single channel PWM.
4
5 Must be a sub-node of an STM32 Low-Power Timer device tree node.
6 See ../mfd/stm32-lptimer.txt for details about the parent node.
7
8 Required 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
13 Optional 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
19 Example:
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         };