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