I have catched the IRQ 41 on Linux, but it's only working when I set the output to a switch peripheral.
I have built the device-tree and I have created a Kernel module which reads the interrupts and performs an action. In my case I want to receive an IRQ, read the value, negate it, and then, send it back to the FPGA.
In the Qsys I assigned the IRQ 0 to the bus 0. And in the pin planner i'm assigning a pin for a switch. It's working.
But... When I want to send a signal from a key or from an FPGA generated signal, it doesn't catch it and I don't know why.
This is the result when I use a SW. I also can see on the oscilloscope the output from the HPS, because I amsending it back to the FPGA and outputting it through GPIO.
For Cyclone V SoC-FPGA, refer here:
Jump to Interrupt page 28-5 (3421/3501 in pdf) onward.