Commit f8b1bd71 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Linus Walleij

gpio-rcar: Add interrupt controller support to the DT bindings

Update the DT bindings documentation with the interrupt-controller
and #interrupt-cells properties.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a5d28d79
...@@ -23,6 +23,10 @@ Required Properties: ...@@ -23,6 +23,10 @@ Required Properties:
Please refer to gpio.txt in this directory for details of gpio-ranges property Please refer to gpio.txt in this directory for details of gpio-ranges property
and the common GPIO bindings used by client devices. and the common GPIO bindings used by client devices.
The GPIO controller also acts as an interrupt controller. It uses the default
two cells specifier as described in Documentation/devicetree/bindings/
interrupt-controller/interrupts.txt.
Example: R8A7779 (R-Car H1) GPIO controller nodes Example: R8A7779 (R-Car H1) GPIO controller nodes
gpio0: gpio@ffc40000 { gpio0: gpio@ffc40000 {
...@@ -33,6 +37,8 @@ Example: R8A7779 (R-Car H1) GPIO controller nodes ...@@ -33,6 +37,8 @@ Example: R8A7779 (R-Car H1) GPIO controller nodes
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
gpio-ranges = <&pfc 0 0 32>; gpio-ranges = <&pfc 0 0 32>;
interrupt-controller;
#interrupt-cells = <2>;
}; };
... ...
gpio6: gpio@ffc46000 { gpio6: gpio@ffc46000 {
...@@ -43,4 +49,6 @@ Example: R8A7779 (R-Car H1) GPIO controller nodes ...@@ -43,4 +49,6 @@ Example: R8A7779 (R-Car H1) GPIO controller nodes
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
gpio-ranges = <&pfc 0 192 9>; gpio-ranges = <&pfc 0 192 9>;
interrupt-controller;
#interrupt-cells = <2>;
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment