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 3 commits
  3. 23 Mar, 2016 1 commit
  4. 04 Jan, 2016 1 commit
    • Vegard Nossum's avatar
      pwm: add HAS_IOMEM dependency to PWM_FSL_FTM · 36d5be4b
      Vegard Nossum authored
      Ran into this on UML:
      
      drivers/built-in.o: In function `fsl_pwm_probe':
      linux/drivers/pwm/pwm-fsl-ftm.c:436: undefined reference to `devm_ioremap_resource'
      collect2: error: ld returned 1 exit status
      
      devm_ioremap_resource() is defined only when HAS_IOMEM is selected.
      Signed-off-by: 's avatarVegard Nossum <vegard.nossum@oracle.com>
      Cc: Xiubo Li <Li.Xiubo@freescale.com>
      Cc: Alison Wang <b18965@freescale.com>
      Cc: Jingchang Lu <b35083@freescale.com>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Yuan Yao <yao.yuan@freescale.com>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Signed-off-by: 's avatarThierry Reding <thierry.reding@gmail.com>
      36d5be4b
  5. 16 Dec, 2015 2 commits
  6. 06 Nov, 2015 1 commit
  7. 06 Oct, 2015 5 commits
  8. 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
  9. 21 Jul, 2015 1 commit
  10. 30 Jan, 2015 3 commits
  11. 17 Nov, 2014 3 commits
  12. 20 Oct, 2014 1 commit
  13. 25 Aug, 2014 1 commit
  14. 22 Aug, 2014 2 commits
  15. 07 Aug, 2014 1 commit
  16. 11 Jul, 2014 1 commit
  17. 09 Jul, 2014 1 commit
  18. 28 Apr, 2014 1 commit
  19. 01 Apr, 2014 1 commit
  20. 18 Mar, 2014 2 commits
  21. 26 Feb, 2014 1 commit
  22. 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
  23. 17 Dec, 2013 2 commits
  24. 12 Dec, 2013 1 commit
  25. 17 Oct, 2013 1 commit
  26. 21 Jun, 2013 1 commit