1. 27 12月, 2019 1 次提交
  2. 21 7月, 2018 1 次提交
    • K
      USB: serial: cp210x: implement GPIO support for CP2102N · c8acfe0a
      Karoly Pados 提交于
      This patch adds GPIO support for CP2102N devices.
      
      It introduces new generic code to support emulating separate
      input and outputs directions even though these devices
      only know output modes (open-drain and pushpull). Existing
      GPIO support for CP2105 has been migrated over to the new
      code structure.
      
      Only limitation is that for the QFN28 variant, only 4 out of
      7 GPIOs are supported. This is because the config array
      locations of the last 3 pins are not documented, and reverse
      engineering revealed offsets that conflicted with other
      documented functions. Hence we'll play it safe instead
      until somebody clears this up further.
      Signed-off-by: NKaroly Pados <pados@pados.hu>
      [ johan: fix style issues and a couple of minor bugs; use Karoly's
               updated commit message ]
      Acked-by: NMartyn Welch <martyn.welch@collabora.co.uk>
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      c8acfe0a
  3. 19 7月, 2018 5 次提交
  4. 04 7月, 2018 1 次提交
  5. 18 6月, 2018 2 次提交
  6. 16 4月, 2018 1 次提交
  7. 23 3月, 2018 1 次提交
  8. 04 1月, 2018 1 次提交
  9. 02 1月, 2018 1 次提交
  10. 04 11月, 2017 3 次提交
  11. 19 9月, 2017 2 次提交
  12. 17 7月, 2017 1 次提交
  13. 29 6月, 2017 1 次提交
  14. 06 2月, 2017 1 次提交
  15. 26 1月, 2017 1 次提交
    • M
      pinctrl / gpio: Introduce .set_config() callback for GPIO chips · 2956b5d9
      Mika Westerberg 提交于
      Currently we already have two pin configuration related callbacks
      available for GPIO chips .set_single_ended() and .set_debounce(). In
      future we expect to have even more, which does not scale well if we need
      to add yet another callback to the GPIO chip structure for each possible
      configuration parameter.
      
      Better solution is to reuse what we already have available in the
      generic pinconf.
      
      To support this, we introduce a new .set_config() callback for GPIO
      chips. The callback takes a single packed pin configuration value as
      parameter. This can then be extended easily beyond what is currently
      supported by just adding new types to the generic pinconf enum.
      
      If the GPIO driver is backed up by a pinctrl driver the GPIO driver can
      just assign gpiochip_generic_config() (introduced in this patch) to
      .set_config and that will take care configuration requests are directed
      to the pinctrl driver.
      
      We then convert the existing drivers over .set_config() and finally
      remove the .set_single_ended() and .set_debounce() callbacks.
      Suggested-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Reviewed-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      2956b5d9
  16. 21 11月, 2016 1 次提交
  17. 17 11月, 2016 1 次提交
  18. 24 10月, 2016 4 次提交
  19. 20 10月, 2016 1 次提交
  20. 27 9月, 2016 1 次提交
  21. 15 7月, 2016 1 次提交
  22. 05 5月, 2016 3 次提交
  23. 24 4月, 2016 2 次提交
  24. 07 4月, 2016 1 次提交
  25. 01 3月, 2016 2 次提交