Hi Aditya,
You could take a look at the following Community documents, which explains how to use GPIOs with their related Linux files:
https://community.nxp.com/docs/DOC-329735
Additionally, you could also refer to GPIO related sections of the i.MX Linux Reference Manual document (attached).
Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------