diff options
author | Lee Jones <lee.jones@linaro.org> | 2016-06-08 12:21:25 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2016-06-10 17:01:40 +0300 |
commit | 1a366fe9153f445e950a7a344932b7419aa83094 (patch) | |
tree | b6d66b37c862446d280a03179c178913d9090aad /Documentation/ABI/testing/sysfs-class-pwm | |
parent | 3a3d1a4e32ab47323d7b8c8b7631a8d36a3098b2 (diff) | |
download | linux-1a366fe9153f445e950a7a344932b7419aa83094.tar.xz |
pwm: sysfs: Add PWM capture support
Allow a user to read PWM capture results from sysfs. To start a capture
and read the result, simply read the file:
$ cat $PWMCHIP/capture
The output format is "<period> <duty cycle>".
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'Documentation/ABI/testing/sysfs-class-pwm')
-rw-r--r-- | Documentation/ABI/testing/sysfs-class-pwm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-pwm b/Documentation/ABI/testing/sysfs-class-pwm index c479d77b67c5..c20e61354561 100644 --- a/Documentation/ABI/testing/sysfs-class-pwm +++ b/Documentation/ABI/testing/sysfs-class-pwm @@ -77,3 +77,12 @@ Description: Enable/disable the PWM signal. 0 is disabled 1 is enabled + +What: /sys/class/pwm/pwmchipN/pwmX/capture +Date: June 2016 +KernelVersion: 4.8 +Contact: Lee Jones <lee.jones@linaro.org> +Description: + Capture information about a PWM signal. The output format is a + pair unsigned integers (period and duty cycle), separated by a + single space. |