[PATCH 1/5] board: rockchip: Add Pine64 Quartz64-A Board

Jonas Karlman jonas at kwiboo.se
Sun Jul 23 17:04:52 CEST 2023


On 2023-07-23 16:55, Jonas Karlman wrote:
> The Pine64 Quartz64 Model A is a single-board computer based on the
> Rockchip RK3566 SoC. The board features USB3, SATA, PCIe, HDMI, USB2.0,
> CSI, DSI, eDP, eMMC, SD, and an e-paper parallel port, as well as a
> 20 pin GPIO header.
> 
> Features tested on a Quartz64-A 8GB v2.0 2021-04-27:
> - SD-card boot
> - eMMC boot
> - PCIe/NVMe/AHCI
> - USB host
> 
> Device tree is imported from linux v6.4.
> 
> Co-developed-by: Nicolas Frattaroli <frattaroli.nicolas at gmail.com>
> Signed-off-by: Nicolas Frattaroli <frattaroli.nicolas at gmail.com>
> Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
> ---

[...]

Boot log with ROCKCHIP_TPL=rk3566_ddr_1056MHz_v1.17.bin and
BL31=rk3568_bl31_v1.43.elf:

DDR V1.17 992b933606 typ 23/04/25-10:10:19
ln
LP4/4x derate en, other dram:1x trefi
ddrconfig:7
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=8192MB
tdqss: cs0 dqs0: 72ps, dqs1: -96ps, dqs2: -48ps, dqs3: -144ps,
tdqss: cs1 dqs0: 48ps, dqs1: -96ps, dqs2: -48ps, dqs3: -120ps,

change to: 324MHz
clk skew:0x61

change to: 528MHz
clk skew:0x58

change to: 780MHz
clk skew:0x58

change to: 1056MHz(final freq)
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:22%
dram drv:40,odt:80
vref_ca:00000071
clk skew:0x2f
cs 0:
the read training result:
DQS0:0x3e, DQS1:0x3d, DQS2:0x42, DQS3:0x3a,
min  : 0xd  0xe  0xe  0xd  0x1  0x2  0x5  0x1 , 0x6  0x7  0x2  0x1  0xa  0x9  0xe  0x9 ,
      0x10  0xf  0xe  0xa  0x6  0x1  0x1  0x4 , 0xb  0x8  0x4  0x1  0xd  0xa  0x9  0xc ,
mid  :0x2b 0x2c 0x2d 0x2c 0x20 0x22 0x24 0x20 ,0x26 0x26 0x22 0x20 0x2a 0x29 0x2c 0x29 ,
      0x30 0x2f 0x2d 0x29 0x25 0x20 0x21 0x23 ,0x2a 0x26 0x24 0x20 0x2c 0x29 0x28 0x2b ,
max  :0x49 0x4a 0x4d 0x4c 0x40 0x42 0x43 0x40 ,0x46 0x46 0x43 0x40 0x4b 0x49 0x4b 0x49 ,
      0x51 0x50 0x4c 0x49 0x45 0x3f 0x41 0x43 ,0x49 0x45 0x44 0x40 0x4c 0x49 0x47 0x4a ,
range:0x3c 0x3c 0x3f 0x3f 0x3f 0x40 0x3e 0x3f ,0x40 0x3f 0x41 0x3f 0x41 0x40 0x3d 0x40 ,
      0x41 0x41 0x3e 0x3f 0x3f 0x3e 0x40 0x3f ,0x3e 0x3d 0x40 0x3f 0x3f 0x3f 0x3e 0x3e ,
the write training result:
DQS0:0x38, DQS1:0x23, DQS2:0x29, DQS3:0x1c,
min  :0x64 0x67 0x68 0x68 0x5b 0x5d 0x5f 0x64 0x62 ,0x4c 0x4d 0x48 0x48 0x50 0x50 0x52 0x50 0x4e ,
      0x54 0x53 0x51 0x50 0x4c 0x4a 0x4a 0x4e 0x4f ,0x47 0x46 0x44 0x41 0x4a 0x4a 0x48 0x4c 0x45 ,
mid  :0x81 0x83 0x84 0x83 0x77 0x79 0x7c 0x7d 0x7c ,0x6a 0x6a 0x64 0x63 0x6c 0x6b 0x6c 0x6b 0x69 ,
      0x72 0x71 0x6d 0x6d 0x68 0x61 0x62 0x69 0x6a ,0x65 0x60 0x5f 0x5c 0x65 0x66 0x61 0x68 0x60 ,
max  :0x9e 0xa0 0xa1 0x9e 0x93 0x95 0x99 0x96 0x96 ,0x88 0x87 0x81 0x7e 0x88 0x87 0x87 0x87 0x85 ,
      0x90 0x8f 0x89 0x8a 0x84 0x79 0x7b 0x85 0x86 ,0x83 0x7b 0x7a 0x77 0x81 0x82 0x7b 0x85 0x7c ,
range:0x3a 0x39 0x39 0x36 0x38 0x38 0x3a 0x32 0x34 ,0x3c 0x3a 0x39 0x36 0x38 0x37 0x35 0x37 0x37 ,
      0x3c 0x3c 0x38 0x3a 0x38 0x2f 0x31 0x37 0x37 ,0x3c 0x35 0x36 0x36 0x37 0x38 0x33 0x39 0x37 ,
cs 1:
the read training result:
DQS0:0x3c, DQS1:0x3d, DQS2:0x42, DQS3:0x3b,
min  : 0xc  0xc  0xd  0xc  0x1  0x2  0x6  0x3 , 0x7  0x7  0x2  0x1  0x9  0x9  0xd  0x9 ,
      0x10  0xf  0xe  0xb  0x7  0x1  0x2  0x5 , 0xa  0x9  0x6  0x1  0xd  0xc  0xb  0xe ,
mid  :0x29 0x2a 0x2c 0x2a 0x20 0x21 0x24 0x20 ,0x26 0x26 0x22 0x21 0x2a 0x29 0x2c 0x28 ,
      0x2f 0x2e 0x2c 0x2a 0x26 0x20 0x21 0x24 ,0x29 0x27 0x26 0x21 0x2d 0x2c 0x2a 0x2d ,
max  :0x47 0x48 0x4b 0x49 0x3f 0x41 0x43 0x3e ,0x46 0x46 0x42 0x41 0x4b 0x49 0x4b 0x48 ,
      0x4f 0x4e 0x4a 0x49 0x45 0x40 0x41 0x44 ,0x49 0x46 0x46 0x41 0x4d 0x4c 0x49 0x4d ,
range:0x3b 0x3c 0x3e 0x3d 0x3e 0x3f 0x3d 0x3b ,0x3f 0x3f 0x40 0x40 0x42 0x40 0x3e 0x3f ,
      0x3f 0x3f 0x3c 0x3e 0x3e 0x3f 0x3f 0x3f ,0x3f 0x3d 0x40 0x40 0x40 0x40 0x3e 0x3f ,
the write training result:
DQS0:0x38, DQS1:0x23, DQS2:0x29, DQS3:0x1c,
min  :0x62 0x64 0x65 0x64 0x57 0x59 0x5d 0x5f 0x5c ,0x4b 0x4c 0x46 0x46 0x4e 0x4e 0x52 0x4f 0x4c ,
      0x54 0x53 0x4f 0x4f 0x4b 0x47 0x49 0x4e 0x4e ,0x4a 0x4a 0x48 0x44 0x4e 0x4c 0x4b 0x4f 0x49 ,
mid  :0x7f 0x80 0x81 0x80 0x74 0x76 0x7a 0x7a 0x78 ,0x68 0x68 0x62 0x61 0x69 0x69 0x6c 0x6a 0x68 ,
      0x71 0x70 0x6b 0x6b 0x65 0x5f 0x62 0x67 0x69 ,0x68 0x65 0x61 0x5f 0x69 0x69 0x64 0x6c 0x63 ,
max  :0x9c 0x9d 0x9e 0x9c 0x91 0x94 0x97 0x95 0x94 ,0x86 0x84 0x7e 0x7c 0x85 0x85 0x86 0x85 0x84 ,
      0x8f 0x8d 0x88 0x88 0x80 0x78 0x7b 0x80 0x85 ,0x87 0x81 0x7a 0x7a 0x84 0x87 0x7d 0x89 0x7e ,
range:0x3a 0x39 0x39 0x38 0x3a 0x3b 0x3a 0x36 0x38 ,0x3b 0x38 0x38 0x36 0x37 0x37 0x34 0x36 0x38 ,
      0x3b 0x3a 0x39 0x39 0x35 0x31 0x32 0x32 0x37 ,0x3d 0x37 0x32 0x36 0x36 0x3b 0x32 0x3a 0x35 ,
CA Training result:
cs:0 min  :0x51 0x50 0x4a 0x43 0x49 0x43 0x4c ,0x4e 0x49 0x48 0x42 0x47 0x3f 0x49 ,
cs:0 mid  :0x8f 0x91 0x84 0x84 0x84 0x84 0x7b ,0x8a 0x89 0x83 0x82 0x82 0x80 0x78 ,
cs:0 max  :0xcd 0xd2 0xbf 0xc6 0xc0 0xc5 0xab ,0xc6 0xc9 0xbf 0xc2 0xbd 0xc1 0xa7 ,
cs:0 range:0x7c 0x82 0x75 0x83 0x77 0x82 0x5f ,0x78 0x80 0x77 0x80 0x76 0x82 0x5e ,
cs:1 min  :0x4e 0x53 0x45 0x45 0x45 0x45 0x4a ,0x4a 0x4c 0x44 0x46 0x42 0x43 0x48 ,
cs:1 mid  :0x8e 0x90 0x84 0x83 0x84 0x81 0x7b ,0x8a 0x88 0x84 0x83 0x83 0x80 0x78 ,
cs:1 max  :0xcf 0xcd 0xc4 0xc1 0xc3 0xbe 0xad ,0xcb 0xc5 0xc4 0xc0 0xc4 0xbe 0xa9 ,
cs:1 range:0x81 0x7a 0x7f 0x7c 0x7e 0x79 0x63 ,0x81 0x79 0x80 0x7a 0x82 0x7b 0x61 ,
out

U-Boot SPL 2023.07 (Jul 23 2023 - 12:42:18 +0000)
rockchip_sdhci_probe clk set rate fail!
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= 1056MHz
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 23 2023 - 12:42:18 +0000)

Model: Pine64 RK3566 Quartz64-A Board
DRAM:  8 GiB (effective 7.7 GiB)
PMIC:  RK8170 (on=0x10, off=0x00)
Core:  321 devices, 27 uclasses, devicetree: separate
MMC:   rockchip_sdhci_probe clk set rate fail!
mmc at fe2b0000: 1, mmc at fe2c0000: 2, mmc at fe310000: 0
Loading Environment from nowhere... OK
In:    serial at fe660000
Out:   serial at fe660000
Err:   serial at fe660000
Model: Pine64 RK3566 Quartz64-A Board
Net:   No ethernet found.

Hit any key to stop autoboot:  0
=>

Regards,
Jonas



More information about the U-Boot mailing list