RCW
Reference Mamnul
DTS
I want to known How to use IRQ0~11 in kernel module independly without "of function"?
and I use follwed code , but all failed。
irq = 167;
//irq = 167 - 32;
//irq = 3;
//no = irq_create_mapping(NULL, irq);
irq_set_irq_type(irq , IRQ_TYPE_LEVEL_LOW);
ret = request_irq(irq, irq_data_handle, IRQF_SHARED, "irqdata", &self);
Use also the "cat /proc/interrupts" command.
See the following document:
There is a lot of information about IRQ using under Linux.
For example see the following pages:
https://www.kernel.org/doc/html/v4.12/core-api/genericirq.html
https://www.oreilly.com/library/view/understanding-the-linux/0596005652/ch04s06.html
https://stackoverflow.com/questions/14082048/startup-code-for-linux-irq-interrupt-hander-for-arm
http://venkateshabbarapu.blogspot.com/2012/09/interrupt-handling-in-arm.html