All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sean MacLennan <smaclennan@pikatech.com>
To: Stefan Roese <sr@denx.de>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: External int in dts
Date: Fri, 28 Dec 2007 15:55:37 -0500	[thread overview]
Message-ID: <477562C9.8000805@pikatech.com> (raw)
In-Reply-To: <200712282012.56516.sr@denx.de>

Stefan Roese wrote:
> On Friday 28 December 2007, Sean MacLennan wrote:
>   
>> I have an FPGA which uses external int 1, which is interrupt 24 on UIC0.
>> I tried the following entry in various places:
>>
>>         FPGA0: fpga {
>>             compatible = "pika,fpga";
>>             interrupts = <18 4>;
>>     
>
> Is the interrupt level sensitive and active high? Then "4" is correct here. 
> But if it is active low then you should use "8" here".
>   
It was active low. Thank you.

I got it working. You do need some glue logic. Basically the following 
two lines (ignoring all error checking):

 np = of_find_compatible_node(NULL, NULL, "pika,fpga");
 irq = irq_of_parse_and_map(np, 0);

Simple!

Cheers,
   Sean

      reply	other threads:[~2007-12-28 20:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-28 18:13 External int in dts Sean MacLennan
2007-12-28 19:12 ` Stefan Roese
2007-12-28 20:55   ` Sean MacLennan [this message]

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=477562C9.8000805@pikatech.com \
    --to=smaclennan@pikatech.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=sr@denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.