Hi,
Linux kernel version: K2_LINUX_03.10.10_14.07
We want to configure Keystone 2 GPIO pin 16 as interrupt source in our custom board based on K2HK.
GPIO 16 is connected to FPGA and FPGA sends 1PPS. We are able to capture 1PPS signal on GPIO pin 16.
I am referring Keystone GPIO documentation and linux kernel keystone GPIO documentation.
http://processors.wiki.ti.com/index.php/MCSDK_UG_Chapter_Exploring#Keystone_GPIO_Driver
I am not receiving PPS interrupt.
In our custom driver, we do the following
1. Mapping GPIO to IRQ
irq_num = gpio_to_irq(16)
2. Request IRQ
request_irq(irq_num, handler, 0, "gpio_16_pps, NULL);
3. Setting IRQ type
set_irq_type(irq_num, IRQF_TRIGGER_FALLING);
I am manually configuring BINTEN EN bit to enable interrupts and SET_FAL_TRIG bit SETFAL15 using devmem2 tool. But I could not see any interrupts.
Are there any steps missing?
/dev/shm # cat /proc/interrupts CPU0 CPU1 29: 0 0 GIC arch_timer 30: 13952244 4039370 GIC arch_timer 56: 0 0 GIC a15-l1l2-ecc-err-irq 70: 0 0 GIC pcie-error-irq 80: 1116314 0 GIC hwqueue-8704 88: 0 0 GIC hwqueue-8712 89: 0 0 GIC hwqueue-8713 92: 329690 0 GIC hwqueue-8716 94: 0 0 GIC hwqueue-8718 142: 0 0 GIC timer64-event 248: 1030576 0 GIC hwqueue-acc-37 309: 3860 0 GIC serial 315: 23853 0 GIC 2530000.i2c0 318: 41 0 GIC 2530400.i2c1 324: 4217400 0 GIC 21000400.spi 328: 0 0 GIC 21000600.spi 480: 0 0 GIC ddr3-ecc-err-irq 512: 0 0 keystone-ipc-irq 2620040.dsp0 513: 0 0 keystone-ipc-irq 2620044.dsp1 514: 0 0 keystone-ipc-irq 2620048.dsp2 515: 0 0 keystone-ipc-irq 262004c.dsp3 520: 0 0 keystone-ipc-irq 2620040.dsp0 521: 0 0 keystone-ipc-irq 2620044.dsp1 522: 0 0 keystone-ipc-irq 2620048.dsp2 523: 0 0 keystone-ipc-irq 262004c.dsp3 556: 0 0 gpio-keystone gpio_16_pps
Please clarify the steps for GPIO to IRQ for keystone 2.
Thanks
Rams