lkml.org 
[lkml]   [2020]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH v2 2/6] dt-bindings: pwm: document the PWM no-flag
Date
Add the description of PWM_NOFLAGS flag property.

Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
---

Changes in v2:
- add the example of PWM_NOFLAGS usage;
- Use PWM_NOFLAGS instead of PWM_POLARITY_NORMAL to avoid possible
conflict with enum pwm_polarity in <linux/pwm.h>. Also, this name
reflects the sense of the original value more precisely.

Documentation/devicetree/bindings/pwm/pwm.txt | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pwm/pwm.txt b/Documentation/devicetree/bindings/pwm/pwm.txt
index 084886bd721e..7f0bbda127c4 100644
--- a/Documentation/devicetree/bindings/pwm/pwm.txt
+++ b/Documentation/devicetree/bindings/pwm/pwm.txt
@@ -45,7 +45,8 @@ period in nanoseconds.

Optionally, the pwm-specifier can encode a number of flags (defined in
<dt-bindings/pwm/pwm.h>) in a third cell:
-- PWM_POLARITY_INVERTED: invert the PWM signal polarity
+- PWM_NOFLAGS: no modification flags.
+- PWM_POLARITY_INVERTED: invert the PWM signal polarity.

Example with optional PWM specifier for inverse polarity

@@ -54,6 +55,14 @@ Example with optional PWM specifier for inverse polarity
pwm-names = "backlight";
};

+ vibrator {
+ [...]
+ pwms = <&pwm1 0 10000000 PWM_POLARITY_INVERTED>,
+ <&pwm2 0 10000000 PWM_NOFLAGS>;
+ pwm-names = "enable", "direction";
+ [...]
+ };
+
2) PWM controller nodes
-----------------------

--
2.24.1
\
 
 \ /
  Last update: 2020-04-05 21:24    [W:0.058 / U:2.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site