From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Wahren Subject: Re: Question about shared interrupts in devicetree Date: Thu, 09 Apr 2015 09:24:37 +0200 Message-ID: <55262935.9080005@i2se.com> References: <2039290448.1160624.1428183613109.JavaMail.open-xchange@oxbaltgw03.schlund.de> <20150407112928.GA3812@leverpostej> <2146749411.2111.1428426398346.JavaMail.open-xchange@oxbaltgw03.schlund.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Geert Uytterhoeven Cc: Mark Rutland , kernelnewbies , devicetree , Sascha Hauer , Fabio Estevam , =?UTF-8?B?TWFyZWsgVmHFoXV0?= , Maxime Ripard , Shawn Guo List-Id: devicetree@vger.kernel.org Hi Geert, Am 08.04.2015 um 21:20 schrieb Geert Uytterhoeven: > On Tue, Apr 7, 2015 at 7:06 PM, Stefan Wahren wrote: >> [...] >> >> thanks for the good explanation. After looking into the reference ma= nual [1] of >> the i.MX28 i still can't decide if the subsystem generate the interr= upts as a >> whole or >> as a logical group. I only found this para in chapter 11.11: >> >> The VDDA_BO_IRQ, VDDD_BO_IRQ, VDDIO_BO_IRQ, and BATT_BO_IRQ each >> have their own interrupt line back to the interrupt collector. >> However, the remaining five interrupts=E2=80=94VDD5V_GT_VDDIO_IR= Q, DC_OK_IRQ, >> VBUSVALID_IRQ, LINREG_OK_IRQ and PSWITCH_IRQ=E2=80=94all share a= single >> interrupt line. In this case, software must read the interrupt s= tatus >> bits to discover which event caused the interrupt. >> >> In my case DC_OK_IRQ and PSWITCH_IRQ are relevant. >> >> Maybe someone else has a idea? > Perhaps you can implement an interrupt-controller to handle the multi= plexing > of the 5 remaining interrupts? Could you please explain the benefit / reason of this approach? > > Can they be disabled/enabled individually? Yes. What are the consequences? Thanks Stefan > >> Thanks Stefan >> >> [1] - http://cache.freescale.com/files/dsp/doc/ref_manual/MCIMX28RM.= pdf >> >> Document Number: MCIMX28RM >> Rev 2, 08/2013 >> >> > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linu= x-m68k.org > > In personal conversations with technical people, I call myself a hack= er. But > when I'm talking to journalists I just say "programmer" or something = like that. > -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe devicetree" i= n the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html