Imx8mm USB VBUS force enable (manufacturing test)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Imx8mm USB VBUS force enable (manufacturing test)

1,258件の閲覧回数
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,175件の閲覧回数
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,238件の閲覧回数
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,177件の閲覧回数
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 件の賞賛
返信