Skip to content

i2c port expanders support for nomadik nhk8815

Alessandro Rubini linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3i2c: added stmpe2401 port extender with irq supportdrivers/gpio/Kconfig drivers/gpio/Makefile drivers/gpio/stmpe2401.c +1 more+724 -00 replies
2/3nhk8815: add port expander to NR_IRQSarch/arm/mach-nomadik/include/mach/irqs.h+26 -10 replies
3/3nhk8815: add platform data for port expandersarch/arm/mach-nomadik/i2c-8815nhk.c+33 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAndrea Gallo
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] i2c port expanders support for nomadik nhk8815

From: Alessandro Rubini <[email protected]>

The first patch adds a driver for STMPE2401, an i2c port expander with keypad and pwm support, as well as irq capabilities. The driver currently only supports gpio, I'll add keypad later. The device is used in the nomadik evaluation kit (already upstream) and in the U8500 evaluation kit, which is goint to be upstreamed soon. There are no dependencies on PLAT_NOMADIK as the driver is generic and other boards may mount the chip.

The second patch fixes NR_IRQS for the nhk8815 board, as some devices use STMPE2401-driven GPIO pins.

The third patch adds platform data for nhk8815 so the expanders actually work on the board.

Alessandro Rubini (3):
i2c: added stmpe2401 port extender with irq support
nhk8815: add port expander to NR_IRQS
nhk8815: add platform data for port expanders

 arch/arm/mach-nomadik/i2c-8815nhk.c       |   33 ++
 arch/arm/mach-nomadik/include/mach/irqs.h |   27 ++-
 drivers/gpio/Kconfig                      |    7 +
 drivers/gpio/Makefile                     |    1 +
 drivers/gpio/stmpe2401.c                  |  571 +++++++++++++++++++++++++++++
 include/linux/i2c/stmpe2401.h             |  145 ++++++++
 6 files changed, 783 insertions(+), 1 deletions(-)
 create mode 100644 drivers/gpio/stmpe2401.c
 create mode 100644 include/linux/i2c/stmpe2401.h