i liked to get an interrupt from a pushbutton and handle it in userspace via a kernel modul.
To begin with, i have an Linux distro done with yocto and the kernel 5.5. I compiled my kernel modul also with yocto. I have loaded the goldenreference out from quartus via usb-blaster. I enabled the bridges in U-Boot. I could register my kernelmodul. But when i cat /proc/interrupts i could not see any interrupts occurred?
Inside my kernelmodul i tried to read all 4 register from the leds on the board and printed them.
Please have a look on my screenshots.
Question is simply how can i get that running or where is the error. Do i have to do some device tree appendings?
Apologize for the delay in response, regarding the interrupt handler, you can try our tutorial with ARM processor interrupts to handle KEY presses below:
Also, similar discussion on the issue can be found below: