linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: P2010 External HW IRQ number?
Date: Fri, 8 Jun 2012 14:23:50 -0500	[thread overview]
Message-ID: <4FD25146.5090108@freescale.com> (raw)
In-Reply-To: <OF71CEA252.1CE143D5-ONC1257A17.00329573-C1257A17.003D00D0@transmode.se>

On 06/08/2012 06:06 AM, Joakim Tjernlund wrote:
> 
> I have been trying to figure out what irq number to use for external IRQs for
> the P2010. There are no HW IRQ numbers in the ref manual and I cannot find
> any examples in the kernel either.
> How do specify irq numbers in my dts for external IRQs?

See Documentation/devicetree/bindings/powerpc/fsl/mpic.txt

For external interrupts, the first cell is equal to the IRQ number.

For an example of specifying an external IRQ, see the RTC and PHY nodes
in various mpc85xx device trees (e.g. mpc8536ds.dtsi).

> What do I use with request_irq(?,....)?

You need a virtual IRQ number.  Typically this comes from
irq_of_parse_and_map().

-Scott

  reply	other threads:[~2012-06-08 19:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-08 11:06 P2010 External HW IRQ number? Joakim Tjernlund
2012-06-08 19:23 ` Scott Wood [this message]
2012-06-09  9:00   ` Joakim Tjernlund
2012-06-11 15:12     ` Scott Wood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FD25146.5090108@freescale.com \
    --to=scottwood@freescale.com \
    --cc=joakim.tjernlund@transmode.se \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).