1. 26 Jan, 2017 1 commit
    • Mika Westerberg's avatar
      pinctrl / gpio: Introduce .set_config() callback for GPIO chips · 2956b5d9
      Mika Westerberg authored
      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: Linus Walleij's avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: Mika Westerberg's avatarMika Westerberg <mika.westerberg@linux.intel.com>
      Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: Linus Walleij's avatarLinus Walleij <linus.walleij@linaro.org>
  2. 14 Apr, 2016 1 commit
    • Linus Walleij's avatar
      gpio: vx855: use the new open drain callback · 640b9135
      Linus Walleij authored
      The vx855 driver clearly states it has three groups of lines:
      GPI, GPO and GPIO. The GPO are assumedly push-pull. The GPIO
      are implicit open drain, but if the GPIO subsystem ask for them
      to be explicitly open drain (i.e. set the flag on a machine table
      that we want open drain) it will currently misbehave: it will
      switch the GPIOs to input mode (emulate open drain). Instead:
      indicate in the .set_single_ended() callback that we support
      open drain and open drain only.
      Cc: Daniel Drake <drake@endlessm.com>
      Signed-off-by: Linus Walleij's avatarLinus Walleij <linus.walleij@linaro.org>
  3. 23 Feb, 2016 1 commit
  4. 05 Jan, 2016 1 commit
  5. 15 Jan, 2015 1 commit
  6. 20 Oct, 2014 1 commit
  7. 22 Jul, 2014 1 commit
  8. 04 Dec, 2013 1 commit
    • Linus Walleij's avatar
      gpio/pinctrl: make gpio_chip members typed boolean · 9fb1f39e
      Linus Walleij authored
      This switches the two members of struct gpio_chip that were
      defined as unsigned foo:1 to bool, because that is indeed what
      they are. Switch all users in the gpio and pinctrl subsystems
      to assign these values with true/false instead of 0/1. The
      users outside these subsystems will survive since true/false
      is 1/0, atleast we set some kind of more strict typing example.
      Signed-off-by: Linus Walleij's avatarLinus Walleij <linus.walleij@linaro.org>
  9. 30 May, 2013 1 commit
  10. 28 Nov, 2012 3 commits
  11. 02 Jan, 2012 1 commit
  12. 06 Jun, 2011 1 commit
  13. 25 May, 2011 1 commit
  14. 28 Oct, 2010 1 commit