Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20d4dcec authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Alexandre Belloni
Browse files

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: default avatarUwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent bc6d5d76
Loading
Loading
Loading
Loading
+8 −2
Original line number Original line Diff line number Diff line
@@ -5,9 +5,13 @@ Required properties:
- reg: Should contain GPIO controller registers location and length
- reg: Should contain GPIO controller registers location and length
- interrupts: Should be the port interrupt shared by all the pins.
- interrupts: Should be the port interrupt shared by all the pins.
- #gpio-cells: Should be two.  The first cell is the pin number and
- #gpio-cells: Should be two.  The first cell is the pin number and
  the second cell is used to specify optional parameters (currently
  the second cell is used to specify optional parameters to declare if the GPIO
  unused).
  is active high or low. See gpio.txt.
- gpio-controller: Marks the device node as a GPIO controller.
- 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:
optional properties:
- #gpio-lines: Number of gpio if absent 32.
- #gpio-lines: Number of gpio if absent 32.
@@ -21,5 +25,7 @@ Example:
		#gpio-cells = <2>;
		#gpio-cells = <2>;
		gpio-controller;
		gpio-controller;
		#gpio-lines = <19>;
		#gpio-lines = <19>;
		interrupt-controller;
		#interrupt-cells = <2>;
	};
	};