2012-02-11 22:41:40 +08:00
|
|
|
* Atmel GPIO controller (PIO)
|
|
|
|
|
|
|
|
Required properties:
|
2010-07-21 01:18:51 +08:00
|
|
|
- compatible: "atmel,<chip>-gpio", where <chip> is at91rm9200 or at91sam9x5.
|
2012-02-11 22:41:40 +08:00
|
|
|
- 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.
|
|
|
|
|
2012-07-14 15:26:08 +08:00
|
|
|
optional properties:
|
|
|
|
- #gpio-lines: Number of gpio if absent 32.
|
|
|
|
|
|
|
|
|
2012-02-11 22:41:40 +08:00
|
|
|
Example:
|
|
|
|
pioA: gpio@fffff200 {
|
|
|
|
compatible = "atmel,at91rm9200-gpio";
|
|
|
|
reg = <0xfffff200 0x100>;
|
|
|
|
interrupts = <2 4>;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
gpio-controller;
|
2012-07-14 15:26:08 +08:00
|
|
|
#gpio-lines = <19>;
|
2012-02-11 22:41:40 +08:00
|
|
|
};
|
|
|
|
|