From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <9e4733910809140706i599d70b2q12d3582c7a95498c@mail.gmail.com> Date: Sun, 14 Sep 2008 10:06:43 -0400 From: "Jon Smirl" To: "Roland Dreier" Subject: Re: demuxing irqs In-Reply-To: <9e4733910809131623pe990495l96b31bd546d9fa6b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <9e4733910809131206j125e7e25of07c19028ac07339@mail.gmail.com> <9e4733910809131554mb0c6660r3bcc993bb2ca082d@mail.gmail.com> <9e4733910809131623pe990495l96b31bd546d9fa6b@mail.gmail.com> Cc: linuxppc-dev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , How do the virq numbers get assigned? What do I pass into request_irq when I use one of these pins? The gpio device... gpio_wkup: gpio-wkup@c00 { compatible = "fsl,mpc5200b-gpio-wkup","fsl,mpc5200-gpio-wkup"; reg = <0xc00 0x40>; interrupts = <0x1 0x8 0x0 0x0 0x3 0x0>; interrupt-parent = <&mpc5200_pic>; gpio-controller; #gpio-cells = <4>; }; use of a gpio from the device... ir@0 { compatible = "digispeaker,gpio-ir"; gpios = <&gpio_wkup 0 0 1 0>; }; 0 - gpio number in the device 0 - enable open drain 1 - class of interrupt, normal or wakeup 0 - type of interrupt, rising, falling, both, pulse -- Jon Smirl jonsmirl@gmail.com