diff options
author | Thierry Reding <thierry.reding@gmail.com> | 2015-07-27 06:00:23 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2015-08-17 09:40:21 -0400 |
commit | 6e146f5c41da7e9601fe92fb4d06b45431dbf95b (patch) | |
tree | ccc094c4277c29c8b8bb6238fa4356ea66c40d7d | |
parent | 048838027667872a75d3af40c51a22088bafd968 (diff) |
pwm: Add to device-drivers documentation
Add a short introductory text along with API documentation generated
from kerneldoc comments for the PWM framework.
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r-- | Documentation/DocBook/device-drivers.tmpl | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/DocBook/device-drivers.tmpl b/Documentation/DocBook/device-drivers.tmpl index faf09d4a0ea8..172bff8cda79 100644 --- a/Documentation/DocBook/device-drivers.tmpl +++ b/Documentation/DocBook/device-drivers.tmpl | |||
@@ -455,4 +455,31 @@ X!Ilib/fonts/fonts.c | |||
455 | !Edrivers/hsi/hsi.c | 455 | !Edrivers/hsi/hsi.c |
456 | </chapter> | 456 | </chapter> |
457 | 457 | ||
458 | <chapter id="pwm"> | ||
459 | <title>Pulse-Width Modulation (PWM)</title> | ||
460 | <para> | ||
461 | Pulse-width modulation is a modulation technique primarily used to | ||
462 | control power supplied to electrical devices. | ||
463 | </para> | ||
464 | <para> | ||
465 | The PWM framework provides an abstraction for providers and consumers | ||
466 | of PWM signals. A controller that provides one or more PWM signals is | ||
467 | registered as <structname>struct pwm_chip</structname>. Providers are | ||
468 | expected to embed this structure in a driver-specific structure. This | ||
469 | structure contains fields that describe a particular chip. | ||
470 | </para> | ||
471 | <para> | ||
472 | A chip exposes one or more PWM signal sources, each of which exposed | ||
473 | as a <structname>struct pwm_device</structname>. Operations can be | ||
474 | performed on PWM devices to control the period, duty cycle, polarity | ||
475 | and active state of the signal. | ||
476 | </para> | ||
477 | <para> | ||
478 | Note that PWM devices are exclusive resources: they can always only be | ||
479 | used by one consumer at a time. | ||
480 | </para> | ||
481 | !Iinclude/linux/pwm.h | ||
482 | !Edrivers/pwm/core.c | ||
483 | </chapter> | ||
484 | |||
458 | </book> | 485 | </book> |