summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/gpio/gpio_atmel.txt
diff options
context:
space:
mode:
authorUwe Kleine-König <uwe@kleine-koenig.org>2017-05-26 21:07:03 +0200
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-05-31 11:51:21 +0200
commit20d4dcec04873dc15446825c21925379da1fd1ce (patch)
tree518ab81ee7588f255a0e31557437a0b0089b76fc /Documentation/devicetree/bindings/gpio/gpio_atmel.txt
parentbc6d5d7666b73cbd8d6ed6ee3aece84903fffe0b (diff)
downloadlinux-20d4dcec04873dc15446825c21925379da1fd1ce.tar.bz2
dts: gpio_atmel: adapt binding doc to reality
The second cell in a gpio reference is used to pass GPIO_ACTIVE_LOW or GPIO_ACTIVE_HIGH. The gpio device can also be used as irq controller and a reference can contain the IRQ_TYPE_* values in the second cell. Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'Documentation/devicetree/bindings/gpio/gpio_atmel.txt')
-rw-r--r--Documentation/devicetree/bindings/gpio/gpio_atmel.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/gpio/gpio_atmel.txt b/Documentation/devicetree/bindings/gpio/gpio_atmel.txt
index 85f8c0d084fa..29416f9c3220 100644
--- a/Documentation/devicetree/bindings/gpio/gpio_atmel.txt
+++ b/Documentation/devicetree/bindings/gpio/gpio_atmel.txt
@@ -5,9 +5,13 @@ Required properties:
- 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).
+ the second cell is used to specify optional parameters to declare if the GPIO
+ is active high or low. See gpio.txt.
- gpio-controller: Marks the device node as a GPIO controller.
+- interrupt-controller: Marks the device node as an interrupt controller.
+- #interrupt-cells: Should be two. The first cell is the pin number and the
+ second cell is used to specify irq type flags, see the two cell description
+ in interrupt-controller/interrupts.txt for details.
optional properties:
- #gpio-lines: Number of gpio if absent 32.
@@ -21,5 +25,7 @@ Example:
#gpio-cells = <2>;
gpio-controller;
#gpio-lines = <19>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
};