1. 04 12月, 2020 1 次提交
  2. 14 7月, 2020 5 次提交
  3. 06 7月, 2020 2 次提交
  4. 18 11月, 2019 1 次提交
  5. 28 3月, 2019 1 次提交
  6. 20 2月, 2019 1 次提交
  7. 07 2月, 2019 2 次提交
  8. 05 2月, 2019 1 次提交
    • I
      USB: serial: cp210x: add GPIO support for CP2104 · 15fb84b7
      Icenowy Zheng 提交于
      The CP2104 chips feature 4 controllable GPIO pins, which are similar to
      the ones on CP2102N chip (output-only when push-pull, output or
      simulated input mode when open-drain).
      
      Add support for the GPIO pins for cp210x driver. The pin get/set routine
      is shared with CP2102N, but the pinconf initialization code is not
      shared because the acquisition of GPIO configuration in OTP ROM is
      similar to CP2105, not CP2102N.
      Signed-off-by: NIcenowy Zheng <icenowy@aosc.io>
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      15fb84b7
  9. 25 1月, 2019 1 次提交
  10. 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
  11. 19 7月, 2018 5 次提交
  12. 04 7月, 2018 1 次提交
  13. 18 6月, 2018 2 次提交
  14. 16 4月, 2018 1 次提交
  15. 23 3月, 2018 1 次提交
  16. 04 1月, 2018 1 次提交
  17. 02 1月, 2018 1 次提交
  18. 04 11月, 2017 3 次提交
  19. 19 9月, 2017 2 次提交
  20. 17 7月, 2017 1 次提交
  21. 29 6月, 2017 1 次提交
  22. 06 2月, 2017 1 次提交
  23. 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
  24. 21 11月, 2016 1 次提交
  25. 17 11月, 2016 1 次提交
  26. 24 10月, 2016 1 次提交