diff options
author | Gerald Baeza <gerald.baeza@st.com> | 2018-02-23 08:36:03 -0500 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2018-03-27 18:53:23 -0400 |
commit | e7c4b02c2642a5ff3704bd86ff23a6a7a0f4e279 (patch) | |
tree | cdd876cead30fb4feda20c4fa3739aaa06c015fe | |
parent | 4eb67a209645a87b8aca070aa9735eed90177829 (diff) |
dt-bindings: pwm-stm32-lp: Add #pwm-cells
STM32 Low-Power Timer supports generic 3 cells PWM to encode PWM number,
period and polarity.
Signed-off-by: Gerald Baeza <gerald.baeza@st.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r-- | Documentation/devicetree/bindings/pwm/pwm-stm32-lp.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/pwm/pwm-stm32-lp.txt b/Documentation/devicetree/bindings/pwm/pwm-stm32-lp.txt index f8338d11fd2b..bd23302e84be 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-stm32-lp.txt +++ b/Documentation/devicetree/bindings/pwm/pwm-stm32-lp.txt | |||
@@ -7,6 +7,8 @@ See ../mfd/stm32-lptimer.txt for details about the parent node. | |||
7 | 7 | ||
8 | Required parameters: | 8 | Required parameters: |
9 | - compatible: Must be "st,stm32-pwm-lp". | 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. | ||
10 | 12 | ||
11 | Optional properties: | 13 | Optional properties: |
12 | - pinctrl-names: Set to "default". | 14 | - pinctrl-names: Set to "default". |
@@ -18,6 +20,7 @@ Example: | |||
18 | ... | 20 | ... |
19 | pwm { | 21 | pwm { |
20 | compatible = "st,stm32-pwm-lp"; | 22 | compatible = "st,stm32-pwm-lp"; |
23 | #pwm-cells = <3>; | ||
21 | pinctrl-names = "default"; | 24 | pinctrl-names = "default"; |
22 | pinctrl-0 = <&lppwm1_pins>; | 25 | pinctrl-0 = <&lppwm1_pins>; |
23 | }; | 26 | }; |