1. 21 6月, 2013 1 次提交
    • H
      pwm: Add sysfs interface · 76abbdde
      H Hartley Sweeten 提交于
      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: NH 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: NThierry Reding <thierry.reding@gmail.com>
      76abbdde
  2. 10 6月, 2013 1 次提交
  3. 02 2月, 2013 2 次提交
  4. 30 1月, 2013 2 次提交
  5. 06 12月, 2012 1 次提交
  6. 23 11月, 2012 1 次提交
  7. 06 10月, 2012 1 次提交
    • T
      pwm: Check for negative duty-cycle and period · c2d476a9
      Thierry Reding 提交于
      Make sure the duty-cycle and period passed in are not negative. This
      should eventually be made implicit by making them unsigned. While at
      it, the drivers' .config() implementations can have the equivalent
      checks removed.
      Signed-off-by: NThierry Reding <thierry.reding@avionic-design.de>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Sachin Kamat <sachin.kamat@linaro.org>
      Cc: Axel Lin <axel.lin@gmail.com>
      Cc: Kukjin Kim <kgene.kim@samsung.com>
      Cc: Jingoo Han <jg1.han@samsung.com>
      Cc: Jonghwan Choi <jhbird.choi@samsung.com>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: "Philip, Avinash" <avinashphilip@ti.com>
      Cc: Vaibhav Bedia <vaibhav.bedia@ti.com>
      Acked-by: NJingoo Han <jg1.han@samsung.com>
      c2d476a9
  8. 10 9月, 2012 2 次提交
  9. 17 8月, 2012 2 次提交
  10. 23 7月, 2012 1 次提交
  11. 15 6月, 2012 5 次提交