From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Subject: Re: [PATCH 2/2] powerpc/mpc5121: add initial support for PDM360NG board Date: Wed, 19 May 2010 16:37:35 -0500 Message-ID: <4BF45A1F.70100@freescale.com> References: <1272659448-23302-1-git-send-email-agust@denx.de> <1272659448-23302-2-git-send-email-agust@denx.de> <4BDEFB13.5060407@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane.org@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane.org@lists.ozlabs.org To: Grant Likely Cc: Detlev Zundel , Markus Fischer , devicetree-discuss@lists.ozlabs.org, Michael Weiss , linuxppc-dev@ozlabs.org, Anatolij Gustschin , Wolfgang Grandegger List-Id: devicetree@vger.kernel.org On 05/19/2010 04:27 PM, Grant Likely wrote: > On Mon, May 3, 2010 at 10:34 AM, Scott Wood wrote: >> Grant Likely wrote: >>>> >>>> + // IPIC >>>> + // interrupts cell = >>>> + // sense values match linux IORESOURCE_IRQ_* defines: >>>> + // sense == 8: Level, low assertion >>>> + // sense == 2: Edge, high-to-low change >>>> + // >>>> + ipic: interrupt-controller@c00 { >>>> + compatible = "fsl,mpc5121-ipic", "fsl,ipic"; >>>> + interrupt-controller; >>>> + #address-cells =<0>; >>> >>> Don't need #address-cells here >> >> #address-cells is required by ePAPR for interrupt controllers if an >> interrupt-map is used. > > Why? > > /me is too lazy to dig out ePAPR and look. Address cells are part of the interrupt identification. Typically with interrupt maps this is only used on the child end (e.g. to select a particular PCI slot), but if the parent interrupt controller's address cells are non-zero it will be expected in the parent interrupt specifier as well. I believe the only part of this that is new with ePAPR is that it asks that the interrupt controller address cells be explicitly specified, as it's a bit icky for it to default to 2 in some contexts and 0 in others. -Scott