From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Date: Tue, 16 Jul 2013 09:49:52 +0000 Subject: Re: [PATCH] gpio-rcar: Add interrupt controller support to the DT bindings Message-Id: <1728558.sToXtprsCA@avalon> List-Id: References: <1372959879-24033-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> In-Reply-To: <1372959879-24033-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-sh@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, Magnus Damm Hi Linus, On Thursday 04 July 2013 19:44:39 Laurent Pinchart wrote: > Update the DT bindings documentation with the interrupt-controller > and #interrupt-cells properties. Patches that make use of this binding have been merged to Simon's tree. Could you consider merging this patch in your tree (or tell me I've got something completely wrong and ask me to fix it :-)) ? > Signed-off-by: Laurent Pinchart > --- > 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 > cb3dc7b..8655df9 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>; > }; -- Regards, Laurent Pinchart From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Subject: Re: [PATCH] gpio-rcar: Add interrupt controller support to the DT bindings Date: Tue, 16 Jul 2013 11:49:52 +0200 Message-ID: <1728558.sToXtprsCA@avalon> References: <1372959879-24033-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <1372959879-24033-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> Sender: linux-sh-owner@vger.kernel.org To: Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-sh@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, Magnus Damm List-Id: devicetree@vger.kernel.org Hi Linus, On Thursday 04 July 2013 19:44:39 Laurent Pinchart wrote: > Update the DT bindings documentation with the interrupt-controller > and #interrupt-cells properties. Patches that make use of this binding have been merged to Simon's tree. Could you consider merging this patch in your tree (or tell me I've got something completely wrong and ask me to fix it :-)) ? > Signed-off-by: Laurent Pinchart > --- > 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 > cb3dc7b..8655df9 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>; > }; -- Regards, Laurent Pinchart