24 Commits

Author SHA1 Message Date
Tang Yun ping
bd7f055ad3 rk3568: ddr: update ddrbin to v1.23
build from:
	03ea844c5d dram_init: rk356x: fix ddr4 detect bug

update feature:
	1. Fixed probabilistic detection error of DDR type/capacity.
	2. Added ddr type detection order configurable through ddrbin tool.
	3. Fix ISSI UniIC lp4/lp4x driver strength issue.

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: Ib33eb3bb246a7e671a698dbd9ccdb887517423b3
2024-09-09 10:58:55 +08:00
Tang Yun ping
78360f0942 rk3568: ddr: update ddrbin to v1.22
build from:
	f8ac117e9c rk356x: ddr: fix eyescan build fail

build command:
	./make.sh rk3568

update feature:
	1. fix probabilistic read/write training failures under DDR4 2cs
introduced in ddrbin v1.21.
	2. Fixed some DRAM compatibility issues at LP4x low frequency.
	3. Undo vref training below 600MHz
	4. The CLK/DQS slew rate supports different values at high and low frequencies.
	5. Added DRAM Manufacturer ID printing.
	6. DDR4 enable LPASR to reduce DDR4 self-refresh power.

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: I262c513bfcae188c4a6469a4c1c45bd7428e186a
2024-06-28 15:12:47 +08:00
Tang Yun ping
c3e0ee0f9a rk3568: ddr: update ddrbin to v1.21
build from:
	2d653b3476 rk356x: ddr: update ddrbin to v1.21

build command:
	./make.sh rk3568

update feature:
	1. Fixed issue that CA training may be missed during reboot.

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: I0db741443e2af91ce760596f8a7cae5ce13eb24c
2024-02-05 09:31:26 +08:00
Tang Yun ping
f48deced82 rk3568: ddr: update ddrbin to v1.20
build from:
	77170a5e90 rk356x: ddr: en lp4/4x rx odt when freq greater than 600MHz

build command:
	./make.sh rk3568

update feature:
	1. When DDR ECC is enabled, ensure the correctness of the
	ECC of the pstore segment memory after restarting.
	2. Update DDR3/LPDDR3 rd/wr training pattern to improve
	read and write signal margin.
	3. Fixed 6GB LPDDR3/4 initialization failure problem.
	4. LPDDR4/4X enable 780MHz read odt。
	5. Eanble read/write vref training to improve
compatibility.(can be disable using ddrbin_tool).

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: I1ef3ac7528106b937da236529d1a2f26041b5ce0
2024-01-18 09:59:49 +08:00
Tang Yun ping
975e4c3474 rk3568: ddr: update ddrbin to v1.19
build from:
	fdeec6f4fc rk3568: ddr: update ddrbin to v1.19
build command:
        ./make.sh rk3568
update feature:
	1. add rk3567 support
	2. RK3568 add LVDS1 support

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: If131c548816d5a4a94e24f42ac62b3ab7e704f01
2023-09-26 16:00:50 +08:00
Tang Yun ping
9512e6dcff rk3568: ddr: update ddrbin to v1.18
build from:
	f366f69a7d rk3568: ddr: update ddr bin to v1.18
build command:
	./make.sh rk3568
update feature:
	Fixed the suspend/resume function crash problem caused by DDR
active_ranks configuration error

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: I5c339e2cd702ba94cd1956545ac3f90fad61f665
2023-07-19 16:13:13 +08:00
Tang Yun ping
2fb4712276 rk3568: ddr: update ddrbin to v1.17
build from:
	992b933606 rk3568: ddr: update ddr bin to v1.17
build command:
	./make.sh rk3568
update feature:
	1. Added support for 4rank LPDDR3/LPDDR4/LPDDR4x of different rows.
	2. Add DDR ECC poison function support.
	3. Enable derate function for LPDDR4/LPDDR4x.
	4. Add pstore support when ECC enabled.

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: Ibf34399532706153d98ee3b2f56cde4ca83e8e91
2023-06-20 01:38:21 +00:00
Tang Yun ping
f2f8c7fb49 rk3568: ddr: update ddr bin to v1.16
build from:
	6f71c736ce rk3568: ddr: update ddr bin to v1.16

update feature:
	1. fix ddr4 vref setup bug, improve 528M stability.
	2. improve ddr4 effeciency.
	3. pagecolse configurable by tools.
	4. refresh rate configurable by tools.
	5. 3568M/J default use 1/2 tREFI.
	6. fix init fail when ECC enable whit 4GB cap.

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: Ib567a73e12bdb5ea6dfe49f799c8c2e2025dd4b5
2023-03-02 20:43:50 +08:00
Zhihuan He
44de354d93 rk3568: ddr: update ddr bin to v1.15
build from:
	ec2fae0c96 rk356x: ddr: update ddr bin to v1.15
update feature:
	4023ab4e29 rk3568: ddr: use upctl control dfi_init_start/complete
	f254ec2b5d rk356x: Add adjust the hold timing of the digital to
analog interface
	a14b1383ca drivers: rk356x: Add automatic temperature derating
for LPDDR4(X)

Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
Change-Id: I732fe0346555a002a3bdd6b987260a2fb3dbab1f
2022-11-09 09:40:30 +08:00
Joseph Chen
c52e4f30dd RKBOOT/RKTRUST/bin: Set file mode 644
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I3fa512e2cfa636800ef15907c53aae24cd599967
2022-09-14 10:20:54 +00:00
Tang Yun ping
4909cfb14c rk3568: ddr: update ddr bin to v1.14
build from:
	b1f29a2a6f rk356x: ddr: update ddr bin to v1.14
update feature:
	6450a4943e rk356x: ddr: update DDR4 DQS/DQ SR to 0x0
	2f30a32866 rk356x: ddr: Fix set of t_xs_x32, t_xs_abort_x32 and
t_xs_fast_x32
	3f8f34fe78 rk356x: ddr: update LP4 CK/CA SR to 0x0
	c79fb469cf Revert "rk356x: ddr: enable ddr4 528M odt"

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: I4a03ffef1caa58d2550fd7393276d7c19ad99fec
2022-09-09 09:50:50 +08:00
Jon Lin
6e4ecc820b rk356x: loader: Update to v1.14
from commit:
	rk_boot_al: f97e4d
update feature:
	Support new spiflash devices

Change-Id: I5ecc456f28276c01c1c7d8caf01612e0171c5b91
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2022-07-21 09:47:02 +08:00
Tang Yun ping
ddf03c1d80 rk3568: ddr: update ddr bin to v1.13
build from:
	9085cce252 rk356x: ddr: update ddr bin to v1.13
build command:
	./make.sh rk3568
update feature:
	update RX Vref(ODT OFF) to improving the stability of LPDDR4X

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: Ic5cb378699b4dc105f274dbe72092bce3737b925
2022-02-24 09:33:35 +08:00
Tang Yun ping
1e2a151523 rk3568: ddr: update ddr bin to v1.12
build from:
	f9b44b84d4 rk356x: ddr: update ddr bin to v1.12

build command:
	./make.sh rk3568

update feature:
	0a7c20ada5 rk356x: ddr: do not set prog otp mask lock

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: I8208b93cf23b05ea13f1c03f268e73e586f9de1d
2022-01-12 18:33:50 +08:00
Tang Yun ping
47404a141a rk3568: ddr: update ddr bin to v1.11
build from:
	41ceb374ff  rk356x: ddr: update ddr bin to v1.11
build command:
	./make.sh rk3568
update feature:
	37c6f80384 rk356x: ddr: fix LP4/LP4X 2CS dram fsp_param data error
	92e59d18f9 rk356x: ddr: undo CBT when ddr freq below 400MHz
	b073c834e0 rk356x: ddr: enable ddr4 528M odt
	f46daa84ac rk356x: ddr: lpddr4/lpddr4x rx odt enable freq change to 800MHz
	ce55e16904 drivers: ram: rockchip: rk3568: fix mistake about MAX_LOW_FREQ_LIMIT
	38c2dc0c40 rk356x: ddr: adjust ddr4 MRW sequence

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: I6e13a257811c655fdd37cc73b0f2e5bd25d9c5dc
2021-11-03 16:07:56 +08:00
Tang Yun ping
d0abe3360e rk3568: ddr: update ddr bin to v1.10
build from:
	be187da7f1 rk356x: ddr: update ddr bin to v1.10
build command:
	./make.sh rk3568

update feature:
	f163d1866a  drivers: ram: rk356x: fix incorrect setting of LPDDR4(X) tRFC

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: I06ae68dd9e9a7053ca01fb51f0df4db600fa85e0
2021-08-12 09:27:41 +08:00
Tang Yun ping
46e23dbf61 rk3568: ddr: update ddr bin to v1.09
build from:
	d66fc41e9c rk356x: ddr: update ddr bin to v1.09
build command:
        ./make.sh rk3568

update feature:
	74bdef59fd rk356x: ddr: add 3568s/m/j/b2 support
	3220a096ba rk356x: ddr: adjust print info
	7dc3ec451a rk356x: ddr: fix reg_*_*_rxen_lp4 bug
	b16ddd2a97 rk356x: ddr: allow user program otp in the user area
	de4ccf565f rk356x: ddr: fix lpddr4/4x WDQS bug
	dd0befbb88 rk356x: ddr: disable cs1/cs3 ca odt
	f8c5ebd50e rk356x: ddr: add lpddr4 byte mode support
	18225d611d rk356x: ddr: modify trfc base on real capacity
	7e7f62e1e7 rk356x: ddr: auto detect 4 ch lpddr4/4x.
	db9aecc5ae rk356x: ddr: add more ddrconf support move to highest 256MB
	5ee3419e72 rk356x: ddr: only support 4GB map to high 8GB-256MB

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: Ifc726aaf94150b9ce2841eb71ff388c7642a5e50
2021-07-09 15:05:20 +08:00
Yifeng Zhao
3fce1f759e rk3568/rk3566: spl: nand: update version to v1.07
build from uboot commit:
 	7f48d41aa configs: rk3566 add rk3566-nand.config  for nand

build command:
        ./make.sh rk3568

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I016823575aa7a6ec6c79758654281ab36e692595
2021-06-24 14:26:46 +08:00
Tang Yun ping
443d8a3471 rk3568: ddr: update ddr bin to v1.08
build from:
	fdf3368d38 rk356x: ddr: update ddr bin to v1.08
build command:
	./make.sh rk3568

update feature:
	87531a7796 rk356x: ddr: fix otp operate bug
	9a4c526b6c rk356x: ddr: default lp4 active_ranks set to 0x3
	9b565d229e rk356x: ddr: fix lpddr4/4x clk skew calculate bug
	9b17bb3bce rk356x: ddr: update ddr4 1332/1560 timing

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: Ifc012b25229156b383162bf6f90e8fa2587c4589
2021-05-28 09:44:49 +08:00
Tang Yun ping
6c1ae2ea49 rk3568: ddr: update ddr bin to v1.07
build from:
	340c45a34c rk356x: ddr: update ddr bin to v1.07

build command:
	./make.sh rk3568

update feature:
	a605de7476 rk3568: ddr: support disable print by tool
	9cc571c081 rk356x: ddr: adjust lpddr4x vref and slew-rate
	f731219d37 rk356x: ddr: fix lpddr4/4x ca training bug
	a238aed53e rk356x: ddr: fix some ddr bug
	30bd48817c rk356x: ddr: corrected lp4x ca vref setup
	0eeb46851f rk356x: update rx dqs skew when init
	fd106f339f rk356x: ddr: fix ddr4 one cs 8GB bug

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: I12cbfb64cfebe66c9084bf5e1b75e605eaff3c2f
2021-04-28 16:31:06 +08:00
Tang Yun ping
03652e6d2e rk3568: ddr: update ddr bin to v1.06
build from:
	2358a825e0 rk356x: ddr: update ddr bin to v1.06
build command:
	./make.sh rk3568

update feature:
	86b3b92299 rk356x: ddr: make 1.5GB/3GB address space continuous
	488b1200f0 drivers: ram: rk356x: modify mv_256mbyte conditions
	50f3db7513 drivers: sdram: RK356x: Loader of RK356x support DDR
DQ Eye Tool in U-Boot
	f0ad198deb drivers: ram: rk356x: add init mv_256mbyte
	7024963235 rk356x: ddr: support lp4/4x byte mode
	168b95104f rk356x: ddr: recheck rd gate result when detect dramtype
	4e2595cde5 rk356x: ddr: vref_out set to 1/2 vdd for ddr4 vrefca
	6a952774a4 rk356x: ddr: adjust print info.
	558d236087 rk356x: ddr: fix 1.5G/3G/6G bug
	5af8efa321 rk356x: ddr: add lp3 4cs support
	ff89787a4a rk356x: ddr: fix otp code bug
	c71eeac45e cmd: ddr_tool: ddr_dq_eye.c: Add DDR DQ eye tool for RV1126
and RK356x
	08dd89d43c rk356x: ddr: add 256MB as ddr memory in 4GB
	18038780ee rk356x: ddr: fsp_param add save ca skew for DFS

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: I721f36d64bf5434953712960427261f465cb83a8
2021-04-12 09:20:13 +08:00
Tang Yun ping
74c7d4b18e rk3568: ddr: update ddr bin to v1.05
build from:
	77f3f934ae rk356x: ddr: update ddr bin to v1.05
build command:
	./make.sh rk3568

update feature:
	02805c83fe rk356x: ddr: fix some ddr bugs.
	40ee97b423 rk356x: ddr: lpddr4x cmd voltage set to 1.1v
	db866a215b rk356x: ddr: fix ddr4 row detect bug
	64dafb61f6 rk356x: ddr: fix some lpddr4x bug
	2c273fa60f rk356x: ddr: fix otp read code bug
	a5374a14fe rk356x: ddr: fix lpddr3 bug

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: I5fc544f9e1534eb7142eb354b8ff8374f1bbfab6
2021-02-08 15:20:21 +08:00
Tang Yun ping
08ac481d9a rk3568: ddr: update ddr bin to v1.04
print info:
	DDR Version V1.04 20210120
build from u-boot-ddr:
	01f3aa4925 rk356x: ddr: update ddr to v1.04
build command:
	./make.sh rk3568
update feature:
	06f240bd8e rk356x: ddr: fix 4cs lp4 odt en bug
	1839d77c5d rk356x: ddr: read training use predef mode
	4fecc4ad2c rk356x: ddr: delect high row detect
	16fd34b028 rk356x: ddr: fix 4cs detect bug
	6c35c8c63d rk356x: ddr: ddr os reg update to v3 to support 4cs and lp4x
	8385b7218b rk356x: ddr: fix lp4/4x 4cs cmd skew modify bug
	73696a81fc rk356x: ddr: disable zqcalib to saving power
	aaabab3703 rk356x: ddr: add ecc auto detect code
	45bfe62c33 rk356x: ddr: modify ddr4 slew rate
	d4c8b273a4 rk356x: ddr: fix ddr code bug
	40dd0a3f1c rk356x: ddr: optimize code size

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: I3434fb0e3b23517265b141abc46b93907151fc5b
2021-01-21 17:22:17 +08:00
Yifeng Zhao
42aeade68d rk3568: loader: add support mlc nand flash
usbplug: build from rk_boot_all
	commit: 3fa77b1cfe: zftl: modify to support samsung ss14 8GB NAND FLASH
spl:
build command:
	./make.sh rk3568-nand
build from:
	fae486e4: power: regulator: Use dev_read_size in gpio-regulator
update feature:
	support mlc nand for rk3568
	fix L04A and L05B boot fail issue
        fix samsung ss14 read fail

Change-Id: I64e35aadf5f44c59c3791ef1ef693dadecab754c
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
2021-01-13 09:00:45 +08:00