ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer
PATCH v2 1/1 ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer
in the early SPL boot stage whenever there is a call to udelay, dm_timer_init fails to find the pit timer whenever it traverses the device tree, if this property is not present
--- arch/arm/dts/sama5d3.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm/dts/sama5d3.dtsi +1 -0
@@ -1320,6 +1320,7 @@ reg = <0xfffffe30 0xf>; interrupts = <3 IRQ_TYPE_LEVEL_HIGH 5>; clocks = <&mck>; + u-boot,dm-pre-reloc; }; watchdog at fffffe40 {
Signature · 1 line
2.27.0
PATCH v2 1/1 ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer
Quoted 23 lines · Manuel Reis
in the early SPL boot stage whenever there is a call to udelay,
dm_timer_initfails to find the pit timer whenever it traverses the device tree, if this property is not presentSigned-off-by Manuel Reis <[email protected]>CC Eugen Hristev <[email protected]>--- arch/arm/dts/sama5d3.dtsi | 1 + 1 file changed, 1 insertion(+)arch/arm/dts/sama5d3.dtsi +1
-1@@ -1320,6 +1320,7 @@ reg = <0xfffffe30 0xf>; interrupts = <3 IRQ_TYPE_LEVEL_HIGH 5>; clocks = <&mck>; + u-boot,dm-pre-reloc; }; watchdog at fffffe40 { --
Quoted 3 lines
2.27.0
This patch, on top of v2021.04, allows my SAMA5D3 Xplained board to boot normally again.
PATCH v2 1/1 ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer
Quoted 31 lines · Derald Woods
On Tue, Apr 6, 2021 at 4:40 AM Manuel Reis <[email protected] <mailto:[email protected]>> wrote:
in the early SPL boot stage whenever there is a call to udelay, dm_timer_init fails to find the pit timer whenever it traverses the device tree, if this property is not present Signed-off-by: Manuel Reis <[email protected] <mailto:[email protected]>> CC: Eugen Hristev <[email protected] <mailto:[email protected]>> --- ?arch/arm/dts/sama5d3.dtsi | 1 + ?1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/sama5d3.dtsi b/arch/arm/dts/sama5d3.dtsi index 6ed218eaad..42c30e9f30 100644 --- a/arch/arm/dts/sama5d3.dtsi +++ b/arch/arm/dts/sama5d3.dtsi @@ -1320,6 +1320,7 @@ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? reg = <0xfffffe30 0xf>; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? interrupts = <3 IRQ_TYPE_LEVEL_HIGH 5>; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? clocks = <&mck>; +? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?u-boot,dm-pre-reloc; ? ? ? ? ? ? ? ? ? ? ? ? }; ? ? ? ? ? ? ? ? ? ? ? ? watchdog at fffffe40 { -- 2.27.0
Quoted 6 lines
This patch, on top of v2021.04, allows my SAMA5D3 Xplained board to boot normally again.
Tested-by Derald D. Woods <[email protected]<mailto:[email protected]>>
Hi Derald,
Could I ask, you are using the SPL to boot your board ?
Did you have to remove any udelay from the ddr2_init code , or it booted out of the box by applying this patch only ?
Thanks,
Eugen
PATCH v2 1/1 ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer
Hi,
@Derald: Thanks for trying this out.
@Eugen: For what is worth, I can also confirm that I also tried with the latest version v2021.04 and the board boots OK out of the box with this patch only.
------------------------------------------------
RomBOOT
<debug_uart>
U-Boot SPL 2021.04-00372-g90eba245a6-dirty (Apr 07 2021 - 10:05:18 +0100) Trying to boot from MMC1
<debug_uart>
U-Boot 2021.04-00372-g90eba245a6-dirty (Apr 07 2021 - 10:05:18 +0100)
CPU: SAMA5D36
Crystal frequency: 12 MHz
.....
------------------------------------------------
Thanks,
Manuel
Quoted 48 lines · On Wed, 7 Apr 2021 at 07:32, <[email protected]> wrote:
Quoted 31 lines · Derald Woods
On Tue, Apr 6, 2021 at 4:40 AM Manuel Reis <[email protected] <mailto:[email protected]>> wrote:
in the early SPL boot stage whenever there is a call to udelay, dm_timer_init fails to find the pit timer whenever it traverses the device tree, if this property is not present Signed-off-by: Manuel Reis <[email protected] <mailto:[email protected]>> CC: Eugen Hristev <[email protected] <mailto:[email protected]>> --- arch/arm/dts/sama5d3.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/sama5d3.dtsi b/arch/arm/dts/sama5d3.dtsi index 6ed218eaad..42c30e9f30 100644 --- a/arch/arm/dts/sama5d3.dtsi +++ b/arch/arm/dts/sama5d3.dtsi @@ -1320,6 +1320,7 @@ reg = <0xfffffe30 0xf>; interrupts = <3 IRQ_TYPE_LEVEL_HIGH 5>; clocks = <&mck>; + u-boot,dm-pre-reloc; }; watchdog at fffffe40 { -- 2.27.0Quoted 6 lines
This patch, on top of v2021.04, allows my SAMA5D3 Xplained board to boot normally again.
Tested-by Derald D. Woods <[email protected]<mailto:[email protected]>>
Hi Derald,
Could I ask, you are using the SPL to boot your board ?
Did you have to remove any udelay from theddr2_initcode , or it booted out of the box by applying this patch only ?Thanks,
Eugen
PATCH v2 1/1 ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer
Quoted 8 lines · Manuel Lu?s Reis
Hi,
@Derald: Thanks for trying this out.
@Eugen: For what is worth, I can also confirm that I also tried with the latest version v2021.04 and the board boots OK out of the box with this patch only.
Ok, great news ! Thanks.
Until this patch can reach the master of u-boot, if anyone needs a tree, you can have my testing branch in u-boot-atmel custodian tree at denx:
https://source.denx.de/u-boot/custodians/u-boot-atmel/-/tree/testing
Eugen
Quoted 64 lines
------------------------------------------------
RomBOOT
<debug_uart>
U-Boot SPL 2021.04-00372-g90eba245a6-dirty (Apr 07 2021 - 10:05:18 +0100) Trying to boot from MMC1
<debug_uart>
U-Boot 2021.04-00372-g90eba245a6-dirty (Apr 07 2021 - 10:05:18 +0100)
CPU: SAMA5D36
Crystal frequency: 12 MHz
.....
------------------------------------------------Thanks,
ManuelQuoted 48 lines · On Wed, 7 Apr 2021 at 07:32, <[email protected]> wrote:
Quoted 31 lines · Derald Woods
On Tue, Apr 6, 2021 at 4:40 AM Manuel Reis <[email protected] <mailto:[email protected]>> wrote:
in the early SPL boot stage whenever there is a call to udelay, dm_timer_init fails to find the pit timer whenever it traverses the device tree, if this property is not present Signed-off-by: Manuel Reis <[email protected] <mailto:[email protected]>> CC: Eugen Hristev <[email protected] <mailto:[email protected]>> --- arch/arm/dts/sama5d3.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/sama5d3.dtsi b/arch/arm/dts/sama5d3.dtsi index 6ed218eaad..42c30e9f30 100644 --- a/arch/arm/dts/sama5d3.dtsi +++ b/arch/arm/dts/sama5d3.dtsi @@ -1320,6 +1320,7 @@ reg = <0xfffffe30 0xf>; interrupts = <3 IRQ_TYPE_LEVEL_HIGH 5>; clocks = <&mck>; + u-boot,dm-pre-reloc; }; watchdog at fffffe40 { -- 2.27.0Quoted 6 lines
This patch, on top of v2021.04, allows my SAMA5D3 Xplained board to boot normally again.
Tested-by Derald D. Woods <[email protected]<mailto:[email protected]>>
Hi Derald,
Could I ask, you are using the SPL to boot your board ?
Did you have to remove any udelay from theddr2_initcode , or it booted out of the box by applying this patch only ?Thanks,
Eugen
PATCH v2 1/1 ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer
Great, thanks for your help.
Cheers
Manuel
M. Lu?s Reis MSc MIET Chartered Engineer
Quoted 85 lines · On Wed, 7 Apr 2021 at 10:31, <[email protected]> wrote:
Quoted 8 lines · Manuel Lu?s Reis
Hi,
@Derald: Thanks for trying this out.
@Eugen: For what is worth, I can also confirm that I also tried with the latest version v2021.04 and the board boots OK out of the box with this patch only.
Ok, great news ! Thanks.
Until this patch can reach the master of u-boot, if anyone needs a tree, you can have my testing branch in u-boot-atmel custodian tree at denx:
https://source.denx.de/u-boot/custodians/u-boot-atmel/-/tree/testing
Eugen
Quoted 64 lines
------------------------------------------------
RomBOOT
<debug_uart>
U-Boot SPL 2021.04-00372-g90eba245a6-dirty (Apr 07 2021 - 10:05:18 +0100) Trying to boot from MMC1
<debug_uart>
U-Boot 2021.04-00372-g90eba245a6-dirty (Apr 07 2021 - 10:05:18 +0100)
CPU: SAMA5D36
Crystal frequency: 12 MHz
.....
------------------------------------------------Thanks,
ManuelQuoted 48 lines · On Wed, 7 Apr 2021 at 07:32, <[email protected]> wrote:
Quoted 31 lines · Derald Woods
On Tue, Apr 6, 2021 at 4:40 AM Manuel Reis <[email protected] <mailto:[email protected]>> wrote:
in the early SPL boot stage whenever there is a call to udelay, dm_timer_init fails to find the pit timer whenever it traverses the device tree, if this property is not present Signed-off-by: Manuel Reis <[email protected] <mailto:[email protected]>> CC: Eugen Hristev <[email protected] <mailto:[email protected]>> --- arch/arm/dts/sama5d3.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/sama5d3.dtsi b/arch/arm/dts/sama5d3.dtsi index 6ed218eaad..42c30e9f30 100644 --- a/arch/arm/dts/sama5d3.dtsi +++ b/arch/arm/dts/sama5d3.dtsi @@ -1320,6 +1320,7 @@ reg = <0xfffffe30 0xf>; interrupts = <3 IRQ_TYPE_LEVEL_HIGH 5>; clocks = <&mck>; + u-boot,dm-pre-reloc; }; watchdog at fffffe40 { -- 2.27.0Quoted 6 lines
This patch, on top of v2021.04, allows my SAMA5D3 Xplained board to boot normally again.
Tested-by Derald D. Woods <[email protected]<mailto:[email protected]>>
Hi Derald,
Could I ask, you are using the SPL to boot your board ?
Did you have to remove any udelay from theddr2_initcode , or it booted out of the box by applying this patch only ?Thanks,
Eugen
PATCH v2 1/1 ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer
Quoted 84 lines · Manuel Lu?s Reis
Great, thanks for your help.
Cheers
ManuelM. Lu?s Reis MSc MIET Chartered Engineer
Quoted 74 lines · On Wed, 7 Apr 2021 at 10:31, <[email protected]> wrote:
Quoted 8 lines · Manuel Lu?s Reis
Hi,
@Derald: Thanks for trying this out.
@Eugen: For what is worth, I can also confirm that I also tried with the latest version v2021.04 and the board boots OK out of the box with this patch only.
Ok, great news ! Thanks.
Until this patch can reach the master of u-boot, if anyone needs a tree, you can have my testing branch in u-boot-atmel custodian tree at denx:
https://source.denx.de/u-boot/custodians/u-boot-atmel/-/tree/testing
Eugen
Quoted 54 lines
------------------------------------------------
RomBOOT
<debug_uart>
U-Boot SPL 2021.04-00372-g90eba245a6-dirty (Apr 07 2021 - 10:05:18 +0100) Trying to boot from MMC1
<debug_uart>
U-Boot 2021.04-00372-g90eba245a6-dirty (Apr 07 2021 - 10:05:18 +0100)
CPU: SAMA5D36
Crystal frequency: 12 MHz
.....
------------------------------------------------Thanks,
ManuelQuoted 38 lines · On Wed, 7 Apr 2021 at 07:32, <[email protected]> wrote:
Quoted 36 lines · Derald Woods
On Tue, Apr 6, 2021 at 4:40 AM Manuel Reis <[email protected] <mailto:[email protected]>> wrote:
in the early SPL boot stage whenever there is a call to udelay, dm_timer_init fails to find the pit timer whenever it traverses the device tree, if this property is not present Signed-off-by: Manuel Reis <[email protected] <mailto:[email protected]>> CC: Eugen Hristev <[email protected] <mailto:[email protected]>> --- arch/arm/dts/sama5d3.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/sama5d3.dtsi b/arch/arm/dts/sama5d3.dtsi index 6ed218eaad..42c30e9f30 100644 --- a/arch/arm/dts/sama5d3.dtsi +++ b/arch/arm/dts/sama5d3.dtsi @@ -1320,6 +1320,7 @@ reg = <0xfffffe30 0xf>; interrupts = <3 IRQ_TYPE_LEVEL_HIGH 5>; clocks = <&mck>; + u-boot,dm-pre-reloc; }; watchdog at fffffe40 { -- 2.27.0This patch, on top of v2021.04, allows my SAMA5D3 Xplained board to boot normally again.
Tested-by Derald D. Woods <[email protected]<mailto:[email protected]>>
Applied to u-boot-atmel/master, thanks, and,
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
Hi Derald,
Could I ask, you are using the SPL to boot your board ?
Did you have to remove any udelay from theddr2_initcode , or it booted out of the box by applying this patch only ?Thanks,
Eugen
PATCH v2 1/1 ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer
In reply to Eugen.Hristev at microchip.comQuoted 40 lines · On Wed, Apr 7, 2021 at 1:32 AM <[email protected]> wrote:
Quoted 15 lines · Derald Woods
On Tue, Apr 6, 2021 at 4:40 AM Manuel Reis <[email protected] <mailto:[email protected]>> wrote:
in the early SPL boot stage whenever there is a call to udelay, dm_timer_init fails to find the pit timer whenever it traverses the device tree, if this property is not present Signed-off-by: Manuel Reis <[email protected] <mailto:[email protected]>> CC: Eugen Hristev <[email protected] <mailto:[email protected]>> --- arch/arm/dts/sama5d3.dtsi | 1 + 1 file changed, 1 insertion(+)Quoted 7 lines
diff --git a/arch/arm/dts/sama5d3.dtsi b/arch/arm/dts/sama5d3.dtsi index 6ed218eaad..42c30e9f30 100644 --- a/arch/arm/dts/sama5d3.dtsi +++ b/arch/arm/dts/sama5d3.dtsi @@ -1320,6 +1320,7 @@ reg = <0xfffffe30 0xf>; interrupts = <3 IRQ_TYPE_LEVEL_HIGH5>;
Quoted 9 lines
clocks = <&mck>; + u-boot,dm-pre-reloc; }; watchdog at fffffe40 { -- 2.27.0Quoted 6 lines
This patch, on top of v2021.04, allows my SAMA5D3 Xplained board to boot normally again.
Tested-by Derald D. Woods <[email protected]<mailto:[email protected]>>
Quoted 6 lines
Hi Derald,
Could I ask, you are using the SPL to boot your board ?
Did you have to remove any udelay from theddr2_initcode , or it booted out of the box by applying this patch only ?
With just this patch on top of v2021.04, the board booted as expected. It did not work with v2021.01. So this patch works for "v2021.04" onward. I did not touch ddr2_init code.
Derald
Quoted 4 lines
Thanks,
Eugen