1. 26 1月, 2017 1 次提交
    • L
      gpio: Add a driver for Cortina Systems Gemini GPIO · 49cec4d8
      Linus Walleij 提交于
      This is a heavy edit/rewrite of the GPIO driver for the Gemini
      SoC from arch/arm/mach-gemini/gpio.c.
      
      This rewrite uses all the best-in-class helper like generic
      GPIO and GPIOLIB_IRQCHIP and has been tested on ITian Square One
      Gemini-based NAS/router.
      
      Cc: Janos Laube <janos.dev@gmail.com>
      Cc: Paulius Zaleckas <paulius.zaleckas@gmail.com>
      Cc: Hans Ulli Kroll <ulli.kroll@googlemail.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      49cec4d8
  2. 24 11月, 2016 1 次提交
  3. 22 11月, 2016 2 次提交
  4. 17 11月, 2016 1 次提交
    • K
      gpio: Remove GPIO_DEVRES option · f9c22ec6
      Keno Fischer 提交于
      This option was added in 6a89a314 to
      allow use of the devm_gpio_* functions without CONFIG_GPIOLIB.
      
      However, only a few months later in
      b69ac524, CONFIG_GPIOLIB was added
      as a dependency, defeating the original purpose of this option.
      Instead of that patch, the original commit could have just been
      reverted (and in fact was partially so in
      403c1d0b). Further, since this
      option has a dependency on HAS_IOMEM, even though it does not
      require it, it causes build failures when !HAS_IOMEM (e.g. in a
      uml build).
      
      Fix that by completely removing the option, in essence completing
      the reversion of the original commit.
      Signed-off-by: NKeno Fischer <keno@juliacomputing.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      f9c22ec6
  5. 24 10月, 2016 3 次提交
    • J
      gpio: ts4900: Add hardware dependencies · 4c5f15b7
      Jean Delvare 提交于
      All the boards supported by the gpio-ts4900 driver are i.MX6 boards,
      so only offer the driver for building on this platform, unless
      build-testing.
      Signed-off-by: NJean Delvare <jdelvare@suse.de>
      Cc: Lucile Quirion <lucile.quirion@savoirfairelinux.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      4c5f15b7
    • T
      gpio: altera-a10sr: Add A10 System Resource Chip GPIO support. · 26a48c4c
      Thor Thayer 提交于
      Add the GPIO functionality for the Altera Arria10 MAX5 System Resource
      Chip. The A10 MAX5 has 12 bits of GPIO assigned to switches, buttons,
      and LEDs as a GPIO extender on the SPI bus.
      Signed-off-by: NThor Thayer <tthayer@opensource.altera.com>
      Acked-by: Linus Walleij <linus.walleij@linaro.org>i
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      26a48c4c
    • N
      pinctrl: Add SX150X GPIO Extender Pinctrl Driver · 9e80f906
      Neil Armstrong 提交于
      Since the I2C sx150x GPIO expander driver uses platform_data to manage
      the pins configurations, rewrite the driver as a pinctrl driver using
      pinconf to get/set pin configurations from DT or debugfs.
      
      The pinctrl driver is functionnally equivalent as the gpio-only driver
      and can use DT for pinconf. The platform_data confirmation is dropped.
      
      This patchset removed the gpio-only driver and selects the Pinctrl driver
      config instead. This patchset also migrates the gpio dt-bindings to pinctrl
      and add the pinctrl optional properties.
      
      The driver was tested with a SX1509 device on a BeagleBone black with
      interrupt support and on an X86_64 machine over an I2C to USB converter.
      
      This is a fixed version that builds and runs on non-OF platforms and on
      arm based OF. The GPIO version is removed and the bindings are also moved
      to the pinctrl bindings.
      
      Changes since v2
       - rebased on v4.9-rc1
       - removed MODULE_DEVICE_TABLE as in upstream bb411e77
         ("gpio: sx150x: fix implicit assumption module.h is present")
      
      Changes since v1
       - Fix Kconfig descriptions on pinctrl and gpio
       - Fix Kconfig dependency
       - Remove oscio support for non-789 devices
       - correct typo in dt bindings
       - remove probe reset for non-789 devices
      
      Changes since RFC
       - Put #ifdef CONFIG_OF/CONFIG_OF_GPIO to remove OF code for non-of platforms
       - No more rely on OF_GPIO config
       - Moved and enhanced bindings to pinctrl bindings
       - Removed gpio-sx150x.c
       - Temporary select PINCTRL_SX150X when GPIO_SX150X
       - Temporary mark GPIO_SX150X as deprecated
      Signed-off-by: NNeil Armstrong <narmstrong@baylibre.com>
      Tested-by: NPeter Rosin <peda@axentia.se>
      Acked-by: NRob Herring <robh@kernel.org>
      ested-by: NAndrey Smirnov <andrew.smirnov@gmail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      9e80f906
  6. 20 10月, 2016 1 次提交
  7. 03 10月, 2016 1 次提交
  8. 29 9月, 2016 1 次提交
  9. 27 9月, 2016 1 次提交
  10. 12 9月, 2016 1 次提交
  11. 08 9月, 2016 1 次提交
  12. 07 9月, 2016 1 次提交
  13. 31 8月, 2016 1 次提交
  14. 19 8月, 2016 3 次提交
    • L
      gpio: make any OF dependent driver depend on OF_GPIO · 048c28c9
      Linus Walleij 提交于
      The drivers that depend on OF but not OF_GPIO are wreaking havoc
      with the autobuilders for archs that have all requirements for
      OF but not for OF_GPIO, particularly the UM (Usermode) arch does
      not have iomem (NO_IOMEM) which result in configuring GPIOLIB but
      without OF_GPIO which is wrong if the driver is using the .of_node
      of the gpiochip, which only appears with OF_GPIO.
      
      After a brief look at the drivers just depending on OF it seems
      most if not all of them actually require stuff from gpiolib-of so
      the dependency is wrong in the first place.
      
      This simply patches the Kconfig so that all GPIO drivers using OF
      depend on OF_GPIO rather than just OF.
      
      Cc: Rabin Vincent <rabin@rab.in>
      Cc: Pramod Gurav <pramod.gurav@smartplayin.com>
      Cc: Andreas Larsson <andreas@gaisler.com>
      Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
      Cc: Thierry Reding <treding@nvidia.com>
      Cc: Laxman Dewangan <ldewangan@nvidia.com>
      Cc: Alexandre Courbot <acourbot@nvidia.com>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Phil Reid <preid@electromag.com.au>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      048c28c9
    • L
      gpio: Fix OF build problem on UM · 2527ecc9
      Linus Walleij 提交于
      The UserMode (UM) Linux build was failing in gpiolib-of as it requires
      ioremap()/iounmap() to exist, which is absent from UM. The non-existence
      of IO memory is negatively defined as CONFIG_NO_IOMEM which means we
      need to depend on HAS_IOMEM.
      
      Cc: stable@vger.kernel.org
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      2527ecc9
    • L
      gpio: add Technologic I2C-FPGA gpio support · 9c668632
      Lucile Quirion 提交于
      This driver is generic and aims to support all Technologic Systems's
      boards embedding FPGA GPIOs with an I2C interface.
      
      This driver supports TS-4900, TS-7970, TS-7990 and TS-4100 series.
      Signed-off-by: NLucile Quirion <lucile.quirion@savoirfairelinux.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      9c668632
  15. 11 8月, 2016 3 次提交
  16. 08 8月, 2016 1 次提交
  17. 22 7月, 2016 3 次提交
  18. 06 7月, 2016 1 次提交
  19. 18 6月, 2016 1 次提交
  20. 08 6月, 2016 2 次提交
  21. 07 6月, 2016 1 次提交
  22. 03 5月, 2016 4 次提交
  23. 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
  24. 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
  25. 14 4月, 2016 2 次提交
  26. 10 4月, 2016 1 次提交