0001 * Atmel GPIO controller (PIO)
0002
0003 Required properties:
0004 - compatible: "atmel,<chip>-gpio", where <chip> is at91rm9200 or at91sam9x5.
0005 - reg: Should contain GPIO controller registers location and length
0006 - interrupts: Should be the port interrupt shared by all the pins.
0007 - #gpio-cells: Should be two. The first cell is the pin number and
0008 the second cell is used to specify optional parameters to declare if the GPIO
0009 is active high or low. See gpio.txt.
0010 - gpio-controller: Marks the device node as a GPIO controller.
0011 - interrupt-controller: Marks the device node as an interrupt controller.
0012 - #interrupt-cells: Should be two. The first cell is the pin number and the
0013 second cell is used to specify irq type flags, see the two cell description
0014 in interrupt-controller/interrupts.txt for details.
0015
0016 optional properties:
0017 - #gpio-lines: Number of gpio if absent 32.
0018
0019
0020 Example:
0021 pioA: gpio@fffff200 {
0022 compatible = "atmel,at91rm9200-gpio";
0023 reg = <0xfffff200 0x100>;
0024 interrupts = <2 4>;
0025 #gpio-cells = <2>;
0026 gpio-controller;
0027 #gpio-lines = <19>;
0028 interrupt-controller;
0029 #interrupt-cells = <2>;
0030 };
0031