Hi All,
We are using the latest processor sdk linux for am5748 sitara,
we have connected an interrupt line for an external device to sys_nirq1 pin, when we try to register the interrupt handler in the Linux driver we are seeing errors,
at u-boot this pin is mixed of interrupt functionality.
ret = request_irq(2, &z85_isr, IRQF_TRIGGER_FALLING, "Zilog", sad); // EXT_SYS_IRQ_1 == MPU_IRQ_7 == 2
[ 136.799349] Z85: request irq, num=0x2
[ 136.803080] fail to request_irq for irq num = 2
[ 136.807671] Z85: request irq, ret=0xffffffea
for the TRM this sys_nirq1 is mapped to MPU_IRQ_7:
but when we convert to gpio and do gpio_to_irq we are able to register isr handler.
isq = gpio_request(GPIO1_3, "irq_rx");
if( (isq = gpio_to_irq(GPIO1_3)) < 0 ) return -1;
is there any difference if we map irq using gpio_to_irq then directly irq number?
if yes, then how we can map this irq to isr handler(directly using irq number without converting to gpio.
Regards,
Snehal