linux-sg2042/drivers/pwm
H Hartley Sweeten 76abbdde2d pwm: Add sysfs interface
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>
2013-06-21 11:32:51 +02:00
..
Kconfig pwm: Add sysfs interface 2013-06-21 11:32:51 +02:00
Makefile pwm: Add sysfs interface 2013-06-21 11:32:51 +02:00
core.c pwm: Add sysfs interface 2013-06-21 11:32:51 +02:00
pwm-ab8500.c pwm: ab8500: Add .owner to struct pwm_ops 2013-04-02 11:29:11 +02:00
pwm-atmel-tcb.c pwm: Fill in missing .owner fields 2013-06-12 13:18:29 +02:00
pwm-bfin.c pwm: Fill in missing .owner fields 2013-06-12 13:18:29 +02:00
pwm-imx.c pwm: Fill in missing .owner fields 2013-06-12 13:18:29 +02:00
pwm-jz4740.c pwm: remove use of __devexit 2012-11-28 12:23:41 -08:00
pwm-lpc32xx.c pwm: Fill in missing .owner fields 2013-06-12 13:18:29 +02:00
pwm-mxs.c pwm: Fill in missing .owner fields 2013-06-12 13:18:29 +02:00
pwm-pca9685.c pwm: Fill in missing .owner fields 2013-06-12 13:18:29 +02:00
pwm-puv3.c pwm: Fill in missing .owner fields 2013-06-12 13:18:29 +02:00
pwm-pxa.c drivers/pwm: don't check resource with devm_ioremap_resource 2013-05-18 11:55:58 +02:00
pwm-samsung.c pwm: samsung: convert s3c_pwm to dev_pm_ops 2013-03-08 08:30:55 +01:00
pwm-spear.c pwm: Fill in missing .owner fields 2013-06-12 13:18:29 +02:00
pwm-tegra.c pwm: Fill in missing .owner fields 2013-06-12 13:18:29 +02:00
pwm-tiecap.c drivers/pwm: don't check resource with devm_ioremap_resource 2013-05-18 11:55:58 +02:00
pwm-tiehrpwm.c drivers/pwm: don't check resource with devm_ioremap_resource 2013-05-18 11:55:58 +02:00
pwm-tipwmss.c drivers/pwm: don't check resource with devm_ioremap_resource 2013-05-18 11:55:58 +02:00
pwm-tipwmss.h pwm: davinci: Add Kconfig support for ECAP & EHRPWM devices 2013-03-22 11:35:20 +01:00
pwm-twl-led.c pwm: Constify OF match tables 2013-04-23 07:42:20 +02:00
pwm-twl.c pwm: Constify OF match tables 2013-04-23 07:42:20 +02:00
pwm-vt8500.c drivers/pwm: don't check resource with devm_ioremap_resource 2013-05-18 11:55:58 +02:00
sysfs.c pwm: Add sysfs interface 2013-06-21 11:32:51 +02:00