Commit f6c9b597 authored by Fabrice Gasnier's avatar Fabrice Gasnier Committed by Thierry Reding

dt-bindings: pwm: stm32-lp: Document pin control sleep state

Add documentation for pin control sleep state on STM32 LPTimer PWM.
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarFabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 9e37a53e
...@@ -11,8 +11,10 @@ Required parameters: ...@@ -11,8 +11,10 @@ Required parameters:
bindings defined in pwm.txt. bindings defined in pwm.txt.
Optional properties: Optional properties:
- pinctrl-names: Set to "default". - pinctrl-names: Set to "default". An additional "sleep" state can be
- pinctrl-0: Phandle pointing to pin configuration node for PWM. defined to set pins in sleep state when in low power.
- pinctrl-n: Phandle(s) pointing to pin configuration node for PWM,
respectively for "default" and "sleep" states.
Example: Example:
timer@40002400 { timer@40002400 {
...@@ -21,7 +23,8 @@ Example: ...@@ -21,7 +23,8 @@ Example:
pwm { pwm {
compatible = "st,stm32-pwm-lp"; compatible = "st,stm32-pwm-lp";
#pwm-cells = <3>; #pwm-cells = <3>;
pinctrl-names = "default"; pinctrl-names = "default", "sleep";
pinctrl-0 = <&lppwm1_pins>; pinctrl-0 = <&lppwm1_pins>;
pinctrl-1 = <&lppwm1_sleep_pins>;
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment