ARM: at91/pio: add new PIO3 features
commit582d5fbd4e81e7debe5f3a0e6ce1a0bcdf636c6e
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 20 Jul 2010 17:18:51 +0000 (20 19:18 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 1 Mar 2012 12:38:50 +0000 (1 13:38 +0100)
treedd51bedcd86e887b44d85b79b9d506a79599af0f
parent9a9fe01ecf68c9b100499908122944597c63f21f
ARM: at91/pio: add new PIO3 features

This patch adds the support for new PIO controller found on some
at91sam SOCs.
- more peripheral multiplexing
- more features to configure on a PIO (pull-down, Schmitt trigger, debouncer)
- support for several IRQ triggering features (type and polarity)

Support for those new features are retrieved from the device tree
compatibility string.

Debugfs at91_gpio file is updated to monitor configuration.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Documentation/devicetree/bindings/gpio/gpio_atmel.txt
arch/arm/boot/dts/at91sam9x5.dtsi
arch/arm/mach-at91/board-dt.c
arch/arm/mach-at91/gpio.c
arch/arm/mach-at91/include/mach/at91_pio.h
arch/arm/mach-at91/include/mach/gpio.h