MPC5200 VIRQ question

Grant Likely grant.likely at secretlab.ca
Thu Dec 11 18:16:00 EST 2008


On Wed, Dec 10, 2008 at 6:04 PM, Gary Thomas <gary at mlbassoc.com> wrote:
> Benjamin Herrenschmidt wrote:
>> On Thu, 2008-12-04 at 06:51 -0700, Gary Thomas wrote:
>>> I have a MPC5200 based board which has an FPGA for external
>>> I/O, etc.  This FPGA also funnels interrupts from the various
>>> external devices through to the CPU.
>>>
>>> I've defined this structure in my DTS:
>>>
>>>      fpga at f8000000 {
>>>              device_type = "board-control";
>>>              #address-cells = <1>;
>>>              #size-cells = <1>;
>>>              // Note: includes sub-devices like CAN, A/D, etc
>>>              reg = <0xf8000000 0x100000>;
>>>
>>>              fpga_ic: fpga_ic at f8000000 {
>>>                      device_type = "fpga-int-ctlr";
>>>                      interrupt-controller;
>>>                      #address-cells = <0>;
>>>                      #interrupt-cells = <2>;
>>>                      interrupts = <2 26 3>; // IRQ2
>
> BTW, this is wrong! Are the IRQ mappings on the MPC5200 documented
> somewhere? I've looked and looked without much joy.  Only by
> experimentation did I discover that "<1 2 3>" corresponds to IRQ2.

http://www.nabble.com/-PATCH--powerpc-mpc5200:-Document-and-tidy-irq-driver-td20740376.html

This should be going in for 2.6.29.  There is also some documentation
about it in Documentation/powerpc/mpc52xx-device-tree-bindings.txt

g.



More information about the Linuxppc-dev mailing list