1. 03 12月, 2014 1 次提交
  2. 05 5月, 2014 1 次提交
  3. 17 1月, 2014 1 次提交
    • L
      gpio: mcp23s08: Add irq functionality for i2c chips · 4e47f91b
      Lars Poeschel 提交于
      This adds interrupt functionality for i2c chips to the driver.
      They can act as a interrupt-controller and generate interrupts, if
      the inputs change.
      This is tested with a mcp23017 chip on an arm based platform.
      
      v3:
      - be a bit more clear that the irq functionality is also available
        on spi versions of the chips, but the linux driver does not support
        this yet
      
      v2:
      - some more word about irq-mirror property in binding doc
      - use of_read_bool instead of of_find_property for
        "interrupt-contrller" and "irq-mirror"
      - cache the "interrupt-controller" for remove function
      - do set the irq-mirror bit only if device is marked as
        interrupt-controller
      - do create the irq mapping and setup of irq_desc of all possible
        interrupts in probe path instead of in gpio_to_irq
      - mark gpios as in use as interrupts in irq in irq_startup and
        unlock it in irq_shutdown
      - rename virq to child_irq
      - remove dev argument from mcp23s08_irq_setup function
      - move gpiochip_add before mcp23s08_irq_setup in probe path
      Signed-off-by: NLars Poeschel <poeschel@lemonage.de>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      4e47f91b
  4. 30 8月, 2013 1 次提交
  5. 11 4月, 2013 1 次提交
    • L
      gpio: mcp23s08: convert driver to DT · 97ddb1c8
      Lars Poeschel 提交于
      This converts the mcp23s08 driver to be able to be used with
      device tree.
      
      There is a "spi-present-mask" device tree property, that allows to
      use multiple of this spi chips on the same chipselect.
      
      v4:
      - removed the ability to specify the pullup from device tree
      - updated binding doc
      
      v3:
      - removed mcp,chips device tree property in favour of a
          mcp,spi-present-mask and a flag for the pullup of every gpio
      - seperated the match table. Now there is one for i2c and one for spi
      - do the of reading stuff on stack of the probe function - no devm
          any more
      
      v2:
      - squashed booth patches together
      - fixed build warning, when CONFIG_OF is not defined
      - use of_match_ptr macro for of_match_table
      Signed-off-by: NLars Poeschel <poeschel@lemonage.de>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      97ddb1c8