Skip to contentSkip to conversation

sunxi: lower the DRAM frequency of Nano Pi NEO2 to 504MHz

PATCH New Icenowy Zheng 3 participants 5 messages Nov 2, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sunxi: lower the DRAM frequency of Nano Pi NEO2 to 504MHz

The BSP of Nano Pi NEO2 provided by FriendlyARM uses 504MHz DRAM frequency, which is much lower than the current 672MHz used in mainline.

Switch to use the BSP-provided frequency 504MHz for DRAM.

Thanks to Thomas Kaiser, who pointed out the frequency problem.

---
 configs/nanopi_neo2_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/nanopi_neo2_defconfig +1 -1
index b8e089176f..e210af4f0e 100644
@@ -1,7 +1,7 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
 CONFIG_MACH_SUN50I_H5=y
-CONFIG_DRAM_CLK=672
+CONFIG_DRAM_CLK=504
 CONFIG_DRAM_ZQ=3881977
 CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-nanopi-neo2"
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
Signature · 1 line
2.13.6
#1 lore raw

PATCH 1/1 sunxi: lower the DRAM frequency of Nano Pi NEO2 to 504MHz

Quoted 18 lines · Icenowy Zheng

The BSP of Nano Pi NEO2 provided by FriendlyARM uses 504MHz DRAM frequency, which is much lower than the current 672MHz used in mainline.

Switch to use the BSP-provided frequency 504MHz for DRAM.

Thanks to Thomas Kaiser, who pointed out the frequency problem.

---
 configs/nanopi_neo2_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/nanopi_neo2_defconfig +0 -0
index b8e089176f..e210af4f0e 100644

configs/nanopi_neo2_defconfig line 4

Quoted 5 lines
configs/nanopi_neo2_defconfig +1 -1
@@ -1,7 +1,7 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
 CONFIG_MACH_SUN50I_H5=y
-CONFIG_DRAM_CLK=672
+CONFIG_DRAM_CLK=504

Can you point me the BSP, here what I refer to have [1]

[1] https://github.com/friendlyarm/u-boot/blob/sunxi-v2017.x/configs/nanopi_neo2_defconfig

thanks!

Signature · 4 lines
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.
#2 lore raw

PATCH 1/1 sunxi: lower the DRAM frequency of Nano Pi NEO2 to 504MHz

Quoted 14 lines · 在 2017-11-02 16:25,Jagan Teki 写道:
Quoted 13 lines · Icenowy Zheng

The BSP of Nano Pi NEO2 provided by FriendlyARM uses 504MHz DRAM frequency, which is much lower than the current 672MHz used in mainline.

Switch to use the BSP-provided frequency 504MHz for DRAM.

Thanks to Thomas Kaiser, who pointed out the frequency problem.

---
 configs/nanopi_neo2_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines

configs/nanopi_neo2_defconfig line 4

Quoted 11 lines
configs/nanopi_neo2_defconfig +1 -1
index b8e089176f..e210af4f0e 100644
@@ -1,7 +1,7 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
 CONFIG_MACH_SUN50I_H5=y
-CONFIG_DRAM_CLK=672
+CONFIG_DRAM_CLK=504

Can you point me the BSP, here what I refer to have [1]

The file at [1] is just from mainline.

The BSP configuration is at [2].

[2]
https://github.com/friendlyarm/h5_lichee/blob/master/tools/pack/chips/sun50iw2p1/configs/cheetah-p1/board/sys_config_nanopi-neo2.fex

Quoted 5 lines

[1]
https://github.com/friendlyarm/u-boot/blob/sunxi-v2017.x/configs/nanopi_neo2_defconfig

thanks!

#3 lore raw

PATCH 1/1 sunxi: lower the DRAM frequency of Nano Pi NEO2 to 504MHz

Quoted 17 lines · Icenowy Zheng
Quoted 16 lines · 在 2017-11-02 16:25,Jagan Teki 写道:
Quoted 14 lines · Icenowy Zheng

The BSP of Nano Pi NEO2 provided by FriendlyARM uses 504MHz DRAM frequency, which is much lower than the current 672MHz used in mainline.

Switch to use the BSP-provided frequency 504MHz for DRAM.

Thanks to Thomas Kaiser, who pointed out the frequency problem.

---
 configs/nanopi_neo2_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 11 lines
Quoted 11 lines

configs/nanopi_neo2_defconfig line 4

Quoted 11 lines
configs/nanopi_neo2_defconfig +1 -1
index b8e089176f..e210af4f0e 100644
@@ -1,7 +1,7 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
 CONFIG_MACH_SUN50I_H5=y
-CONFIG_DRAM_CLK=672
+CONFIG_DRAM_CLK=504

Did you find this abort[3] with existing master, look like autoboot corrupted

[3] https://paste.ubuntu.com/25872498/

thanks!

Signature · 4 lines
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.
#4 lore raw

PATCH 1/1 sunxi: lower the DRAM frequency of Nano Pi NEO2 to 504MHz

In reply to Icenowy Zheng
Quoted 7 lines · Icenowy Zheng

The BSP of Nano Pi NEO2 provided by FriendlyARM uses 504MHz DRAM frequency, which is much lower than the current 672MHz used in mainline.

Switch to use the BSP-provided frequency 504MHz for DRAM.

Thanks to Thomas Kaiser, who pointed out the frequency problem.

What issue does this patch fix? BSPs have often been way underclocked in the past.

Did you encounter any corruption?

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171102/9d04367a/attachment.sig>