Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pi4, USB-C Port #266

Closed
ganzgustav22 opened this issue Sep 9, 2020 · 5 comments
Closed

Pi4, USB-C Port #266

ganzgustav22 opened this issue Sep 9, 2020 · 5 comments

Comments

@ganzgustav22
Copy link

ganzgustav22 commented Sep 9, 2020

Will (or should) this tool cut and restore power on the Pi4 USB-C Port also?

According to https://github.com/mvp/uhubctl#raspberry-pi-4b
uhubctl -l 3 -p 1 -a 0
should cut power. When I type this, I can see the device disappear in dmesg:

[  184.239568] dwc2 fe980000.usb: Not connected
[  184.239593] usb 3-1: usbfs: usb_submit_urb returned -19
[  184.239637] dwc2 fe980000.usb: Not connected
[  184.239652] usb 3-1: usbfs: usb_submit_urb returned -19
[  184.315865] usb 3-1: USB disconnect, device number 2

When running uhubctl -l 3 -p 1 -a 1 it doesn't come back though.

Edit, sorry forgot to add:

Using Raspberry Pi OS 2020-05-27:

Linux 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux

BCM2711 detected
BOOTLOADER: up-to-date
CURRENT: Thu 16 Apr 17:11:26 UTC 2020 (1587057086)
 LATEST: Thu 16 Apr 17:11:26 UTC 2020 (1587057086)
 FW DIR: /lib/firmware/raspberrypi/bootloader/critical
VL805: up-to-date
CURRENT: 000137ad
 LATEST: 000137ad

@ganzgustav22
Copy link
Author

Well, I've measured with a multimeter on TP1 now (I think this is the testpad that is connected to the USB +5V line?), but the power doesn't get cut off. Also I can measure 0 Ohm between TP1 and the +5V line on the GPIO header, that means it's parallel and the power cannot be controlled via software, or?

@mvp
Copy link
Owner

mvp commented Sep 9, 2020

uhubctl can see this device advertising power switching support, and is able to send a request to turn power off.

However, it seems that underlying chip is missing necessary circuitry to actually cut the power on otg line.

I don't know internal details of pi4 otg chip, perhaps @P33M or @SlySven know more about pi4 hardware and can shed some light?

@P33M
Copy link

P33M commented Sep 9, 2020

There is no power switching facility on Pi 4's USB-C port.

@mvp
Copy link
Owner

mvp commented Sep 9, 2020

Thanks @P33M for confirmation. I will change readme to mention that

@mvp mvp closed this as completed Sep 9, 2020
@ganzgustav22
Copy link
Author

Thanks for your quick help guys.

mvp added a commit that referenced this issue Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants