Skip to contentSkip to conversation

rockchip: rk3399: nanopc-t4: use 1600MHz sdram config

PATCH In review Lu jicong 2 participants 4 messages Jul 5, 2023 – Sep 30, 2023 Arm (32-bit)

lore
Share & tools
lore

Lu jicong

author
#0 lore raw

PATCH 1/1 rockchip: rk3399: nanopc-t4: use 1600MHz sdram config

Current 1866MHz sdram config is too high for NanoPC-T4. On this frequency, its lpddr3 sdram becomes unstable, causing memtest failures and random kernel crashes.

---
 arch/arm/dts/rk3399-nanopc-t4-u-boot.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/rk3399-nanopc-t4-u-boot.dtsi +1 -1
index 17201bcf41..8b6c9059ab 100644
@@ -4,4 +4,4 @@
  */
 
 #include "rk3399-nanopi4-u-boot.dtsi"
-#include "rk3399-sdram-lpddr3-samsung-4GB-1866.dtsi"
+#include "rk3399-sdram-lpddr3-4GB-1600.dtsi"
Signature · 1 line
2.39.2
#1 lore raw

Hi Lu jicong,

    Does the 1866M worked for your board before?

    I think this config should be fine for other people, it has been submit for 4 years.

Thanks,

- Kever

Quoted 19 lines · Lu jicong

Current 1866MHz sdram config is too high for NanoPC-T4. On this frequency, its lpddr3 sdram becomes unstable, causing memtest failures and random kernel crashes.

---
  arch/arm/dts/rk3399-nanopc-t4-u-boot.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/rk3399-nanopc-t4-u-boot.dtsi +1 -1
index 17201bcf41..8b6c9059ab 100644
@@ -4,4 +4,4 @@
   */
 
  #include "rk3399-nanopi4-u-boot.dtsi"
-#include "rk3399-sdram-lpddr3-samsung-4GB-1866.dtsi"
+#include "rk3399-sdram-lpddr3-4GB-1600.dtsi"
author
#2 lore raw
Quoted 1 line

Does the 1866M worked for your board before?

1866M ddr blobs from rkbin works fine on my board, but TPL works bad every time. I have never encountered an exception of this result.

Quoted 2 lines

I think this config should be fine for other people, it has been submit for 4 years.

For another tester, this config works fine. But I think the individual difference of this board or different board revision leads to the result. Maybe it is better to lower the frequency to ensure more people can use TPL without problems.

author
#3 lore raw
In reply to Kever Yang

I'm not satisfied with this result. All of FriendlyARM's official system images use 800Mhz DDR binary. So they shouldn't found any problem when some boards' DRAM cannot run at 933Mhz. Although they tested them using 933Mhz DDR binary, my board will still pass the test. But now TPL initialized DRAM cannot run stably, so I can tell TPL DRAM config must be more strict than DDR binary.

Before I add openwrt support for NanoPC T4, there is no public linux OS using TPL to initialize DRAM for NanoPC T4, so there is probably not many people tested TPL. We should make sure every qualified board can run U-Boot without probelms, shouldn't we?