DTS device tree node for dual port RAM

EXTERNAL Lange Matthias (AA-DGW/ENG1) Matthias.Lange at beissbarth.com
Thu Mar 12 22:24:26 EST 2009


Hi,

I am working on a MPC5200-based board. There is a dual port RAM connected to the MPC5200 via the localbus. In my setup one can raise an interrupt at the MPC5200 to signal new that new data has arrived in the dual port RAM. I have already found out that the interrupt delivery actually works (do_IRQ gets called when raising the interrupt).

My problem is that my driver (kernel 2.6.24) can not register for the interrupt. Each time I call request_irq I get -ENOSYS. I am suspecting that I have done something wrong in my dts defining the dual port RAM. I have defined the device as follows

localbus {
        compatible = "fsl,orion-localbus",
                     "fsl,mpc5200-localbus",
                     "fsl,pq2-localbus";
        #address-cells = <2>;
        #size-cells = <1>;
        reg = <f0010100 40>;
        ranges = <0 0 fe000000 00400000>;

        dpram at 40000000 {
                device_type = "dpram";
                interrupts = <0 0 0>;
                interrupt-parent = <&mpc5200_pic>;
        };
};

What am I doing wrong? What am I missing?

Thanks,
Matthias Lange.



More information about the Linuxppc-dev mailing list