gpio/lpc32xx: Add device tree support
authorRoland Stigge <stigge@antcom.de>
Fri, 18 May 2012 08:19:52 +0000 (10:19 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 18 May 2012 22:48:36 +0000 (16:48 -0600)
commite92935e13a052df7e6bc274e00fc91b80531f1e4
treeb04f80aa90bab2d71f2299b00f5cccc3e7ee9a7a
parent3d0f7cf0f3633f92ddeb767eb59cab73963d4dee
gpio/lpc32xx: Add device tree support

This patch adds device tree support for gpio-lpc32xx.c.

To register the various GPIO banks as (struct) gpio_chips via the same DT
gpio-controller, we utilize the adjusted of_xlate API to manipulate the
actually used struct gpio_chip.

Signed-off-by: Roland Stigge <stigge@antcom.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Documentation/devicetree/bindings/gpio/gpio_lpc32xx.txt [new file with mode: 0644]
arch/arm/mach-lpc32xx/include/mach/gpio.h
drivers/gpio/gpio-lpc32xx.c