Eugen Hristev
May 31, 2023
Reading time:
A while back I presented USB 2.0 host support that was added to U-boot for the Radxa Rock-5B RK3588 Rockchip board. This time USB 3.0 was added with support for the host and gadget!
In the photo, the number #8 indicator shows you where the USB 3.0 host ports are located. The bottom port (near the PCB) works only in 3.0 mode. One can connect a mass storage memory stick here, or an Ethernet dongle for example.
Hardware description of the Radxa Rock-5B board. Source: https://wiki.radxa.com/Rock5/hardware/5b |
Number #3, indicated by USB Power, is also used for gadget mode: with this connection, a host laptop, for example, can see the board as a gadget, and with this, plenty of things can happen: it can be used as a mass storage stick for example, or one can use the rockchip rkdeveloptool to reflash media on the board.
At the moment it should be noted that only one orientation works if a type C to type C cable is used.
The inner workings of the USB 3.0 are as follows: there is the DesignWare Core Dual Role Device (DRD) which can work both in host and gadget mode, and both in USB 2.0 and USB 3.0 modes. There are two different PHYs connected to the controller. One is the same that is used for the USB 2.0 host controller (the Inno phy) and the new one is the USB 3.0 USBDP PHY (combo with DisplayPort Alt mode). All these tied together offer the flexibility to connect different devices and different cables to the Rock-5B board.
And because U-boot is open source, everyone can review the patches, test, or even contribute!
08/10/2024
Having multiple developers work on pre-merge testing distributes the process and ensures that every contribution is rigorously tested before…
15/08/2024
After rigorous debugging, a new unit testing framework was added to the backend compiler for NVK. This is a walkthrough of the steps taken…
01/08/2024
We're reflecting on the steps taken as we continually seek to improve Linux kernel integration. This will include more detail about the…
27/06/2024
With each board running a mainline-first Linux software stack and tested in a CI loop with the LAVA test framework, the Farm showcased Collabora's…
26/06/2024
WirePlumber 0.5 arrived recently with many new and essential features including the Smart Filter Policy, enabling audio filters to automatically…
12/06/2024
Part 3 of the cmtp-responder series with a focus on USB gadgets explores several new elements including a unified build environment with…
Comments (2)
Cole:
Jun 16, 2023 at 11:35 PM
Hi! I have been following this work and have done questions:
1. How is NVME support going both in kernel and u-boot?
2. How did it come to be that Collabora is doing this work? I'm looking at my pile of SBCs wishing they all had this transparent upstream work being done.
3. That's it. But thank you. Collabora works on such cool stuff in the Linux ecosystem!
Reply to this comment
Reply to this comment
Eugen:
Jun 19, 2023 at 03:00 PM
Hi !
Currently we are not working on NVME , at least at bootloader level, but definitely we can do it if you are interested !
I am happy that you are fond of our work !
Eugen
Reply to this comment
Reply to this comment
Add a Comment