mirror of
https://github.com/torvalds/linux.git
synced 2024-12-24 20:01:55 +00:00
fc33ff4313
On the at91sam9x5 SoC series, GPIO banks B and D only have 19 and 22 pins. So add a property to set this parameter. Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
26 lines
731 B
Plaintext
26 lines
731 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.
|
|
|
|
optional properties:
|
|
- #gpio-lines: Number of gpio if absent 32.
|
|
|
|
|
|
Example:
|
|
pioA: gpio@fffff200 {
|
|
compatible = "atmel,at91rm9200-gpio";
|
|
reg = <0xfffff200 0x100>;
|
|
interrupts = <2 4>;
|
|
#gpio-cells = <2>;
|
|
gpio-controller;
|
|
#gpio-lines = <19>;
|
|
};
|
|
|