This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

omap4460 GPIO_WK4 cannot used as interrupt pin

Other Parts Discussed in Thread: SYSCONFIG

Dear all,

I have used GPIO_WK4 as an interrupt pin, I used the os is android 4.0. I set the mode is MODE3 and input enable(OMAP_MUX_MODE3 | OMAP_INPUT_EN)。But it cannot work at all, the program doesnot enter ISR. I print the register value, and find the irq disable register is set (1 << 4). Then i write (1 << 4) to irq enable register. But it doesnot work at all.

can anyone help me?very thanks.

  • Do you have the ability to share a dump of the gpio registers?

    Have you made sure that the gpio is not configured as an output in the GPIO_OE register?

    Are you trying to interrupt from suspend or while the device is actively running?

    Cheers
    Jon

  • Dear Jon:

    Thanks for your reply!

    i used gpio_wk4 as a touchscreen's interrupt source. when i don't touch the touchscreen, the level is high. if i touch the touchscreen, the level will be low. But interrupt cannot generate.

    I used the request_irq(suo_irq, suo_interrupt,IRQF_TRIGGER_LOW, "SUO", NULL); to request an irq and used a thread detect the related register

    Before I called the request_irq function, the register value is:

    GPIO_IRQWAKEN_0 is 0

    GPIO_OE value is BFFFFF3F

    CONTROL_WKUP_PAD0 is 118011B

    GPIO_CTRL is 0

    GPIO_SYSCONFIG is 1D

    GPIO_LEVELDETECT0 IS 0

    GPIO_IRQSTATUS_CLR_0 value is 0

    after call request_irq, the register value is:

    GPIO_IRQWAKEN_0 is 10

    GPIO_SYSCONFIG is 1D

    CONTROL_WKUP_PAD0 is 118011B

    GPIO_LEVELDETECT0 is 10

    GPIO_OE value is BFFFFF3F

    GPIO_IRQSTATUS_SET_0 is 10

    GPIO_IRQSTATUS_CLR_0 value is 10

    it does not work at all, so i replace gpio_wk2 used as interrupt source. at begining,some unexpect interrupt generate in high level, after that, the gpio_wk2 work well.

     

  • Lucky Zhang,

    Do you mean that this issue is resolved now, since you are able to use gpio_wk2 successfully?  If you still need to use gpio_wk4, and it is still not working, can you please share your HW and SW configuration for gpio_wk4 (at least any differences from gpio_wk2)?

    Thanks,
    Gina 

  • Dear Gina,

    Thanks for your reply,I have solved this problem,The gpio_wk4 linked to a external board as a SIM POWER control or a touchscreen INT pin alternative, but in my ic, the gpio_wk4 have linked to SIM POWER, so it doesn't connect to the touchscreen INT pin. And after i connect it to touchscreen INT pin, configured as OMAP_MUX_MODE3 | OMAP_INPUT_EN, It works well now.

    very thanks!