1. 03 Dec, 2012 1 commit
  2. 30 Sep, 2012 1 commit
    • Arnd Bergmann's avatar
      gpio: pcf857x: select IRQ_DOMAIN · 901acf5b
      Arnd Bergmann authored
      Patch 6e20a0a4
      
       "gpio: pcf857x: enable gpio_to_irq() support"
      added IRQ domain support to the pcf857x driver, but some configurations
      (e.g. davinci_all_defconfig) don't already enable CONFIG_IRQ_DOMAIN.
      
      Always selecting it from the Kconfig in this case is what other
      such drivers do as well, and avoids these build errors:
      
      Without this patch, building davinci_all_defconfig results in:
      
      drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_to_irq':
      drivers/gpio/gpio-pcf857x.c:167:2: error: implicit declaration of function 'irq_create_mapping'
      drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_irq_demux_work':
      drivers/gpio/gpio-pcf857x.c:183:3: error: implicit declaration of function 'irq_find_mapping'
      drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_irq_domain_cleanup':
      drivers/gpio/gpio-pcf857x.c:218:3: error: implicit declaration of function 'irq_domain_remove'
      drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_irq_domain_init':
      drivers/gpio/gpio-pcf857x.c:230:2: error: implicit declaration of function 'irq_domain_add_linear'
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      901acf5b
  3. 22 Sep, 2012 1 commit
    • Thomas Petazzoni's avatar
      gpio: introduce gpio-mvebu driver for Marvell SoCs · fefe7b09
      Thomas Petazzoni authored
      
      
      This driver aims at replacing the arch/arm/plat-orion/gpio.c driver,
      and is designed to be compatible with all Marvell EBU SoCs: Orion,
      Kirkwood, Dove, Armada 370/XP and Discovery.
      
      It has been successfully tested on Dove and Armada XP at the moment.
      
      Compared to the plat-orion driver, this new driver has the following
      added benefits:
      
       *) Support for Armada 370 and Armada XP
       *) It is integrated with the mvebu pinctrl driver so that GPIO pins
          are properly muxed, and the GPIO driver knows which GPIO pins are
          output-only or input-only.
       *) Properly placed in drivers/gpio
       *) More extensible mechanism to support platform differences. The
          plat-orion driver uses a simple mask-offset DT property, which
          works fine for Discovery MV78200 but not for Armada XP. The new
          driver uses different compatible strings to identify the different
          variants of the GPIO controllers.
      Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Linus Walleij <linus.walleij@stericsson.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Cc: Gregory Clement <gregory.clement@free-electrons.com>
      Tested-by: default avatarSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
      Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Tested-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
      fefe7b09
  4. 21 Sep, 2012 1 commit
  5. 19 Sep, 2012 1 commit
  6. 18 Sep, 2012 1 commit
    • Thierry Reding's avatar
      gpio: Add Avionic Design N-bit GPIO expander support · 5e969a40
      Thierry Reding authored
      
      
      This commit adds a driver for the Avionic Design N-bit GPIO expander.
      The expander provides a variable number of GPIO pins with interrupt
      support.
      
      Changes in v2:
      - allow building the driver as a module
      - assign of_node unconditionally
      - use linear mapping IRQ domain
      - properly cleanup IRQ domain
      - add OF device table and annotate device tables
      - emulate rising and falling edge triggers
      - increase #gpio-cells to 2
      - drop support for !OF
      - use IS_ENABLED to conditionalize DEBUG_FS code
      
      Changes in v3:
      - make IRQ support runtime configurable (interrupt-controller property)
      - drop interrupt-controller and #interrupt-cells from DT binding
      - add inline to_adnp() function to wrap container_of() macro
      - consistently use adnp as name for struct adnp variables
      - remove irq_mask_cur and rename irq_mask to irq_enable
      - fix a subtle deadlock in adnp_gpio_direction_output()
      - remove dynamic allocations from debugfs code
      - rename regs to num_regs to avoid confusion
      - annotate non-trivial code with comments
      - don't acquire mutex in adnp_gpio_get()
      - assume NO_IRQ == 0
      
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: devicetree-discuss@lists.ozlabs.org
      Cc: Linus Walleij <linus.walleij@stericsson.com>
      Cc: linux-kernel@vger.kernel.org
      Acked-by: default avatarRob Herring <rob.herring@calxeda.com>
      Signed-off-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      5e969a40
  7. 31 Aug, 2012 2 commits
    • Axel Lin's avatar
      gpio: Remove broken mark for da9052 gpio driver · 1c4fe3aa
      Axel Lin authored
      
      
      The fix for MFD part is merged so remove the broken mark for da9052 gpio driver.
      Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      1c4fe3aa
    • Axel Lin's avatar
      gpio: mc9s08dz60: Fix build error if I2C=m · 4c30aa33
      Axel Lin authored
      
      
      Make GPIO_MC9S08DZ60 depend on I2C=y, this fixes below build error:
      
        LD      init/built-in.o
      drivers/built-in.o: In function `mc9s08dz60_get_value':
      clk-fixed-factor.c:(.text+0x7214): undefined reference to `i2c_smbus_read_byte_data'
      drivers/built-in.o: In function `mc9s08dz60_set':
      clk-fixed-factor.c:(.text+0x727c): undefined reference to `i2c_smbus_read_byte_data'
      clk-fixed-factor.c:(.text+0x72bc): undefined reference to `i2c_smbus_write_byte_data'
      drivers/built-in.o: In function `mc9s08dz60_i2c_driver_init':
      clk-fixed-factor.c:(.init.text+0x290): undefined reference to `i2c_register_driver'
      drivers/built-in.o: In function `mc9s08dz60_i2c_driver_exit':
      clk-fixed-factor.c:(.exit.text+0x2c): undefined reference to `i2c_del_driver'
      make: *** [vmlinux] Error 1
      Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      4c30aa33
  8. 24 Jul, 2012 1 commit
  9. 17 Jul, 2012 1 commit
  10. 12 Jul, 2012 1 commit
  11. 05 Jul, 2012 1 commit
  12. 22 May, 2012 1 commit
  13. 21 May, 2012 1 commit
  14. 18 May, 2012 1 commit
  15. 17 May, 2012 1 commit
    • Magnus Damm's avatar
      gpio: Emma Mobile GPIO driver V2 · a07e103e
      Magnus Damm authored
      
      
      This patch is V2 of the Emma Mobile GPIO driver. This
      driver is designed to be reusable between multiple SoCs
      that share the same basic building block, but so far it
      has only been used on Emma Mobile EV2.
      
      Each driver instance handles 32 GPIOs with individually
      maskable IRQs. The driver operates on two I/O memory
      ranges and the 32 GPIOs are hooked up to two interrupts.
      
      In the case of Emma Mobile EV2 this GPIO building block
      is used as main external interrupt controller hooking up
      159 GPIOS as 159 interrupts via 5 driver instances and
      10 interrupts to the GIC and the Cortex-A9 Dual.
      Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
      Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      a07e103e
  16. 11 May, 2012 2 commits
  17. 09 May, 2012 1 commit
  18. 08 May, 2012 1 commit
  19. 01 May, 2012 1 commit
  20. 10 Apr, 2012 1 commit
  21. 07 Apr, 2012 1 commit
  22. 06 Apr, 2012 1 commit
  23. 23 Mar, 2012 1 commit
  24. 16 Mar, 2012 1 commit
  25. 03 Feb, 2012 1 commit
    • Sebastian Andrzej Siewior's avatar
      gpio: Add a driver for Sodaville GPIO controller · b43ab901
      Sebastian Andrzej Siewior authored
      
      
      Sodaville has GPIO controller behind the PCI bus. To my suprissed it is
      not the same as on PXA.
      
      The interrupt & gpio chip can be referenced from the device tree like
      from any other driver. Unfortunately the driver which uses the gpio
      interrupt has to use irq_of_parse_and_map() instead of
      platform_get_irq(). The problem is that the platform device (which is
      created from the device tree) is most likely created before the
      interrupt chip is registered and therefore irq_of_parse_and_map() fails.
      
      In theory the driver works as module. In reality most of the irq
      functions are not exported to modules and it is possible that _this_
      module is unloaded while the provided irqs are still in use.
      Signed-off-by: default avatarHans J. Koch <hjk@linutronix.de>
      [torbenh@linutronix.de: make it work after the irq namespace cleanup,
      	                add some device tree entries.]
      Signed-off-by: default avatarTorben Hohn <torbenh@linutronix.de>
      [bigeasy@linutronix.de: convert to generic irq & gpio chip]
      Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
      [grant.likely@secretlab.ca: depend on x86 to avoid irq_domain breakage]
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      b43ab901
  26. 30 Jan, 2012 1 commit
  27. 17 Jan, 2012 1 commit
  28. 05 Jan, 2012 1 commit
  29. 03 Jan, 2012 1 commit
  30. 19 Dec, 2011 1 commit
  31. 12 Dec, 2011 1 commit
  32. 28 Nov, 2011 1 commit
  33. 15 Nov, 2011 1 commit
  34. 24 Oct, 2011 1 commit
    • Arnd Bergmann's avatar
      mfd: remove CONFIG_MFD_SUPPORT · 8a0a8e8e
      Arnd Bergmann authored
      
      
      We currently have two symbols to control compilation the MFD subsystem,
      MFD_SUPPORT and MFD_CORE. The MFD_SUPPORT is actually not required
      at all, it only hides the submenu when not set, with the effect that
      Kconfig warns about missing dependencies when another driver selects
      an MFD driver while MFD_SUPPORT is disabled. Turning the MFD submenu
      back from menuconfig into a plain menu simplifies the Kconfig syntax
      for those kinds of users and avoids the surprise when the menu
      suddenly appears because another driver was enabled that selects this
      symbol.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      8a0a8e8e
  35. 05 Oct, 2011 2 commits
  36. 22 Sep, 2011 1 commit
  37. 21 Sep, 2011 1 commit
    • Kukjin Kim's avatar
      gpio/samsung: gpio-samsung.c to support Samsung GPIOs · 1b39d5f2
      Kukjin Kim authored
      
      
      This patch adds support for Samsung GPIOs with one gpio driver
      and removes old GPIO drivers which are drivers/gpio-s3c24xx.c,
      gpio-s3c64xx.c, gpio-s5p64x0.c, gpio-s5pc100.c, gpio-s5pv210.c,
      gpio-exynos4.c, gpio-plat-samsung.c, plat-samsung/gpio-config.c
      and gpio.c to support each Samsung SoCs before. Because the
      gpio-samsung.c can replace old Samsung GPIO drivers.
      Basically, the gpio-samsung.c has been made by their merging
      and removing duplicated definitions.
      
      Note: gpio-samsung.c includes some SoC dependent codes and it
      will be replaced next time.
      
      Cc: Ben Dooks <ben-linux@fluff.org>
      Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      [kgene.kim@samsung.com: squash the removing and adding patches]
      [kgene.kim@samsung.com: fixes bug during to register of gpio_chips]
      Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
      1b39d5f2