Poweroff USB port from userland

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

Poweroff USB port from userland

1,172件の閲覧回数
gnulux
Contributor II

Hi all , 

I'm working on development of a new board that will host IMXMP SOC. 

I would like someway to poweroff usb port or usb devices from a program in linux userland. 

Can i do this with the IMX processor ? does PMIC (regulator chip)  can manage that ? 

 

thks

0 件の賞賛
返信
5 返答(返信)

1,136件の閲覧回数
gnulux
Contributor II

Hi, 

Mainly Host port.

On my final board ( which will have a little power rescue) i will have on USB port :

    - a NFC reader

    - backlight for touchscreen

    - BLE

    - Camera .

At the end, i would like to poweroff all usb port when main power supply is off except for the backlight.

I plan to use a SMARC 2.1 card with a IMX8MP this card has 6 USB ports + 1 OTG available.

gnulux_0-1666020041804.png

I was wondering if if it was possible ?

 

 

0 件の賞賛
返信

1,134件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

For HOST port, you can control USB2_PWR_EN to close USB2_HOST_VBUS if you reserve this part from EVK.

Qmiller_1-1666071084729.png

 

 

 

 

0 件の賞賛
返信

1,163件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @gnulux 

PMIC can't do this, please refer kernel document:

https://www.kernel.org/doc/html/latest/driver-api/usb/power-management.html

0 件の賞賛
返信

1,155件の閲覧回数
gnulux
Contributor II
Thks for your reply .
I'd already read and tested usbpower management , but it appears that usb devices still consume few watts in suspend.

I really need to cut the power to reduce power consumption.
0 件の賞賛
返信

1,142件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

Can you share which usb port you need manage power, HOST port  or TYPEC port?

0 件の賞賛
返信