rk3588(CM3588) USB issues

Sebastian Kropatsch seb-dev at mail.de
Sun Aug 11 14:25:39 PDT 2024


Hi Michael,

Am 08.08.2024 um 10:38 schrieb Michael Zimmermann:
> Hi Sebastian,
> 
> Do you have the same USB issues? I'm asking you because you added the
> board to Mainline. If not, it'd be great if you can describe your
> software setup. Maybe I'm doing something wrong on the bootloader
> side?

I did some tests plugging in some USB devices and then rebooting:
- USB3.0 flash drive plugged into each of the USB-A ports (only one
at a time), the two USB3 ports I only tested once, the USB2 port
about 10 times
- Phone plugged into each of the USB-A ports (only one at a time).
- USB-C port not tested.
- Plugging in a USB hub device not tested due to lack of hardware.

I used Denx u-boot v2024.10-rc2 as bootloader, you can use the generic
target for the Rockchip RK3588. Booting into Ubuntu 24.04.

Most of my tests went just fine, with the USB device being recognized
after booting. The only problem I did observe was with the USB3.0 flash
drive plugged into the USB2-A port. Sometimes when rebooting, the flash
drive would not get recognized, only after removing it and plugging it
back in. And in *one* out of about 10 tries the kernel hung at boot.

I was not able to reproduce your other issues.

This may be an issue with u-boot and/or the USB driver, maybe even
partly due to the issue described here:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/phy/rockchip/phy-rockchip-usbdp.c?h=v6.11-rc2#n748

Quote from the driver:
if (ret) {
	dev_err(udphy->dev, "cmn ana lcpll lock timeout\n");
	/*
	 * If earlier software (U-Boot) enabled USB once already
	 * the PLL may have problems locking on the first try.
	 * It will be successful on the second try, so for the
	 * time being a -EPROBE_DEFER will solve the issue.
	 *
	 * This requires further investigation to understand the
	 * root cause, especially considering that the driver is
	 * asserting all reset lines at probe time.
	 */
	return -EPROBE_DEFER;
}


> 
> On Thu, Aug 1, 2024 at 9:05 PM Michael Zimmermann
> <sigmaepsilon92 at gmail.com> wrote:
>>
>> Hi,
>>
>> I have a friendlyelec CM3588 and USB doesn't quite seem to work. I
>> started with 6.8 but am now mostly testing with 6.11-rc1 since it
>> fixed the typec ports and pcie bifurcation and both of them seem to
>> have issues. I'm using fedora coreOS 40 with a self compiled
>> mainline-mcuboot which simply adds a config and dtb for that board.

Please try Denx u-boot v2024.10-rc2 and maybe Ubuntu or another
Debian based distro. For u-boot you can use the generic target for the
Rockchip RK3588 or add the device like you described.

Cheers,
Sebastian




More information about the Linux-rockchip mailing list