Imx8mm USB VBUS force enable (manufacturing test)

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

Imx8mm USB VBUS force enable (manufacturing test)

1,267 次查看
heisenbug
Contributor II

I am looking for a way to force the VBUS on/(off) even though nothing is connected.

I have tried setting the /sys/class/usb_role/ci_hdrc.0-role-switch/role "host". But this does not in it self trigger the enable.

The USB switching work seemingly perfect in normal usage (Switching automatically depending of a device or a host being connected). This is purely for tests in production.

Also when i have a device connected and forces the "role" of the IMX to be device, it still keeps supplying VBUS.

Maybe you can clear my confusion.

标签 (1)
0 项奖励
回复
3 回复数

1,184 次查看
heisenbug
Contributor II

clarifying: I cannot turn if off in host mode:

devmem2 0x30330058 w 0x00000000

 nor turn it on, when nothing connected:

devmem2 0x30330058 w 0x00000001

 

Note: I am using devmem from busybox instead,, but I regards that as not an factor.

0 项奖励
回复

1,247 次查看
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

If USB is operating as host, VBUS will be on always.

You could try change MUX options to "force" this behavior. For example:

Turn on USB bus:

devmem2 0x30330058 w 0x00000001

Turn off USB bus:

devmem2 0x30330058 w 0x00000000

Best regards.

 

0 项奖励
回复

1,186 次查看
heisenbug
Contributor II

Sorry for late reply, when testing this it does not change the VBUS neither in host mode (with device connected) nor without anything connected.

0 项奖励
回复