gpio: mcp23s08: Add option to configure IRQ output polarity as active high
authorAlexander Stein <alexander.stein@systec-electronic.com>
Mon, 1 Dec 2014 07:26:00 +0000 (08:26 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 3 Dec 2014 13:34:45 +0000 (14:34 +0100)
Default is active low, but if property is specified in DT set INTPOL flag.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/gpio/gpio-mcp23s08.txt
drivers/gpio/gpio-mcp23s08.c

index c306a2d..f3332b9 100644 (file)
@@ -57,6 +57,8 @@ Optional device specific properties:
         occurred on. If it is not set, the interrupt are only generated for the
         bank they belong to.
         On devices with only one interrupt output this property is useless.
+- microchip,irq-active-high: Sets the INTPOL flag in the IOCON register. This
+        configures the IRQ output polarity as active high.
 
 Example I2C (with interrupt):
 gpiom1: gpio@20 {
Simple merge