Hi @abrar_maniyar,
To use it from the kernel space, one can write a custom driver to access the particular GPIO(i.e., in your case, it is EXP_IO10). And access it with gpio cansleep APIs, as the EXP_IO10 is connected to the I2C Expander on the i.MX8MN.
-------------------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-------------------------------------------------------------------------------------------------------------------------------
Thank you.
Best regards,
Dhruvit.