[PATCH 0/3] arm: rockchip: rk3399: rock-pi-4: power domain driver to boot from MMCSD

Xavier Drudis Ferran xdrudis at tinet.cat
Thu Jun 2 13:02:00 CEST 2022


Hello. 

I've been trying to compile myself all the stack to boot a Radxa Rock
Pi 4B.

I've found and worked around a few issues and I'm starting to select,
clean up and send the patches I used.

Since I'm new to the project I may have overseen something obvious. If
so sorry. For the rest I hope something can be useful to others.

Likewise I've found a couple of suspicions lines in clk_rk3399.c, but
since I haven't found cases where they give problems, I should not
send changes, or should I?
 
This series is the minimum I needed to be able to boot linux-libre
from a SD card, which wasn't possible for me just from master.  It
still displays some errors, but I leave them for later because it
boots.

The series is basically about trying not to overlap ATF, enabling a
couple of clocks that MMCSD uses, and adding a power domain driver for
rockchip, since I guess the DTS must have been updated from linux and
the board may have worked before but the new DTS maybe broke boot from
SD.

I'm not sure why power domain drivers in U-Boot leave the clocks they
need enabled, but I tried to disable them once powered up and it
didn't boot.

If people wants to test with other rockchip SOCs that'd be welcome,
but I'm not sure whether they need the new driver. For now I only
configured it for Rock Pi 4.

Thanks beforehand for any feedback. Specially if I should run any tests.

-- 
Xavier Drudis Ferran 


More information about the U-Boot mailing list