1. 25 Jul, 2016 1 commit
    • Brian Norris's avatar
      pwm: Add ChromeOS EC PWM driver · 1f0d3bb0
      Brian Norris authored
      Use the new ChromeOS EC EC_CMD_PWM_{GET,SET}_DUTY commands to control
      one or more PWMs attached to the Embedded Controller. Because the EC
      allows us to modify the duty cycle (as a percentage, where U16_MAX is
      100%) but not the period, we assign the period a fixed value of
      EC_PWM_MAX_DUTY and reject all attempts to change it.
      
      This driver supports only device tree at the moment, because that
      provides a very flexible way of describing the relationship between PWMs
      and their consumer devices (e.g., backlight). On a non-DT system, we'll
      probably want to use the non-GENERIC addressing (i.e., we'll need to
      make special device instances that will use EC_PWM_TYPE_KB_LIGHT or
      EC_PWM_TYPE_DISPLAY_LIGHT), as well as the relatively inflexible
      pwm_lookup infrastructure for matching devices. Defer that work for now.
      Signed-off-by: 's avatarBrian Norris <briannorris@chromium.org>
      Signed-off-by: 's avatarThierry Reding <thierry.reding@gmail.com>
      1f0d3bb0
  2. 11 Jul, 2016 2 commits
  3. 16 Dec, 2015 1 commit
  4. 06 Oct, 2015 4 commits
  5. 09 Sep, 2015 1 commit
    • Ariel D'Alessandro's avatar
      pwm: NXP LPC18xx PWM/SCT driver · 841e6f90
      Ariel D'Alessandro authored
      This commit adds support for NXP LPC18xx PWM/SCT.
      
      NXP LPC SoCs family, which includes LPC18xx/LPC43xx, provides a State
      Configurable Timer (SCT) which can be configured as a Pulse Width
      Modulator. Other SoCs in that family may share the same hardware.
      
      The PWM supports a total of 16 channels, but only 15 can be simultaneously
      requested. There's only one period, global to all the channels, thus PWM
      driver will refuse setting different values to it, unless there's only one
      channel requested.
      Signed-off-by: 's avatarAriel D'Alessandro <ariel@vanguardiasur.com.ar>
      [thierry.reding@gmail.com: remove excessive padding of fields]
      Signed-off-by: 's avatarThierry Reding <thierry.reding@gmail.com>
      841e6f90
  6. 21 Jul, 2015 1 commit
  7. 30 Jan, 2015 2 commits
  8. 17 Nov, 2014 2 commits
  9. 22 Aug, 2014 1 commit
  10. 07 Aug, 2014 1 commit
  11. 11 Jul, 2014 1 commit
  12. 28 Apr, 2014 1 commit
  13. 01 Apr, 2014 1 commit
  14. 18 Mar, 2014 2 commits
  15. 21 Jan, 2014 1 commit
    • Milo Kim's avatar
      pwm: Add LP3943 PWM driver · af66b3c0
      Milo Kim authored
      This is the other of the LP3943 MFD driver.
      LP3943 can be used as a PWM generator, up to 2 channels.
      
      * Two PWM generators supported
      
      * Supported PWM operations
        request, free, config, enable and disable
      
      * Pin assignment
        A driver data, 'pin_used' is checked when a PWM is requested.
        If the output pin is already assigned, then returns as failure.
        If the pin is available, 'pin_used' is set.
        When the PWM is not used anymore, then it is cleared.
        It is defined as unsigned long type for atomic bit operation APIs,
        but only LSB 16bits are used because LP3943 has 16 outputs.
      Signed-off-by: 's avatarMilo Kim <milo.kim@ti.com>
      Acked-by: 's avatarThierry Reding <thierry.reding@gmail.com>
      Signed-off-by: 's avatarLee Jones <lee.jones@linaro.org>
      af66b3c0
  16. 17 Dec, 2013 1 commit
  17. 17 Oct, 2013 1 commit
  18. 12 Aug, 2013 2 commits
  19. 05 Aug, 2013 1 commit
  20. 21 Jun, 2013 2 commits
  21. 12 Jun, 2013 1 commit
  22. 08 Jan, 2013 1 commit
    • Boris BREZILLON's avatar
      pwm: atmel: add Timer Counter Block PWM driver · 9421bade
      Boris BREZILLON authored
      This patch adds a PWM driver based on Atmel Timer Counter Block. The
      Timer Counter Block is used in Waveform generator mode.
      
      A Timer Counter Block provides up to 6 PWM devices grouped by 2:
      * group 0 = PWM 0 and 1
      * group 1 = PWM 2 and 3
      * group 2 = PMW 4 and 5
      
      PWM devices in a given group must be configured with the same period
      value. If a PWM device in a group tries to change the period value and
      the other device is already configured with a different value an error
      will be returned.
      
      This driver requires device tree support. The Timer Counter Block number
      used to create a PWM chip is given by the tc-block field in an
      "atmel,tcb-pwm" compatible node.
      
      This patch was tested on kizbox board (at91sam9g20 SoC) with pwm-leds.
      Signed-off-by: 's avatarBoris BREZILLON <linux-arm@overkiz.com>
      Signed-off-by: 's avatarThierry Reding <thierry.reding@avionic-design.de>
      9421bade
  23. 28 Nov, 2012 4 commits
  24. 22 Nov, 2012 1 commit
  25. 05 Oct, 2012 2 commits
  26. 20 Sep, 2012 1 commit
  27. 19 Sep, 2012 1 commit