sunxi: set the default CPUx frequency of H5 to 816MHz
Subsystems (3)
PATCH 1/1 sunxi: set the default CPUx frequency of H5 to 816MHz
Some H5 boards are designed to start at 1.1V CPUx voltage (e.g. Nano Pi NEO2), which may not work properly at 1008MHz if the chip's quality is not so good.
Lower the default CPUx frequency of H5 to 816MHz.
--- arch/arm/mach-sunxi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-sunxi/Kconfig +1 -1
@@ -397,9 +397,9 @@ config SYS_CLK_FREQ default 1008000000 if MACH_SUN5I default 1008000000 if MACH_SUN6I default 912000000 if MACH_SUN7I + default 816000000 if MACH_SUN50I || MACH_SUN50I_H5 default 1008000000 if MACH_SUN8I default 1008000000 if MACH_SUN9I - default 816000000 if MACH_SUN50I config SYS_CONFIG_NAME default "sun4i" if MACH_SUN4I
Signature · 1 line
2.13.6
PATCH 1/1 sunxi: set the default CPUx frequency of H5 to 816MHz
Quoted 16 lines · Icenowy Zheng
Some H5 boards are designed to start at 1.1V CPUx voltage (e.g. Nano Pi NEO2), which may not work properly at 1008MHz if the chip's quality is not so good.
Lower the default CPUx frequency of H5 to 816MHz.
Signed-off-by Icenowy Zheng <[email protected]>--- arch/arm/mach-sunxi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-sunxi/Kconfig +0
-0
arch/arm/mach-sunxi/Kconfig config SYS_CLK_FREQ · line 401
Quoted 5 lines
arch/arm/mach-sunxi/Kconfig +1
-0@@ -397,9 +397,9 @@ config SYS_CLK_FREQ default 1008000000 if MACH_SUN5I default 1008000000 if MACH_SUN6I default 912000000 if MACH_SUN7I + default 816000000 if MACH_SUN50I || MACH_SUN50I_H5 default 1008000000 if MACH_SUN8I
Even orangepi pc2 has 1.1v after power-on and it's work fine [1] did you find an issue with neo2?
[1] http://linux-sunxi.org/Xunlong_Orange_Pi_PC_2#CPU_clock_speed_limit
thanks!
Signature · 4 lines
Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India.
PATCH 1/1 sunxi: set the default CPUx frequency of H5 to 816MHz
Quoted 13 lines · 在 2017-10-31 15:57,Jagan Teki 写道:
Quoted 12 lines · Icenowy Zheng
Some H5 boards are designed to start at 1.1V CPUx voltage (e.g. Nano Pi
NEO2), which may not work properly at 1008MHz if the chip's quality is not so good.Lower the default CPUx frequency of H5 to 816MHz.
Signed-off-by Icenowy Zheng <[email protected]>--- arch/arm/mach-sunxi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines
arch/arm/mach-sunxi/Kconfig config SYS_CLK_FREQ · line 401
Quoted 10 lines
arch/arm/mach-sunxi/Kconfig +1
-0@@ -397,9 +397,9 @@ config SYS_CLK_FREQ default 1008000000 if MACH_SUN5I default 1008000000 if MACH_SUN6I default 912000000 if MACH_SUN7I + default 816000000 if MACH_SUN50I || MACH_SUN50I_H5 default 1008000000 if MACH_SUN8IEven orangepi pc2 has 1.1v after power-on and it's work fine [1] did you find an issue with neo2?
Yes, the boot process randomly hang at SPL stage -- but when it enters ATF it will run smoothly as the ATF will re-configure CPUx frequency to 816MHz.
According to the official operating point table [2], 1008MHz is bound to 1.2V, and 816MHz is bound to 1.1V.
Allwinner chips usually have not-so-good quality control to reach the low price, and different chips may work differently in situations that is beyond the official the OPP table.
[2]
https://github.com/OrangePiLibra/OrangePi_H5SDK/blob/master/external/sys_config.fex#L1367
Quoted 4 lines
[1] http://linux-sunxi.org/Xunlong_Orange_Pi_PC_2#CPU_clock_speed_limit
thanks!
PATCH 1/1 sunxi: set the default CPUx frequency of H5 to 816MHz
Quoted 31 lines · On Tue, Oct 31, 2017 at 1:35 PM, <[email protected]> wrote:
Quoted 14 lines · 在 2017-10-31 15:57,Jagan Teki 写道:
Quoted 12 lines · Icenowy Zheng
Some H5 boards are designed to start at 1.1V CPUx voltage (e.g. Nano Pi NEO2), which may not work properly at 1008MHz if the chip's quality is not so good.
Lower the default CPUx frequency of H5 to 816MHz.
Signed-off-by Icenowy Zheng <[email protected]>--- arch/arm/mach-sunxi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 14 lines
arch/arm/mach-sunxi/Kconfig config SYS_CLK_FREQ · line 401
Quoted 10 lines
arch/arm/mach-sunxi/Kconfig +1
-0@@ -397,9 +397,9 @@ config SYS_CLK_FREQ default 1008000000 if MACH_SUN5I default 1008000000 if MACH_SUN6I default 912000000 if MACH_SUN7I + default 816000000 if MACH_SUN50I || MACH_SUN50I_H5 default 1008000000 if MACH_SUN8IEven orangepi pc2 has 1.1v after power-on and it's work fine [1] did you find an issue with neo2?
Quoted 3 lines
Yes, the boot process randomly hang at SPL stage -- but when it enters ATF it will run smoothly as the ATF will re-configure CPUx frequency to 816MHz.
OK, Linux has similar issue, I will check it meanwhile.
Quoted 3 lines
According to the official operating point table [2], 1008MHz is bound to 1.2V, and 816MHz is bound to 1.1V.
Does this common for all H5 SDK or orangepi design?
thanks!
Signature · 4 lines
Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India.
PATCH 1/1 sunxi: set the default CPUx frequency of H5 to 816MHz
于 2017年10月31日 GMT+08:00 下午4:53:57, Jagan Teki <[email protected]> 写到:
Quoted 41 lines · On Tue, Oct 31, 2017 at 1:35 PM, <[email protected]> wrote:
Quoted 3 lines · 在 2017-10-31 15:57,Jagan Teki 写道:
Quoted 2 lines
On Tue, Oct 31, 2017 at 5:06 AM, Icenowy Zheng <[email protected]>
Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Some H5 boards are designed to start at 1.1V CPUx voltage (e.g.
Nano Pi
Quoted 1 line
Quoted 1 line
Quoted 1 line
NEO2), which may not work properly at 1008MHz if the chip's quality
is
Quoted 10 lines
Quoted 10 lines
Review
Quoted 10 lines
not so good.
Lower the default CPUx frequency of H5 to 816MHz.
Signed-off-by Icenowy Zheng <[email protected]>--- arch/arm/mach-sunxi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0b/arch/arm/mach-sunxi/Kconfig
Quoted 15 lines
Quoted 5 lines
Quoted 5 lines
index
09cfec6f57..1fededd0a3100644arch/arm/mach-sunxi/Kconfig +0
-0@@ -397,9 +397,9 @@ config SYS_CLK_FREQ default 1008000000 if MACH_SUN5IQuoted 8 lines
arch/arm/mach-sunxi/Kconfig config SYS_CLK_FREQ · line 401
Quoted 4 lines
arch/arm/mach-sunxi/Kconfig +1
-0default 1008000000 if MACH_SUN6I default 912000000 if MACH_SUN7I + default 816000000 if MACH_SUN50I || MACH_SUN50I_H5 default 1008000000 if MACH_SUN8IEven orangepi pc2 has 1.1v after power-on and it's work fine [1] did you find an issue with neo2?
Quoted 1 line
Yes, the boot process randomly hang at SPL stage -- but when it
enters
Quoted 2 lines
ATF it will run smoothly as the ATF will re-configure CPUx frequency to 816MHz.
Quoted 7 lines
OK, Linux has similar issue, I will check it meanwhile.
Quoted 3 lines
According to the official operating point table [2], 1008MHz is bound to 1.2V, and 816MHz is bound to 1.1V.
Does this common for all H5 SDK or orangepi design?
For all H5 SDK. It's the original comment in H5 SDK from AW.
Quoted 2 lines
thanks!
PATCH 1/1 sunxi: set the default CPUx frequency of H5 to 816MHz
In reply to icenowy at aosc.ioQuoted 14 lines · icenowy at aosc.io
Quoted 13 lines · 在 2017-10-31 15:57,Jagan Teki 写道:
Quoted 12 lines · Icenowy Zheng
Some H5 boards are designed to start at 1.1V CPUx voltage (e.g. Nano Pi
NEO2), which may not work properly at 1008MHz if the chip's quality is not so good.Lower the default CPUx frequency of H5 to 816MHz.
Signed-off-by Icenowy Zheng <[email protected]>--- arch/arm/mach-sunxi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
arch/arm/mach-sunxi/Kconfig +0
-0@@ -397,9 +397,9 @@ config SYS_CLK_FREQQuoted 8 lines
arch/arm/mach-sunxi/Kconfig config SYS_CLK_FREQ · line 401
Quoted 5 lines
arch/arm/mach-sunxi/Kconfig +1
-0default 1008000000 if MACH_SUN5I default 1008000000 if MACH_SUN6I default 912000000 if MACH_SUN7I + default 816000000 if MACH_SUN50I || MACH_SUN50I_H5 default 1008000000 if MACH_SUN8IEven orangepi pc2 has 1.1v after power-on and it's work fine [1] did you find an issue with neo2?
So you have one single model that fails, and you change the default frequency of all the boards using that SoC?
It seems a bit overkill.
I guess we have two solutions:
1) Change the frequency in that board config
2) Change the voltage in that board config
There's no need to enforce a SoC-wide change.
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/20171031/74509f18/attachment.sig>
PATCH 1/1 sunxi: set the default CPUx frequency of H5 to 816MHz
Quoted 29 lines · 在 2017-10-31 21:54,Maxime Ripard 写道:
Quoted 14 lines · icenowy at aosc.io
Quoted 13 lines · 在 2017-10-31 15:57,Jagan Teki 写道:
Quoted 12 lines · Icenowy Zheng
Some H5 boards are designed to start at 1.1V CPUx voltage (e.g. Nano Pi
NEO2), which may not work properly at 1008MHz if the chip's quality is not so good.Lower the default CPUx frequency of H5 to 816MHz.
Signed-off-by Icenowy Zheng <[email protected]>--- arch/arm/mach-sunxi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
arch/arm/mach-sunxi/Kconfig +0
-0@@ -397,9 +397,9 @@ config SYS_CLK_FREQQuoted 8 lines
arch/arm/mach-sunxi/Kconfig config SYS_CLK_FREQ · line 401
Quoted 5 lines
arch/arm/mach-sunxi/Kconfig +1
-0default 1008000000 if MACH_SUN5I default 1008000000 if MACH_SUN6I default 912000000 if MACH_SUN7I + default 816000000 if MACH_SUN50I || MACH_SUN50I_H5 default 1008000000 if MACH_SUN8IEven orangepi pc2 has 1.1v after power-on and it's work fine [1] did you find an issue with neo2?
Quoted 2 lines
So you have one single model that fails, and you change the default frequency of all the boards using that SoC?
But I think we have already set the default frequency to 816MHz for A64, and it seems that several H5 boards are designed to start at 1.1v (see the notes by Jagan above).
Quoted 6 lines
It seems a bit overkill.
I guess we have two solutions:
1) Change the frequency in that board config
2) Change the voltage in that board config
NEO2 don't have any voltage adjusting, it's fixed at 1.1V.
And according to the Orange Pi PC2 and Prime schematics, they both start at 1.1V. (The Prime schematics even says "For H5 adjust VDD-CPUX to 1.1V).
Quoted 4 lines
There's no need to enforce a SoC-wide change.
Maxime
Hi,
Icenowy Zheng píše v St 01. 11. 2017 v 08:31 +0800:
Quoted 5 lines
And according to the Orange Pi PC2 and Prime schematics, they both start at 1.1V. (The Prime schematics even says "For H5 adjust VDD-CPUX to 1.1V).
Orange Pi PC2 starts at the same voltage as Orange Pi PC. That is at 1.308V.
It can be calculated from 0.6×(1+11.8÷10) as per the values of Ru1/Ru2 resistors in the schema. It is also my experience of working with these boards and writing the sy8106a driver.
regards,
Ondrej
Quoted 6 lines
Quoted 4 lines
There's no need to enforce a SoC-wide change.
Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 850 bytes
Desc: This is a digitally signed message part
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171101/5dd9748f/attachment.sig>
'Ondřej Jirman' via linux-sunxi píše v St 01. 11. 2017 v 03:10 +0100:
Quoted 9 lines
Hi,
Icenowy Zheng píše v St 01. 11. 2017 v 08:31 +0800:
Quoted 5 lines
And according to the Orange Pi PC2 and Prime schematics, they both start at 1.1V. (The Prime schematics even says "For H5 adjust VDD-CPUX to 1.1V).
Quoted 6 lines
Orange Pi PC2 starts at the same voltage as Orange Pi PC. That is at 1.308V.
It can be calculated from 0.6×(1+11.8÷10) as per the values of Ru1/Ru2 resistors in the schema. It is also my experience of working with these boards and writing the sy8106a driver.
Anyway, I may be mis-remembering in the case of PC2. So please ignore me. :) I'm only sure in the case of Orange Pi PC, which is not relevant here. Sorry.
Quoted 11 lines
regards,
OndrejQuoted 6 lines
Quoted 4 lines
There's no need to enforce a SoC-wide change.
Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171101/5401e4c4/attachment.sig>
Quoted 9 lines · Ondřej Jirman
Hi,
Icenowy Zheng píše v St 01. 11. 2017 v 08:31 +0800:
Quoted 5 lines
And according to the Orange Pi PC2 and Prime schematics, they both start at 1.1V. (The Prime schematics even says "For H5 adjust VDD-CPUX to 1.1V).
Quoted 6 lines
Orange Pi PC2 starts at the same voltage as Orange Pi PC. That is at 1.308V.
It can be calculated from 0.6×(1+11.8÷10) as per the values of Ru1/Ru2 resistors in the schema. It is also my experience of working with these boards and writing the sy8106a driver.
I think you reverse the Ru values according to pc2 and prime schematic
CPUX Vout = 0.6x(1+Ru1/Ru2)
so Ru1 10K and Ru2 11.8K then Vout = 0.6x(1+10/11.8) => 1.10V
thanks!
Signature · 4 lines
Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India.
PATCH 1/1 sunxi: set the default CPUx frequency of H5 to 816MHz
In reply to Icenowy ZhengQuoted 44 lines · Icenowy Zheng
Quoted 29 lines · 在 2017-10-31 21:54,Maxime Ripard 写道:
Quoted 14 lines · icenowy at aosc.io
Quoted 13 lines · 在 2017-10-31 15:57,Jagan Teki 写道:
Quoted 12 lines · Icenowy Zheng
Some H5 boards are designed to start at 1.1V CPUx voltage (e.g. Nano Pi
NEO2), which may not work properly at 1008MHz if the chip's quality is not so good.Lower the default CPUx frequency of H5 to 816MHz.
Signed-off-by Icenowy Zheng <[email protected]>--- arch/arm/mach-sunxi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
arch/arm/mach-sunxi/Kconfig +0
-0@@ -397,9 +397,9 @@ config SYS_CLK_FREQQuoted 8 lines
arch/arm/mach-sunxi/Kconfig config SYS_CLK_FREQ · line 401
Quoted 5 lines
arch/arm/mach-sunxi/Kconfig +1
-0default 1008000000 if MACH_SUN5I default 1008000000 if MACH_SUN6I default 912000000 if MACH_SUN7I + default 816000000 if MACH_SUN50I || MACH_SUN50I_H5 default 1008000000 if MACH_SUN8IEven orangepi pc2 has 1.1v after power-on and it's work fine [1] did you find an issue with neo2?
Quoted 2 lines
So you have one single model that fails, and you change the default frequency of all the boards using that SoC?
But I think we have already set the default frequency to 816MHz for A64, and it seems that several H5 boards are designed to start at 1.1v (see the notes by Jagan above).
Quoted 6 lines
It seems a bit overkill.
I guess we have two solutions:
1) Change the frequency in that board config
2) Change the voltage in that board config
Quoted 5 lines
NEO2 don't have any voltage adjusting, it's fixed at 1.1V.
And according to the Orange Pi PC2 and Prime schematics, they both start at 1.1V. (The Prime schematics even says "For H5 adjust VDD-CPUX to 1.1V).
And what about the Zero Plus 2 ?
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/cf3c708a/attachment.sig>
PATCH 1/1 sunxi: set the default CPUx frequency of H5 to 816MHz
Quoted 45 lines · Maxime Ripard
Quoted 44 lines · Icenowy Zheng
Quoted 29 lines · 在 2017-10-31 21:54,Maxime Ripard 写道:
Quoted 14 lines · icenowy at aosc.io
Quoted 13 lines · 在 2017-10-31 15:57,Jagan Teki 写道:
Quoted 12 lines · Icenowy Zheng
Some H5 boards are designed to start at 1.1V CPUx voltage (e.g. Nano Pi
NEO2), which may not work properly at 1008MHz if the chip's quality is not so good.Lower the default CPUx frequency of H5 to 816MHz.
Signed-off-by Icenowy Zheng <[email protected]>--- arch/arm/mach-sunxi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
arch/arm/mach-sunxi/Kconfig +0
-0@@ -397,9 +397,9 @@ config SYS_CLK_FREQQuoted 8 lines
arch/arm/mach-sunxi/Kconfig config SYS_CLK_FREQ · line 401
Quoted 5 lines
arch/arm/mach-sunxi/Kconfig +1
-0default 1008000000 if MACH_SUN5I default 1008000000 if MACH_SUN6I default 912000000 if MACH_SUN7I + default 816000000 if MACH_SUN50I || MACH_SUN50I_H5 default 1008000000 if MACH_SUN8IEven orangepi pc2 has 1.1v after power-on and it's work fine [1] did you find an issue with neo2?
Quoted 2 lines
So you have one single model that fails, and you change the default frequency of all the boards using that SoC?
But I think we have already set the default frequency to 816MHz for A64, and it seems that several H5 boards are designed to start at 1.1v (see the notes by Jagan above).
Quoted 6 lines
It seems a bit overkill.
I guess we have two solutions:
1) Change the frequency in that board config
2) Change the voltage in that board config
Quoted 7 lines
Quoted 5 lines
NEO2 don't have any voltage adjusting, it's fixed at 1.1V.
And according to the Orange Pi PC2 and Prime schematics, they both start at 1.1V. (The Prime schematics even says "For H5 adjust VDD-CPUX to 1.1V).
And what about the Zero Plus 2 ?
Same equation with same reg values, but missing reg names on specific register area Page 7 [4] but hope both were same.
[4] http://linux-sunxi.org/images/f/f6/ORANGE_PI-ZERO-PLUS2_V1_0.pdf
thanks!
Signature · 4 lines
Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India.
PATCH 1/1 sunxi: set the default CPUx frequency of H5 to 816MHz
Quoted 49 lines · Jagan Teki
Quoted 47 lines · Maxime Ripard
Quoted 46 lines · Icenowy Zheng
Quoted 29 lines · 在 2017-10-31 21:54,Maxime Ripard 写道:
Quoted 14 lines · icenowy at aosc.io
Quoted 13 lines · 在 2017-10-31 15:57,Jagan Teki 写道:
Quoted 12 lines · Icenowy Zheng
Some H5 boards are designed to start at 1.1V CPUx voltage (e.g. Nano Pi
NEO2), which may not work properly at 1008MHz if the chip's quality is not so good.Lower the default CPUx frequency of H5 to 816MHz.
Signed-off-by Icenowy Zheng <[email protected]>--- arch/arm/mach-sunxi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
arch/arm/mach-sunxi/Kconfig +0
-0@@ -397,9 +397,9 @@ config SYS_CLK_FREQQuoted 8 lines
arch/arm/mach-sunxi/Kconfig config SYS_CLK_FREQ · line 401
Quoted 5 lines
arch/arm/mach-sunxi/Kconfig +1
-0default 1008000000 if MACH_SUN5I default 1008000000 if MACH_SUN6I default 912000000 if MACH_SUN7I + default 816000000 if MACH_SUN50I || MACH_SUN50I_H5 default 1008000000 if MACH_SUN8IEven orangepi pc2 has 1.1v after power-on and it's work fine [1] did you find an issue with neo2?
Quoted 2 lines
So you have one single model that fails, and you change the default frequency of all the boards using that SoC?
But I think we have already set the default frequency to 816MHz for A64, and it seems that several H5 boards are designed to start at 1.1v (see the notes by Jagan above).
Quoted 6 lines
It seems a bit overkill.
I guess we have two solutions:
1) Change the frequency in that board config
2) Change the voltage in that board configNEO2 don't have any voltage adjusting, it's fixed at 1.1V.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
And according to the Orange Pi PC2 and Prime schematics, they both start at 1.1V. (The Prime schematics even says "For H5 adjust VDD-CPUX to 1.1V).
And what about the Zero Plus 2 ?
Same equation with same reg values, but missing reg names on specific register area Page 7 [4] but hope both were same.
Ok, so it's not some H5 boards, it's all of them. It makes sense then, once the commit log has been changed.
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/20171103/18800f63/attachment.sig>
PATCH 1/1 sunxi: set the default CPUx frequency of H5 to 816MHz
Quoted 54 lines · Maxime Ripard
Quoted 53 lines · Jagan Teki
Quoted 51 lines · Maxime Ripard
Quoted 49 lines · Icenowy Zheng
Quoted 29 lines · 在 2017-10-31 21:54,Maxime Ripard 写道:
Quoted 14 lines · icenowy at aosc.io
Quoted 13 lines · 在 2017-10-31 15:57,Jagan Teki 写道:
Quoted 12 lines · Icenowy Zheng
Some H5 boards are designed to start at 1.1V CPUx voltage (e.g. Nano Pi
NEO2), which may not work properly at 1008MHz if the chip's quality is not so good.Lower the default CPUx frequency of H5 to 816MHz.
Signed-off-by Icenowy Zheng <[email protected]>--- arch/arm/mach-sunxi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
arch/arm/mach-sunxi/Kconfig +0
-0@@ -397,9 +397,9 @@ config SYS_CLK_FREQQuoted 8 lines
arch/arm/mach-sunxi/Kconfig config SYS_CLK_FREQ · line 401
Quoted 5 lines
arch/arm/mach-sunxi/Kconfig +1
-0default 1008000000 if MACH_SUN5I default 1008000000 if MACH_SUN6I default 912000000 if MACH_SUN7I + default 816000000 if MACH_SUN50I || MACH_SUN50I_H5 default 1008000000 if MACH_SUN8IEven orangepi pc2 has 1.1v after power-on and it's work fine [1] did you find an issue with neo2?
Quoted 2 lines
So you have one single model that fails, and you change the default frequency of all the boards using that SoC?
But I think we have already set the default frequency to 816MHz for A64, and it seems that several H5 boards are designed to start at 1.1v (see the notes by Jagan above).
Quoted 6 lines
It seems a bit overkill.
I guess we have two solutions:
1) Change the frequency in that board config
2) Change the voltage in that board configNEO2 don't have any voltage adjusting, it's fixed at 1.1V.
And according to the Orange Pi PC2 and Prime schematics, they both start at 1.1V. (The Prime schematics even says "For H5 adjust VDD-CPUX to 1.1V).
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
And what about the Zero Plus 2 ?
Same equation with same reg values, but missing reg names on specific register area Page 7 [4] but hope both were same.
Ok, so it's not some H5 boards, it's all of them. It makes sense then, once the commit log has been changed.
Let me test and will apply all fine.
thanks!
Signature · 4 lines
Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India.
PATCH 1/1 sunxi: set the default CPUx frequency of H5 to 816MHz
Quoted 22 lines · Jagan Teki
Quoted 20 lines · Maxime Ripard
Quoted 19 lines · Jagan Teki
Quoted 17 lines · Maxime Ripard
Quoted 16 lines · Icenowy Zheng
Quoted 15 lines · 在 2017-10-31 21:54,Maxime Ripard 写道:
Quoted 14 lines · icenowy at aosc.io
Quoted 13 lines · 在 2017-10-31 15:57,Jagan Teki 写道:
Quoted 12 lines · Icenowy Zheng
Some H5 boards are designed to start at 1.1V CPUx voltage (e.g. Nano Pi
NEO2), which may not work properly at 1008MHz if the chip's quality is not so good.Lower the default CPUx frequency of H5 to 816MHz.
Signed-off-by Icenowy Zheng <[email protected]>--- arch/arm/mach-sunxi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
arch/arm/mach-sunxi/Kconfig config SYS_CLK_FREQ · line 401
Quoted 10 lines
arch/arm/mach-sunxi/Kconfig +1
-0@@ -397,9 +397,9 @@ config SYS_CLK_FREQ default 1008000000 if MACH_SUN5I default 1008000000 if MACH_SUN6I default 912000000 if MACH_SUN7I + default 816000000 if MACH_SUN50I || MACH_SUN50I_H5 default 1008000000 if MACH_SUN8I
Applied to u-boot-sunxi/master