mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-04 09:39:03 +00:00
Add a simple sysfs interface to the generic PWM framework.
/sys/class/pwm/
`-- pwmchipN/ for each PWM chip
|-- export (w/o) ask the kernel to export a PWM channel
|-- npwm (r/o) number of PWM channels in this PWM chip
|-- pwmX/ for each exported PWM channel
| |-- duty_cycle (r/w) duty cycle (in nanoseconds)
| |-- enable (r/w) enable/disable PWM
| |-- period (r/w) period (in nanoseconds)
| `-- polarity (r/w) polarity of PWM (normal/inversed)
`-- unexport (w/o) return a PWM channel to the kernel
Based on work by Lars Poeschel.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Lars Poeschel <poeschel@lemonage.de>
Cc: Ryan Mallon <rmallon@gmail.com>
Cc: Rob Landley <rob@landley.net>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
|
||
|---|---|---|
| .. | ||
| core.c | ||
| Kconfig | ||
| Makefile | ||
| pwm-ab8500.c | ||
| pwm-atmel-tcb.c | ||
| pwm-bfin.c | ||
| pwm-imx.c | ||
| pwm-jz4740.c | ||
| pwm-lpc32xx.c | ||
| pwm-mxs.c | ||
| pwm-pca9685.c | ||
| pwm-puv3.c | ||
| pwm-pxa.c | ||
| pwm-samsung.c | ||
| pwm-spear.c | ||
| pwm-tegra.c | ||
| pwm-tiecap.c | ||
| pwm-tiehrpwm.c | ||
| pwm-tipwmss.c | ||
| pwm-tipwmss.h | ||
| pwm-twl-led.c | ||
| pwm-twl.c | ||
| pwm-vt8500.c | ||
| sysfs.c | ||