AnsweredAssumed Answered

GPIO as GPIO-Input and IRQ-Source

Question asked by .Linux. on Feb 29, 2012
Latest reply on Feb 29, 2012 by Aaronwu



i have currently the problem using a GPIO (GPIO-PF6) as GPIO-Input and at the same time as IRQ for starting my function.

The Kernel-Driver should wait for a falling edge of the GPIO and afterwards read this GPIO for a specific time.

For testing i have used gpio_request(..) and request_irq(..) to the same GPIO but this failed because the request_irq(..) falied (gpio already reserved).


Is it possible to set a IRQ to this opened-gpio (gpio_request(GPIO_PF6, "test"); and gpio_direction_input(GPIO_PF6);)

My uClinux is 2008R1.5 (i know, very old but it´s running good for us).


Thanks a lot,