1. 06 9月, 2016 5 次提交
  2. 05 9月, 2016 1 次提交
    • P
      pwm: twl: Reliably disable TWL6030 PWMs · 45c0ce84
      Paul Kocialkowski 提交于
      The current TWL6030 code for the TWL PWM driver does not reliably disable the
      PWM output, as tested with LEDs. The previous commit to that driver introduced
      that regression.
      
      However, it does make sense to disable the PWM clock after resetting the PWM,
      but for some obscure reason, doing it all at once simply doesn't work.
      
      The TWL6030 datasheet mentions that PWMs have to be disabled in two distinct
      steps. However, clearing the clock enable bit in a second step (after issuing a
      reset first) does not work.
      
      The only approach that works is the one that was in place before the previous
      commit to the driver. It consists in enabling the PWM clock after issuing a
      reset. This is what TI kernel trees and production code seem to be using.
      
      However, adding an extra step to disable the PWM clock seems to work reliably,
      despite looking quite odd.
      Signed-off-by: NPaul Kocialkowski <contact@paulk.fr>
      Acked-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
      Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
      45c0ce84
  3. 25 7月, 2016 1 次提交
    • B
      pwm: Add ChromeOS EC PWM driver · 1f0d3bb0
      Brian Norris 提交于
      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: NBrian Norris <briannorris@chromium.org>
      Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
      1f0d3bb0
  4. 11 7月, 2016 23 次提交
  5. 08 7月, 2016 1 次提交
  6. 06 7月, 2016 1 次提交
  7. 30 6月, 2016 1 次提交
  8. 14 6月, 2016 1 次提交
  9. 10 6月, 2016 4 次提交
  10. 17 5月, 2016 2 次提交