Poweroff USB port from userland

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

Poweroff USB port from userland

1,111 次查看
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,075 次查看
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,073 次查看
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,102 次查看
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,094 次查看
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,081 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

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

0 项奖励
回复