Imx8mm USB VBUS force enable (manufacturing test)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Imx8mm USB VBUS force enable (manufacturing test)

1,257 Views
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.

Labels (1)
0 Kudos
Reply
3 Replies

1,174 Views
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 Kudos
Reply

1,237 Views
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 Kudos
Reply

1,176 Views
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 Kudos
Reply