Skip to content

Commit

Permalink
gpio/mcp23s08: support mcp23s17 variant
Browse files Browse the repository at this point in the history
mpc23s17 is very similar to the mcp23s08, except that registers are 16bit
wide, so extend the interface to work with both variants.

The s17 variant also has an additional address pin, so adjust platform
data structure to support up to 8 devices per SPI chipselect.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Peter Korsgaard authored and Grant Likely committed Mar 12, 2011
1 parent 9c3c8af commit 0b7bb77
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 57 deletions.
6 changes: 3 additions & 3 deletions drivers/gpio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,11 @@ config GPIO_MAX7301
GPIO driver for Maxim MAX7301 SPI-based GPIO expander.

config GPIO_MCP23S08
tristate "Microchip MCP23S08 I/O expander"
tristate "Microchip MCP23Sxx I/O expander"
depends on SPI_MASTER
help
SPI driver for Microchip MCP23S08 I/O expander. This provides
a GPIO interface supporting inputs and outputs.
SPI driver for Microchip MCP23S08/MPC23S17 I/O expanders.
This provides a GPIO interface supporting inputs and outputs.

config GPIO_MC33880
tristate "Freescale MC33880 high-side/low-side switch"
Expand Down
Loading

0 comments on commit 0b7bb77

Please sign in to comment.