1. 11 8月, 2016 2 次提交
    • B
      gpio: Add Intel WhiskeyCove PMIC GPIO driver · 0ba19cfc
      Bin Gao 提交于
      This patch introduces a separate GPIO driver for Intel WhiskeyCove PMIC.
      This driver is based on gpio-crystalcove.c.
      
      Changes in v7:
       - Fixed various coding style comments from Andy Shevchenko
      Changes in v6:
       - Removed unnecessary wcove_gpio_remove()
       - Used devm_gpiochip_remove() instead of gpiochip_remove()
       - Various coding style changes per Mika's comment
      Changes in v5:
       - Revisited the interrupt handler code to iterate until all pending
         interrupts are handled. This change is to avoid missing interrupt
         when we're inside the interrupt handler.
       - Used regmap_bulk_read() to read address adjacent registers.
      Changes in v4:
       - Converted CTLI_INTCNT_XX macros to less verbose ones INT_DETECT_XX.
       - Add comments about why there is no .pm for the driver.
       - Header files re-ordered.
       - Various coding style change to address Andy's comments.
      Changes in v3:
       - Fixed the year in copyright line(2015-->2016).
       - Removed DRV_NAME macro.
       - Added kernel-doc for regmap_irq_chip of the wcove_gpio structure.
       - Line length fix.
      Changes in v2:
       - Typo fix (Whsikey --> Whiskey).
       - Included linux/gpio/driver.h instead of linux/gpio.h
       - Implemented .set_single_ended().
       - Added GPIO register description.
       - Replaced container_of() with gpiochip_get_data().
       - Removed unnecessary "if (gpio > WCOVE_VGPIO_NUM" check.
       - Removed the device id table and added MODULE_ALIAS().
      Signed-off-by: NAjay Thomas <ajay.thomas.david.rajamanickam@intel.com>
      Signed-off-by: NBin Gao <bin.gao@intel.com>
      Reviewed-by: NAndy Shevchenko <andy.shevchenko@gmail.com>
      Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      0ba19cfc
    • M
      gpio: Add AXP209 GPIO driver · f72f4b44
      Maxime Ripard 提交于
      The AXP209 PMIC has a bunch of GPIOs accessible, that are usually used to
      control LEDs or backlight.
      
      Add a driver for them
      Signed-off-by: NMaxime Ripard <maxime.ripard@free-electrons.com>
      Acked-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      f72f4b44
  2. 08 8月, 2016 1 次提交
  3. 22 7月, 2016 3 次提交
  4. 06 7月, 2016 1 次提交
  5. 18 6月, 2016 1 次提交
  6. 08 6月, 2016 2 次提交
  7. 07 6月, 2016 1 次提交
  8. 03 5月, 2016 4 次提交
  9. 29 4月, 2016 1 次提交
    • A
      gpio/qoriq: select IRQ_DOMAIN · a8fa91a7
      Arnd Bergmann 提交于
      The gpio-mpc8xxx driver requires IRQ domains but can be built
      without them, resulting on a failure to build certain randconfigs
      on ARM:
      
      drivers/gpio/gpio-mpc8xxx.c: In function 'mpc8xxx_gpio_to_irq':
      drivers/gpio/gpio-mpc8xxx.c:92:10: error: implicit declaration of function 'irq_create_mapping' [-Werror=implicit-function-declaration]
         return irq_create_mapping(mpc8xxx_gc->irq, offset);
      
      This selects IRQ_DOMAIN from the driver to ensure we can build it.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 5df7fd46 ("gpio/qoriq: Add qoriq platforms support")
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      a8fa91a7
  10. 26 4月, 2016 1 次提交
    • L
      gpio: remove deps on ARCH_[WANT_OPTIONAL|REQUIRE]_GPIOLIB · 296ad4ac
      Linus Walleij 提交于
      The GPIOLIB symbol currently require that
      ARCH_WANT_OPTIONAL_GPIOLIB or ARCH_REQUIRE_GPIOLIB is selected
      to be selectable.
      
      The ARCH_REQUIRE_GPIOLIB does only one thing: select GPIOLIB.
      
      This is just confusing: architectures that want GPIOLIB should
      be able to configure it in no matter what, and those who
      require it should just select GPIOLIB.
      
      It also creates problems for drivers that need to state
      "select GPIOLIB" to get dependencies: those depend on the
      selected architecture to select
      ARCH_[WANT_OPTIONAL|REQUIRE]_GPIOLIB first, and will cause
      compile errors for the few archs that state neither.
      
      These intermediary symbols need to go.
      
      As a first step, remove the dependencies so that:
      
      - ARCH_WANT_OPTIONAL_GPIOLIB becomes a noop (GPIOLIB will be
        available for everyone) and
      
      - "select ARCH_REQUIRE_GPIOLIB" can be replaced by just
        "select GPIOLIB"
      
      After this patch we can follow up with patches cleaning up the
      architectures one-by one and eventually remove the
      ARCH_[WANT_OPTIONAL|REQUIRE]_GPIOLIB symbols altogether.
      Reported-by: NMichael Hennerich <michael.hennerich@analog.com>
      Cc: Michael Büsch <m@bues.ch>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      296ad4ac
  11. 14 4月, 2016 2 次提交
  12. 10 4月, 2016 1 次提交
  13. 31 3月, 2016 2 次提交
  14. 30 3月, 2016 2 次提交
  15. 16 3月, 2016 2 次提交
  16. 09 3月, 2016 1 次提交
  17. 08 3月, 2016 1 次提交
  18. 07 3月, 2016 1 次提交
  19. 25 2月, 2016 3 次提交
  20. 12 2月, 2016 2 次提交
  21. 11 2月, 2016 1 次提交
    • N
      gpio: add tps65218 gpio · c366c76a
      Nicolas Saenz Julienne 提交于
      Driver for the GPIO block found in ti's tps65218 pmics.
      
      The device has two GPIOs and one GPO pin which can be configured as follows:
      GPIO1:
      	-general-purpose, open-drain output controlled by GPO1 user bit and/or
      	 sequencer
      	-DDR3 reset input signal from SOC. Signal is either latched or
      	 passed-trough to GPO2 pin. See below for details.
      GPO2:
      	-general-purpose output controlled by GPO2 user bit
      	-DDR3 reset output signal. Signal is controlled by GPIO1 and PGOOD.
      	 See below for details.
      	-Output buffer can be configured as open-drain or push-pull.
      GPIO3:
      	-general-purpose, open-drain output controlled by GPO3 user bit and/or
      	 sequencer
      	-reset input-signal for DCDC1 and DCDC2.
      
      The input configurations are not meant to be used by the user so the driver
      only offers GPOs.
      
      v2: Added request routine that evaluates the fw config flags and removed module
          owner
      v3: Added .direction_input() routine, and took care of all Linus Walleij
      suggestions (clamp to bool, use proper include)
      Signed-off-by: NNicolas Saenz Julienne <nicolassaenzj@gmail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      c366c76a
  22. 10 2月, 2016 5 次提交