| From 3971223c8f243c9fd662644b64ee3116efc61b42 Mon Sep 17 00:00:00 2001 |
| From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> |
| Date: Thu, 4 Jul 2013 19:44:39 +0200 |
| Subject: 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: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> |
| Signed-off-by: Linus Walleij <linus.walleij@linaro.org> |
| (cherry picked from commit f8b1bd71d0c5c9fdcd4458c1688208eaf06a26fb) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt | 8 ++++++++ |
| 1 file changed, 8 insertions(+) |
| |
| diff --git a/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt b/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt |
| index cb3dc7bc..8655df94 100644 |
| --- a/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt |
| +++ b/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt |
| @@ -23,6 +23,10 @@ Required Properties: |
| Please refer to gpio.txt in this directory for details of gpio-ranges property |
| 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 |
| |
| gpio0: gpio@ffc40000 { |
| @@ -33,6 +37,8 @@ Example: R8A7779 (R-Car H1) GPIO controller nodes |
| #gpio-cells = <2>; |
| gpio-controller; |
| gpio-ranges = <&pfc 0 0 32>; |
| + interrupt-controller; |
| + #interrupt-cells = <2>; |
| }; |
| ... |
| gpio6: gpio@ffc46000 { |
| @@ -43,4 +49,6 @@ Example: R8A7779 (R-Car H1) GPIO controller nodes |
| #gpio-cells = <2>; |
| gpio-controller; |
| gpio-ranges = <&pfc 0 192 9>; |
| + interrupt-controller; |
| + #interrupt-cells = <2>; |
| }; |
| -- |
| 1.8.4.3.gca3854a |
| |