USB-port powering & CEC support
#4
(08-04-2017, 03:42 AM)gonzo Wrote: Where i can get the Information if it’s possible to power up/down the USB-ports seperately?

Preproduction rock64s appeared to be able to toggle the USB2 ports via GPIO0_A2, and the USB3 port via GPIO0_A0 (but I never got around to testing that), but from the v2 (production release) schematics, it looks like the USB2 port power is still toggleable via GPIO0_A2, but the USB3 port connected is connected to the PWR_LED line on the RK805 PMIC, so unless we can a) talk to the RK805 and b) it allows the PWR_LED to be toggled, the USB3 port power probably can't be toggled.

To toggle the power, to test the functionality, you should, as root (i.e. sudo -i) be able to do the following (where GPIO0_A2 calculates to sysfs 2)
Code:
echo 2 > /sys/class/gpio/export #enable use of pin by sysfs
echo out > /sys/class/gpio/gpio2 #set as an output
echo 1 > /sys/class/gpio/gpio2 #take pin high
echo 0 > /sys/class/gpio/gpio2 #take pin low

The application note for that SY6280 current limiter chip (which is what should allow the ports to be turned on and off) says it is enabled when high, so by rights, doing the echo 0 should power down the port... and there is also the possibility that functionality hasn't been enabled in the device tree...


Messages In This Thread
USB-port powering & CEC support - by gonzo - 08-04-2017, 03:42 AM
RE: USB-port powering & CEC support - by Luke - 08-04-2017, 03:54 AM
RE: USB-port powering & CEC support - by gonzo - 08-04-2017, 04:07 AM
RE: USB-port powering & CEC support - by pfeerick - 08-04-2017, 07:46 AM
RE: USB-port powering & CEC support - by gonzo - 08-04-2017, 09:53 AM
RE: USB-port powering & CEC support - by pfeerick - 08-04-2017, 06:57 PM
RE: USB-port powering & CEC support - by gonzo - 08-07-2017, 10:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Testing USB port(s) clach04 2 3,059 09-29-2021, 07:18 PM
Last Post: Rocklobster
  Trustzone support for Rock64 capablegh 1 2,410 07-17-2021, 10:15 AM
Last Post: capablegh
  Sent support order status , no responses RockPro64Newbie 3 6,051 01-19-2021, 12:09 PM
Last Post: mathygreen
  Rock64 problems with external Hard Drive and powering mjd 1 2,846 12-14-2019, 10:05 AM
Last Post: helsinki92
Photo Has anyone been able to get a signal from the av/composite/cvbs port? bestpc 2 3,832 09-17-2019, 12:51 PM
Last Post: bestpc
  10 bit HEVC support on Rock64? Bowser 3 5,880 01-07-2019, 09:05 AM
Last Post: tllim
  WiringPi support for Rock64 CristianM 1 2,981 12-26-2018, 08:02 AM
Last Post: CristianM
Exclamation Volumio 2 on Rock64 support gkkpch 5 10,709 12-01-2018, 05:05 PM
Last Post: Luke
  Does this support AES-NI instructions? oealias 1 4,252 06-08-2018, 02:56 AM
Last Post: wirr
  [Issue] Can't install the LibreElec Port from Raybuntu k0Lm_ 1 2,858 03-23-2018, 04:31 PM
Last Post: k0Lm_

Forum Jump:


Users browsing this thread: 1 Guest(s)