summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-vr41xx.c
diff options
context:
space:
mode:
authorPhil Reid <preid@electromag.com.au>2016-03-01 06:25:41 (GMT)
committerLinus Walleij <linus.walleij@linaro.org>2016-03-09 02:50:37 (GMT)
commit28c5a41e4aa44f162297d596030900b90aa1cf08 (patch)
treeb17ea91d50725d924ed7f6f9db4bff1b81ef3fbd /drivers/gpio/gpio-vr41xx.c
parentdf2e90551b7db4b5a4da5eaa78742f47f2799aa2 (diff)
downloadlinux-28c5a41e4aa44f162297d596030900b90aa1cf08.tar.xz
gpio: mcp23s08: Add support for mcp23s18
This patch adds support for the mcp23s18 which is very similar to the mcp23s17. A couple of control bits are not the same. Notable IOCON_HAEN (s17 only) & IOCON_INTCC. Which can be ignored. Patch changes the following: - Add mcp23s18 types. - Always set mirror bit if the dts defines mcp23s18. regardless of type. Mirror bit is ignored on 8 bit devices anyway. - In mcp23s08_probe use chip.ngpio instead of logic based on type to determine number of gpio lins to increment by. This is set appropiately by the call to mcp23s08_probe_one. - Add mcp23s18 to device tree documentation. - Remove statement that irqs don't work for spi. They do. Tested with mcp23s18. Signed-off-by: Phil Reid <preid@electromag.com.au> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-vr41xx.c')
0 files changed, 0 insertions, 0 deletions