* [PATCH v2] ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer @ 2021-04-06 9:39 Manuel Reis 2021-04-06 22:16 ` Derald Woods 0 siblings, 1 reply; 8+ messages in thread From: Manuel Reis @ 2021-04-06 9:39 UTC (permalink / raw) To: u-boot 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 <mluis.reis@gmail.com> CC: Eugen Hristev <eugen.hristev@microchip.com> --- 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 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v2] ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer 2021-04-06 9:39 [PATCH v2] ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer Manuel Reis @ 2021-04-06 22:16 ` Derald Woods 2021-04-07 6:32 ` Eugen.Hristev at microchip.com 0 siblings, 1 reply; 8+ messages in thread From: Derald Woods @ 2021-04-06 22:16 UTC (permalink / raw) To: u-boot On Tue, Apr 6, 2021 at 4:40 AM Manuel Reis <mluis.reis@gmail.com> 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 <mluis.reis@gmail.com> > CC: Eugen Hristev <eugen.hristev@microchip.com> > --- > 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 > > This patch, on top of v2021.04, allows my SAMA5D3 Xplained board to boot normally again. Tested-by: Derald D. Woods <woods.technical@gmail.com> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2] ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer 2021-04-06 22:16 ` Derald Woods @ 2021-04-07 6:32 ` Eugen.Hristev at microchip.com 2021-04-07 9:16 ` Manuel Luís Reis 2021-04-07 20:07 ` Derald Woods 0 siblings, 2 replies; 8+ messages in thread From: Eugen.Hristev at microchip.com @ 2021-04-07 6:32 UTC (permalink / raw) To: u-boot On 4/7/21 1:16 AM, Derald Woods wrote: > On Tue, Apr 6, 2021 at 4:40 AM Manuel Reis <mluis.reis@gmail.com > <mailto:mluis.reis@gmail.com>> 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 <mluis.reis@gmail.com > <mailto:mluis.reis@gmail.com>> > CC: Eugen Hristev <eugen.hristev@microchip.com > <mailto:eugen.hristev@microchip.com>> > --- > ?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 > > > This patch, on top of v2021.04, allows my SAMA5D3 Xplained board to boot > normally again. > > Tested-by: Derald D. Woods <woods.technical@gmail.com > <mailto:woods.technical@gmail.com>> > 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2] ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer 2021-04-07 6:32 ` Eugen.Hristev at microchip.com @ 2021-04-07 9:16 ` Manuel Luís Reis 2021-04-07 9:31 ` Eugen.Hristev at microchip.com 2021-04-07 20:07 ` Derald Woods 1 sibling, 1 reply; 8+ messages in thread From: Manuel Luís Reis @ 2021-04-07 9:16 UTC (permalink / raw) To: u-boot 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 On Wed, 7 Apr 2021 at 07:32, <Eugen.Hristev@microchip.com> wrote: > > On 4/7/21 1:16 AM, Derald Woods wrote: > > On Tue, Apr 6, 2021 at 4:40 AM Manuel Reis <mluis.reis@gmail.com > > <mailto:mluis.reis@gmail.com>> 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 <mluis.reis@gmail.com > > <mailto:mluis.reis@gmail.com>> > > CC: Eugen Hristev <eugen.hristev@microchip.com > > <mailto:eugen.hristev@microchip.com>> > > --- > > 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 > > > > > > This patch, on top of v2021.04, allows my SAMA5D3 Xplained board to boot > > normally again. > > > > Tested-by: Derald D. Woods <woods.technical@gmail.com > > <mailto:woods.technical@gmail.com>> > > > > 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2] ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer 2021-04-07 9:16 ` Manuel Luís Reis @ 2021-04-07 9:31 ` Eugen.Hristev at microchip.com 2021-04-07 9:39 ` Manuel Luís Reis 0 siblings, 1 reply; 8+ messages in thread From: Eugen.Hristev at microchip.com @ 2021-04-07 9:31 UTC (permalink / raw) To: u-boot On 4/7/21 12:16 PM, Manuel Lu?s Reis wrote: > 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 > ------------------------------------------------ > 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 > > On Wed, 7 Apr 2021 at 07:32, <Eugen.Hristev@microchip.com> wrote: >> >> On 4/7/21 1:16 AM, Derald Woods wrote: >>> On Tue, Apr 6, 2021 at 4:40 AM Manuel Reis <mluis.reis@gmail.com >>> <mailto:mluis.reis@gmail.com>> 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 <mluis.reis@gmail.com >>> <mailto:mluis.reis@gmail.com>> >>> CC: Eugen Hristev <eugen.hristev@microchip.com >>> <mailto:eugen.hristev@microchip.com>> >>> --- >>> 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 >>> >>> >>> This patch, on top of v2021.04, allows my SAMA5D3 Xplained board to boot >>> normally again. >>> >>> Tested-by: Derald D. Woods <woods.technical@gmail.com >>> <mailto:woods.technical@gmail.com>> >>> >> >> 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2] ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer 2021-04-07 9:31 ` Eugen.Hristev at microchip.com @ 2021-04-07 9:39 ` Manuel Luís Reis 2021-04-19 7:40 ` Eugen.Hristev at microchip.com 0 siblings, 1 reply; 8+ messages in thread From: Manuel Luís Reis @ 2021-04-07 9:39 UTC (permalink / raw) To: u-boot Great, thanks for your help. Cheers Manuel M. Lu?s Reis MSc MIET Chartered Engineer On Wed, 7 Apr 2021 at 10:31, <Eugen.Hristev@microchip.com> wrote: > > On 4/7/21 12:16 PM, Manuel Lu?s Reis wrote: > > 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 > > > ------------------------------------------------ > > 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 > > > > On Wed, 7 Apr 2021 at 07:32, <Eugen.Hristev@microchip.com> wrote: > >> > >> On 4/7/21 1:16 AM, Derald Woods wrote: > >>> On Tue, Apr 6, 2021 at 4:40 AM Manuel Reis <mluis.reis@gmail.com > >>> <mailto:mluis.reis@gmail.com>> 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 <mluis.reis@gmail.com > >>> <mailto:mluis.reis@gmail.com>> > >>> CC: Eugen Hristev <eugen.hristev@microchip.com > >>> <mailto:eugen.hristev@microchip.com>> > >>> --- > >>> 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 > >>> > >>> > >>> This patch, on top of v2021.04, allows my SAMA5D3 Xplained board to boot > >>> normally again. > >>> > >>> Tested-by: Derald D. Woods <woods.technical@gmail.com > >>> <mailto:woods.technical@gmail.com>> > >>> > >> > >> 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 > ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2] ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer 2021-04-07 9:39 ` Manuel Luís Reis @ 2021-04-19 7:40 ` Eugen.Hristev at microchip.com 0 siblings, 0 replies; 8+ messages in thread From: Eugen.Hristev at microchip.com @ 2021-04-19 7:40 UTC (permalink / raw) To: u-boot On 4/7/21 12:39 PM, Manuel Lu?s Reis wrote: > Great, thanks for your help. > > Cheers > Manuel > > M. Lu?s Reis MSc MIET Chartered Engineer > > > > On Wed, 7 Apr 2021 at 10:31, <Eugen.Hristev@microchip.com> wrote: >> >> On 4/7/21 12:16 PM, Manuel Lu?s Reis wrote: >>> 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 >> >>> ------------------------------------------------ >>> 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 >>> >>> On Wed, 7 Apr 2021 at 07:32, <Eugen.Hristev@microchip.com> wrote: >>>> >>>> On 4/7/21 1:16 AM, Derald Woods wrote: >>>>> On Tue, Apr 6, 2021 at 4:40 AM Manuel Reis <mluis.reis@gmail.com >>>>> <mailto:mluis.reis@gmail.com>> 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 <mluis.reis@gmail.com >>>>> <mailto:mluis.reis@gmail.com>> >>>>> CC: Eugen Hristev <eugen.hristev@microchip.com >>>>> <mailto:eugen.hristev@microchip.com>> >>>>> --- >>>>> 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 >>>>> >>>>> >>>>> This patch, on top of v2021.04, allows my SAMA5D3 Xplained board to boot >>>>> normally again. >>>>> >>>>> Tested-by: Derald D. Woods <woods.technical@gmail.com >>>>> <mailto:woods.technical@gmail.com>> Applied to u-boot-atmel/master, thanks, and, Reviewed-by: Eugen Hristev <eugen.hristev@microchip.com> >>>>> >>>> >>>> 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 >> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2] ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer 2021-04-07 6:32 ` Eugen.Hristev at microchip.com 2021-04-07 9:16 ` Manuel Luís Reis @ 2021-04-07 20:07 ` Derald Woods 1 sibling, 0 replies; 8+ messages in thread From: Derald Woods @ 2021-04-07 20:07 UTC (permalink / raw) To: u-boot On Wed, Apr 7, 2021 at 1:32 AM <Eugen.Hristev@microchip.com> wrote: > On 4/7/21 1:16 AM, Derald Woods wrote: > > On Tue, Apr 6, 2021 at 4:40 AM Manuel Reis <mluis.reis@gmail.com > > <mailto:mluis.reis@gmail.com>> 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 <mluis.reis@gmail.com > > <mailto:mluis.reis@gmail.com>> > > CC: Eugen Hristev <eugen.hristev@microchip.com > > <mailto:eugen.hristev@microchip.com>> > > --- > > 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 > > > > > > This patch, on top of v2021.04, allows my SAMA5D3 Xplained board to boot > > normally again. > > > > Tested-by: Derald D. Woods <woods.technical@gmail.com > > <mailto:woods.technical@gmail.com>> > > > > 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 ? > 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 > > Thanks, > Eugen > ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-04-19 7:40 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2021-04-06 9:39 [PATCH v2] ARM: dts: at91: sama5d3: add u-boot properties to sama5d3 pit timer Manuel Reis 2021-04-06 22:16 ` Derald Woods 2021-04-07 6:32 ` Eugen.Hristev at microchip.com 2021-04-07 9:16 ` Manuel Luís Reis 2021-04-07 9:31 ` Eugen.Hristev at microchip.com 2021-04-07 9:39 ` Manuel Luís Reis 2021-04-19 7:40 ` Eugen.Hristev at microchip.com 2021-04-07 20:07 ` Derald Woods
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox