AnsweredAssumed Answered

IMX6 ULL: Using GPT capture pin (GPIO1:21) for event notification

Question asked by Phani Teja on Jun 4, 2018
Latest reply on Jun 8, 2018 by igorpadykov

Hello,

 

I have successfully tested GPIO1: 21 pin for event notification by doing following steps:

->irq = gpio_to_irq(21)

->devm_request_irq(p_dev, irq, irq_handler....)

 

For DTS changes: 

I have commneted all functions for this particular pin and did following steps:

$ /unit_tests/memtool IOMUXC.SW_MUX_CTL_PAD_UART2_RX_DATA.MUX_MODE=5 SOC: i.MX6UL
$ /unit_tests/memtool IOMUXC.SW_MUX_CTL_PAD_UART2_RX_DATA.SION=1 SOC: i.MX6UL

 

Here When I ever I provide signal on this pin, irq handler will get triggered. 

 

Now I want to test the same handler using same pin but as GPT capture pin

 

Could anybody suggest how to do this? It will be really helpfull if somebody share some example

 

Thanks,

Phani Movva

Outcomes