Commit 4205e356 authored by Fabrice Gasnier's avatar Fabrice Gasnier Committed by Thierry Reding

dt-bindings: pwm-stm32: Document pinctrl sleep state

Add documentation for pinctrl sleep state that can be used by STM32
timers PWM.
Signed-off-by: default avatarFabrice Gasnier <fabrice.gasnier@st.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 1b98ad3b
...@@ -5,8 +5,9 @@ See ../mfd/stm32-timers.txt for details about the parent node. ...@@ -5,8 +5,9 @@ See ../mfd/stm32-timers.txt for details about the parent node.
Required parameters: Required parameters:
- compatible: Must be "st,stm32-pwm". - compatible: Must be "st,stm32-pwm".
- pinctrl-names: Set to "default". - pinctrl-names: Set to "default". An additional "sleep" state can be
- pinctrl-0: List of phandles pointing to pin configuration nodes for PWM module. defined to set pins in sleep state when in low power.
- pinctrl-n: List of phandles pointing to pin configuration nodes for PWM module.
For Pinctrl properties see ../pinctrl/pinctrl-bindings.txt For Pinctrl properties see ../pinctrl/pinctrl-bindings.txt
- #pwm-cells: Should be set to 3. This PWM chip uses the default 3 cells - #pwm-cells: Should be set to 3. This PWM chip uses the default 3 cells
bindings defined in pwm.txt. bindings defined in pwm.txt.
...@@ -32,7 +33,8 @@ Example: ...@@ -32,7 +33,8 @@ Example:
compatible = "st,stm32-pwm"; compatible = "st,stm32-pwm";
#pwm-cells = <3>; #pwm-cells = <3>;
pinctrl-0 = <&pwm1_pins>; pinctrl-0 = <&pwm1_pins>;
pinctrl-names = "default"; pinctrl-1 = <&pwm1_sleep_pins>;
pinctrl-names = "default", "sleep";
st,breakinput = <0 1 5>; st,breakinput = <0 1 5>;
}; };
}; };
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