* External int in dts
@ 2007-12-28 18:13 Sean MacLennan
2007-12-28 19:12 ` Stefan Roese
0 siblings, 1 reply; 3+ messages in thread
From: Sean MacLennan @ 2007-12-28 18:13 UTC (permalink / raw)
To: linuxppc-dev
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>;
interrupt-parent = <&UIC0>;
};
Any hints, or is this the wrong way to enable an external int?
Cheers,
Sean
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: External int in dts
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
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Roese @ 2007-12-28 19:12 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Sean MacLennan
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".
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de
=====================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: External int in dts
2007-12-28 19:12 ` Stefan Roese
@ 2007-12-28 20:55 ` Sean MacLennan
0 siblings, 0 replies; 3+ messages in thread
From: Sean MacLennan @ 2007-12-28 20:55 UTC (permalink / raw)
To: Stefan Roese; +Cc: linuxppc-dev
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-28 20:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).