1. 14 7月, 2020 5 次提交
  2. 06 7月, 2020 2 次提交
  3. 18 11月, 2019 1 次提交
  4. 28 3月, 2019 1 次提交
  5. 20 2月, 2019 1 次提交
  6. 07 2月, 2019 2 次提交
  7. 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
  8. 25 1月, 2019 1 次提交
  9. 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
  10. 19 7月, 2018 5 次提交
  11. 04 7月, 2018 1 次提交
  12. 18 6月, 2018 2 次提交
  13. 16 4月, 2018 1 次提交
  14. 23 3月, 2018 1 次提交
  15. 04 1月, 2018 1 次提交
  16. 02 1月, 2018 1 次提交
  17. 04 11月, 2017 3 次提交
  18. 19 9月, 2017 2 次提交
  19. 17 7月, 2017 1 次提交
  20. 29 6月, 2017 1 次提交
  21. 06 2月, 2017 1 次提交
  22. 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
  23. 21 11月, 2016 1 次提交
  24. 17 11月, 2016 1 次提交
  25. 24 10月, 2016 2 次提交
    • J
      USB: serial: cp210x: use bool for registered flag · 6b7271d2
      Johan Hovold 提交于
      Use bool rather than u8 for the gpio-chip-registered flag.
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      6b7271d2
    • M
      USB: serial: cp210x: Adding GPIO support for CP2105 · cf5276ce
      Martyn Welch 提交于
      This patch adds support for the GPIO found on the CP2105. Unlike the GPIO
      provided by some of the other devices supported by the cp210x driver, the
      GPIO on the CP2015 is muxed on pins otherwise used for serial control
      lines. The GPIO have been configured in 2 separate banks as the choice to
      configure the pins for GPIO is made separately for pins shared with each
      of the 2 serial ports this device provides, though the choice is made for
      all pins associated with that port in one go. The choice of whether to use
      the pins for GPIO or serial is made by adding configuration to a one-time
      programable PROM in the chip and can not be changed at runtime. The device
      defaults to GPIO.
      
      This device supports either push-pull or open-drain modes, it doesn't
      provide an explicit input mode, though the state of the GPIO can be read
      when used in open-drain mode. Like with pin use, the mode is configured in
      the one-time programable PROM and can't be changed at runtime.
      Signed-off-by: NMartyn Welch <martyn.welch@collabora.co.uk>
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      cf5276ce