imx6 GPIO

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6 GPIO

1,768 Views
amonica
Contributor II

Hi,

     I wanted to configure the GPIO pin 9 on imx6 board as interrupt. I have added the following configurations

  ret = gpio_request((unsigned int)bridge.nGpio,"Interrupt");

  ret = gpio_direction_input((unsigned int)bridge.nGpio);

  ret = gpio_export((unsigned int)bridge.nGpio, 1);

  bridge.irq = gpio_to_irq((unsigned int)bridge.nGpio);

The interrupts keeps on coming on imx6 but even though my device does not generate any interrupt. Is anything else required to be added on my gpio config side.

Regards,

Amonica

0 Kudos
1 Reply

468 Views
igorpadykov
NXP Employee
NXP Employee

Hi AGNES

please start with checking links below

http://android.serverbox.ch/?p=972GPIO interr Android

http://blog.skerpa.com/dschnell/blog/2013/10/27/linux-and-gpio-userspace-interrupts/

Also it may be suefyl to check pad with oscilloscope for actual

signal state.

Best regards

chip

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos