We're hiring!
*

Adding bootloader support for USB 2.0 Host for Radxa ROCK 5B RK3588

Eugen Hristev avatar

Eugen Hristev
April 27, 2023

Share this post:

Reading time:

The Radxa ROCK 5B board has no support for USB 2.0 Host in the U-boot bootloader.

There are two USB 2.0 ports (number 7 in the photo) and two USB 3.0 ports (number 8 in the photo). However, the top USB 3.0 port can also work in 2.0 mode.

Hardware description of the Radxa Rock-5B board.
Source: https://wiki.radxa.com/Rock5/hardware/5b

 

The Inno2 USB PHY driver in U-boot requires changes to be able to correctly start the PHY variant that is present in the RK3588 SoC. The regulator subsystem in U-boot needs to be able to count how many PHYs have requested the power regulator, such that disabling one PHY does not involuntarily cut off the power for the other PHY.

The device tree of the board needs to correctly describe the power sequence, the USB host controller, the PHYs, and all the connections between them. And lastly, the generic OHCI and EHCI drivers can work directly with the USB controller in RK3588.

After implementing all the required changes, the USB Host works, and we can connect the USB mass storage device and Ethernet dongle.

If you are interested, we have a dedicated tree at Collabora that includes the mentioned support: https://gitlab.collabora.com/hardware-enablement/rockchip-3588

The beauty of Open Source is that we can reuse code written by many other people, keep their authorship, and credit them for their work, without needing to reinvent anything.

Hence, my work as the last step into getting this into mainline U-boot is nearly finished. The patches along with all my required changes are already public:

https://marc.info/?l=u-boot&m=168191161609668&w=2

and

https://marc.info/?l=u-boot&m=168191189309879&w=2

And yet another beautiful part of Open Source is that anyone can comment, review, and test these changes before they are integrated into mainline U-boot!

Comments (0)


Add a Comment






Allowed tags: <b><i><br>Add a new comment:


Search the newsroom

Latest Blog Posts

Faster inference: torch.compile vs TensorRT

19/12/2024

In the world of deep learning optimization, two powerful tools stand out: torch.compile, PyTorch’s just-in-time (JIT) compiler, and NVIDIA’s…

Mesa CI and the power of pre-merge testing

08/10/2024

Having multiple developers work on pre-merge testing distributes the process and ensures that every contribution is rigorously tested before…

A shifty tale about unit testing with Maxwell, NVK's backend compiler

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…

A journey towards reliable testing in the Linux Kernel

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…

Building a Board Farm for Embedded World

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…

Smart audio filters with WirePlumber 0.5

26/06/2024

WirePlumber 0.5 arrived recently with many new and essential features including the Smart Filter Policy, enabling audio filters to automatically…

Open Since 2005 logo

Our website only uses a strictly necessary session cookie provided by our CMS system. To find out more please follow this link.

Collabora Limited © 2005-2024. All rights reserved. Privacy Notice. Sitemap.