Found the node for role switching as "/sys/kernel/debug/ci_hdrc.0/role" for role switching. When the imx6 board is in gadget or device or peripheral mode the role switching is not happening with Apple Iphone. Found the problem that when the imx6 board is in gadget mode the voltage will be zero from the USB port. Is there any kernel patch for kernel 4.1 version ? or any other solution ? or the way to enable vbus ?
Refered below post :
https://community.nxp.com/message/502567
But didnt help in fixing issue
Hi,
You could take a look at the recommendations of the following thread:
https://community.nxp.com/thread/319562
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!
-----------------------------------------------------------------------------------------------------------------------