forked from Minki/linux
582d5fbd4e
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>
21 lines
642 B
Plaintext
21 lines
642 B
Plaintext
* Atmel GPIO controller (PIO)
|
|
|
|
Required properties:
|
|
- compatible: "atmel,<chip>-gpio", where <chip> is at91rm9200 or at91sam9x5.
|
|
- reg: Should contain GPIO controller registers location and length
|
|
- interrupts: Should be the port interrupt shared by all the pins.
|
|
- #gpio-cells: Should be two. The first cell is the pin number and
|
|
the second cell is used to specify optional parameters (currently
|
|
unused).
|
|
- gpio-controller: Marks the device node as a GPIO controller.
|
|
|
|
Example:
|
|
pioA: gpio@fffff200 {
|
|
compatible = "atmel,at91rm9200-gpio";
|
|
reg = <0xfffff200 0x100>;
|
|
interrupts = <2 4>;
|
|
#gpio-cells = <2>;
|
|
gpio-controller;
|
|
};
|
|
|