Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Uwe Kleine-König and committed by
Alexandre Belloni
20d4dcec bc6d5d76

+8 -2
+8 -2
Documentation/devicetree/bindings/gpio/gpio_atmel.txt
··· 5 5 - reg: Should contain GPIO controller registers location and length 6 6 - interrupts: Should be the port interrupt shared by all the pins. 7 7 - #gpio-cells: Should be two. The first cell is the pin number and 8 - the second cell is used to specify optional parameters (currently 9 - unused). 8 + the second cell is used to specify optional parameters to declare if the GPIO 9 + is active high or low. See gpio.txt. 10 10 - gpio-controller: Marks the device node as a GPIO controller. 11 + - interrupt-controller: Marks the device node as an interrupt controller. 12 + - #interrupt-cells: Should be two. The first cell is the pin number and the 13 + second cell is used to specify irq type flags, see the two cell description 14 + in interrupt-controller/interrupts.txt for details. 11 15 12 16 optional properties: 13 17 - #gpio-lines: Number of gpio if absent 32. ··· 25 21 #gpio-cells = <2>; 26 22 gpio-controller; 27 23 #gpio-lines = <19>; 24 + interrupt-controller; 25 + #interrupt-cells = <2>; 28 26 }; 29 27