Poweroff USB port from userland

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

Poweroff USB port from userland

680 Views
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 Kudos
5 Replies

644 Views
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 Kudos

642 Views
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 Kudos

671 Views
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 Kudos

663 Views
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 Kudos

650 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

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

0 Kudos