[PATCH v2] board: rockchip: Add Radxa E25 Carrier Board

Jonas Karlman jonas at kwiboo.se
Tue Jul 25 14:12:07 CEST 2023


On 2023-07-25 14:05, Jonas Karlman wrote:
> Radxa E25 is a network application carrier board for the Radxa CM3I SoM
> with a RK3568 SoC. It features dual 2.5G ethernet, mini PCIe, M.2 B Key,
> USB3, eMMC, SD, nano SIM card slot and a 26-pin GPIO header.
> 
> Features tested on a Radxa E25 v1.4:
> - SD-card boot
> - eMMC boot
> - USB host
> - PCIe/Ethernet adapters is detected
> - SATA
> 
> Device tree is imported from linux v6.4.
> 
> Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
> ---
> Changes in v2:
> - Remove the unneeded always-on/boot-on prop of vcc3v3_pi6c_05
> - Drop PCI_INIT_R=y and add MMC_HS200_SUPPORT=y to speed up boot
> - Enable sata1 node and set correct regulator to combphy1 node,
>   can be dropped in a future DT sync once linux patch [1] lands
> 
> This patch depends on the series "board: rockchip: Add Pine64 Quartz64
> and SOQuartz boards" [2] and all its depends.
> 
> A copy of this patch and all its depends can be found at [3].
> 
> [1] https://lore.kernel.org/linux-rockchip/20230724145213.3833099-1-jonas@kwiboo.se/
> [2] https://patchwork.ozlabs.org/project/uboot/list/?series=365266
> [3] https://github.com/Kwiboo/u-boot-rockchip/commits/rk3568-radxa-e25-v2

[...]
Boot log using ROCKCHIP_TPL=rk3568_ddr_1560MHz_v1.17.bin (with uart
baudrate=115200 and dis_train_print=1) and BL31=rk3568_bl31_v1.43.elf:


DDR V1.17 992b933606 typ 23/04/25-10:10:19
In
LP4/4x derate en, other dram:1x trefi
ddrconfig:0
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=2048MB

change to: 324MHz
clk skew:0x62

change to: 528MHz
clk skew:0x58

change to: 780MHz
clk skew:0x58

change to: 1560MHz(final freq)
clk skew:0x1c
out

U-Boot SPL 2023.07 (Jul 25 2023 - 09:51:48 +0000)
Trying to boot from MMC1
## Checking hash(es) for config config-1 ... OK
## Checking hash(es) for Image atf-1 ... sha256+ OK
## Checking hash(es) for Image u-boot ... sha256+ OK
## Checking hash(es) for Image fdt-1 ... sha256+ OK
## Checking hash(es) for Image atf-2 ... sha256+ OK
## Checking hash(es) for Image atf-3 ... sha256+ OK
## Checking hash(es) for Image atf-4 ... sha256+ OK
## Checking hash(es) for Image atf-5 ... sha256+ OK
## Checking hash(es) for Image atf-6 ... sha256+ OK
INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-607-gbf602aff1:cl
NOTICE:  BL31: Built : 10:16:03, Jun  5 2023
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    pmu v1 is valid 220114
INFO:    dfs DDR fsp_param[0].freq_mhz= 1560MHz
INFO:    dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO:    dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO:    dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0xa00000
INFO:    SPSR = 0x3c9


U-Boot 2023.07 (Jul 25 2023 - 09:51:48 +0000)

Model: Radxa E25 Carrier Board
DRAM:  2 GiB
PMIC:  RK8090 (on=0x40, off=0x00)
Core:  318 devices, 29 uclasses, devicetree: separate
MMC:   mmc at fe2b0000: 1, mmc at fe310000: 0
Loading Environment from nowhere... OK
In:    serial at fe660000
Out:   serial at fe660000
Err:   serial at fe660000
Model: Radxa E25 Carrier Board
Net:   No ethernet found.
Hit any key to stop autoboot:  0
=> mmc dev 0
switch to partitions #0, OK
mmc0(part 0) is current device
=> mmc info
Device: mmc at fe310000
Manufacturer ID: 70
OEM: 0
Name: T22708
Bus Speed: 200000000
Mode: HS200 (200MHz)
Rd Block Len: 512
MMC version 5.0
High Capacity: Yes
Capacity: 7.1 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 7.1 GiB
Boot Capacity: 4 MiB ENH
RPMB Capacity: 4 MiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected
=> pci enum
=> pci
BusDevFun  VendorId   DeviceId   Device Class       Sub-Class
_____________________________________________________________
00.00.00   0x1d87     0x3566     Bridge device           0x04
01.00.00   0x10ec     0x8125     Network controller      0x00
02.00.00   0x1d87     0x3566     Bridge device           0x04
03.00.00   0x10ec     0x8125     Network controller      0x00
=> net list

Warning: eth_rtl8169 MAC addresses don't match:
Address in ROM is               00:e0:4c:02:05:17
Address in environment is       86:41:4b:83:b3:2c
eth0 : eth_rtl8169 86:41:4b:83:b3:2c active
eth1 : eth_rtl8169 86:41:4b:83:b3:2d
=> scsi scan
scanning bus for devices...
Target spinup took 0 ms.
AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp fbss pio slum part ccc apst
  Device 0: (0:0) Vendor: ATA Prod.: TS256GMTS430S Rev: 22Z2
            Type: Hard Disk
            Capacity: 244198.3 MB = 238.4 GB (500118192 x 512)
=> bdinfo
boot_params = 0x0000000000000000
DRAM bank   = 0x0000000000000000
-> start    = 0x0000000000200000
-> size     = 0x000000007fe00000
flashstart  = 0x0000000000000000
flashsize   = 0x0000000000000000
flashoffset = 0x0000000000000000
baudrate    = 115200 bps
relocaddr   = 0x000000007ff0a000
reloc off   = 0x000000007f50a000
Build       = 64-bit
current eth = eth_rtl8169
ethaddr     = 86:41:4b:83:b3:2c
IP addr     = <NULL>
fdt_blob    = 0x000000007dbec2b0
new_fdt     = 0x000000007dbec2b0
fdt_size    = 0x0000000000013ae0
lmb_dump_all:
 memory.cnt = 0x1 / max = 0x10
 memory[0]      [0x200000-0x7fffffff], 0x7fe00000 bytes flags: 0
 reserved.cnt = 0x2 / max = 0x10
 reserved[0]    [0x7cbe6000-0x7fffffff], 0x0341a000 bytes flags: 0
 reserved[1]    [0x7dbe7ca0-0x7fffffff], 0x02418360 bytes flags: 0
devicetree  = separate
serial addr = 0x00000000fe660000
 width      = 0x0000000000000004
 shift      = 0x0000000000000002
 offset     = 0x0000000000000000
 clock      = 0x00000000016e3600
arch_number = 0x0000000000000000
TLB addr    = 0x000000007ffe0000
irq_sp      = 0x000000007dbec2a0
sp start    = 0x000000007dbec2a0
Early malloc usage: 1708 / 20000
=>

Regards,
Jonas


More information about the U-Boot mailing list