From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755926Ab3EaMR6 (ORCPT ); Fri, 31 May 2013 08:17:58 -0400 Received: from multi.imgtec.com ([194.200.65.239]:17294 "EHLO multi.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754034Ab3EaMRw (ORCPT ); Fri, 31 May 2013 08:17:52 -0400 Message-ID: <51A894EB.3040604@imgtec.com> Date: Fri, 31 May 2013 13:17:47 +0100 From: James Hogan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Linus Walleij CC: "linux-kernel@vger.kernel.org" , "Grant Likely" , Rob Herring , Rob Landley , "linux-doc@vger.kernel.org" , "devicetree-discuss@lists.ozlabs.org" Subject: Re: [PATCH v2 9/9] gpio-tz1090-pdc: add TZ1090 PDC gpio driver References: <1369412476-14245-1-git-send-email-james.hogan@imgtec.com> <1369412476-14245-10-git-send-email-james.hogan@imgtec.com> <51A628E1.8060805@imgtec.com> In-Reply-To: <51A628E1.8060805@imgtec.com> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.154.65] X-SEF-Processed: 7_3_0_01192__2013_05_31_13_17_49 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/05/13 17:12, James Hogan wrote: > On 29/05/13 16:38, Linus Walleij wrote: >> On Fri, May 24, 2013 at 6:21 PM, James Hogan wrote: >>> +Optional properties: >>> +- gpio-ranges: Mapping to pin controller pins >>> + >>> +- interrupts: Individual syswake interrupts (other GPIOs cannot interrupt) >>> + >>> + >>> +Example: >>> + >>> + pdc_gpios: gpio-controller@02006500 { >>> + gpio-controller; >>> + #gpio-cells = <2>; >>> + >>> + compatible = "img,tz1090-pdc-gpio"; >>> + reg = <0x02006500 0x100>; >>> + >>> + interrupt-parent = <&pdc>; >>> + interrupts = <1 0 0>, /* Syswake 0 */ >>> + <1 1 0>, /* Syswake 1 */ >>> + <1 2 0>; /* Syswake 2 */ >>> + }; >> >> Interrupt flags seem to be undocumented here. > > Hmmm yes, good spot. Looking again at this, the driver doesn't expose any new interrupts. These 3 interrupts are simply passed on by the gpio chip's to_irq() callback. The flags in the example depend entirely on the interrupt parent, in this case the PDC irq driver in patch 2, so they don't need documenting here. Cheers James