What is difference between role switch procedures ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

What is difference between role switch procedures ?

跳至解决方案
1,619 次查看
amit251291
Contributor IV

We were exploring role switch for imx8qm-Android9-Auto. 

I came to know that role switch can be possible by changing right role (host | gadget) in 

/sys/bus/platform/devices/ci_hdrc.0/role
During testing we could see that roles are getting changed and based on the roles it was enumerating Iphone. 
This is one case. But during my exploration i also found chipidea document which also explains role switching using HNP and SRP protocols. We tried this but it doesn't works after step 2. 
I wanted to understand the difference between the 2 procedures. Could you please throw some light here ??
标记 (4)
0 项奖励
回复
1 解答
1,551 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Amit

 there are two USB controllers:

- One is USB2 compatible and the IP comes from ChipIdea (the same USB IP used on mx5/mx6/mx7)

- One is USB3 compatible and the IP comes from Cadence.

The Cadence USB controller is described like this in arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi:

usbotg3: usb3@5b110000 {
compatible = "Cadence,usb3";

....

The Chipidea USB controller is described like this in arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi:

usbotg1: usb@5b0d0000 {
compatible = "fsl,imx8qm-usb", "fsl,imx7ulp-usb",
"fsl,imx27-usb";

....

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,552 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Amit

 there are two USB controllers:

- One is USB2 compatible and the IP comes from ChipIdea (the same USB IP used on mx5/mx6/mx7)

- One is USB3 compatible and the IP comes from Cadence.

The Cadence USB controller is described like this in arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi:

usbotg3: usb3@5b110000 {
compatible = "Cadence,usb3";

....

The Chipidea USB controller is described like this in arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi:

usbotg1: usb@5b0d0000 {
compatible = "fsl,imx8qm-usb", "fsl,imx7ulp-usb",
"fsl,imx27-usb";

....

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,551 次查看
amit251291
Contributor IV

Dear igor,

Thanks for  clarification. I have found answer with your explanation. 

0 项奖励
回复