All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrice CHOTARD <patrice.chotard@foss.st.com>
To: Marek Vasut <marex@denx.de>, <u-boot@lists.denx.de>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Subject: Re: [PATCH] ARM: dts: stm32: Reduce DHCOR SPI NOR frequency to 50 MHz
Date: Mon, 16 Aug 2021 13:29:10 +0200	[thread overview]
Message-ID: <18fd9c9a-4629-078a-926f-1c2f9672230a@foss.st.com> (raw)
In-Reply-To: <b65e5874-0617-5af2-d276-63dc988c877e@foss.st.com>

Hi Marek

On 8/9/21 2:33 PM, Patrice CHOTARD wrote:
> Hi Marek
> 
> On 8/9/21 2:06 PM, Marek Vasut wrote:
>> The SPI NOR is a bit further away from the SoC on DHCOR than on DHCOM,
>> which causes additional signal delay. At 108 MHz, this delay triggers
>> a sporadic issue where the first bit of RX data is not received by the
>> QSPI controller.
>>
>> There are two options of addressing this problem, either by using the
>> DLYB block to compensate the extra delay, or by reducing the QSPI bus
>> clock frequency. The former requires calibration and that is overly
>> complex for SPL, so opt for the second option. This incurs 20ms delay
>> during boot, when SPL loads U-Boot to DRAM.
>>
>> Signed-off-by: Marek Vasut <marex@denx.de>
>> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
>> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
>> ---
>>  arch/arm/dts/stm32mp15xx-dhcor-io3v3.dtsi | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/dts/stm32mp15xx-dhcor-io3v3.dtsi b/arch/arm/dts/stm32mp15xx-dhcor-io3v3.dtsi
>> index 64299df8166..94cf80dbede 100644
>> --- a/arch/arm/dts/stm32mp15xx-dhcor-io3v3.dtsi
>> +++ b/arch/arm/dts/stm32mp15xx-dhcor-io3v3.dtsi
>> @@ -198,7 +198,7 @@
>>  		compatible = "jedec,spi-nor";
>>  		reg = <0>;
>>  		spi-rx-bus-width = <4>;
>> -		spi-max-frequency = <108000000>;
>> +		spi-max-frequency = <50000000>;
>>  		#address-cells = <1>;
>>  		#size-cells = <1>;
>>  	};
>>
> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
> 
> Thanks
> Patrice
> 
Applied to u-boot-stm/master

Thanks
Patrice

  reply	other threads:[~2021-08-16 11:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-09 12:06 [PATCH] ARM: dts: stm32: Reduce DHCOR SPI NOR frequency to 50 MHz Marek Vasut
2021-08-09 12:33 ` Patrice CHOTARD
2021-08-16 11:29   ` Patrice CHOTARD [this message]
2021-08-09 12:13 Marek Vasut
2021-09-20  7:39 ` Alexandre TORGUE

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18fd9c9a-4629-078a-926f-1c2f9672230a@foss.st.com \
    --to=patrice.chotard@foss.st.com \
    --cc=marex@denx.de \
    --cc=patrick.delaunay@foss.st.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.