AnsweredAssumed Answered

Can't request irq line on mpc8308

Question asked by Alexander Lyasin on Jul 12, 2011
Latest reply on Aug 18, 2011 by tarun shankar

Hi all!

I have a problem with getting interrupt on the MPC8308erdb
I have a SoC board with the MPC8308 processor. There are a few SPI devices on
the SPI Bus. The part of the dts file in attache:
I have a problem with getting interrupt on the MPC8308erdb
I have a SoC board with the MPC8308 processor. There are a few SPI devices on
the SPI Bus. The part of the dts file below:

               spi@7000 {
                        cell-index = <0>;
                        compatible = "fsl,spi";
                        reg = <0x7000 0x1000>;
                        interrupts = <16 0x8>;
                        interrupt-parent = <&ipic>;
                        mode = "cpu";

                        falc@0 {
                                cell-index = <1>;
                                compatible = "falc";
                                interrupts = <48 0x8>;
                                interrupt-parent = <&ipic>;
                                spi-max-frequency = <5000000>;
                                reg = <0>;
                        };

                };

The part of the setup mpc8308_erdb.c file:

static struct spi_board_info mpc830x_spi_boardinfo[2] = {
    {
        .bus_num = 0x7000,
        .chip_select = 0,
        .max_speed_hz = 5000000,
        .modalias = "falc",
    },
    {
        .bus_num = 0x7000,
        .chip_select = 1,
        .max_speed_hz = 5000000,
        .modalias = "spidev",
    },
};

After Linux loading SPI controller is in a system, but falc device not found.
falc device has  output  to  interrupt  controller IPIC on 48 irq line.
request_irq(...) call return error -38 while device module loading.

Help me please, how can I request irq line?

Outcomes