From: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/7] Remove defines for SPI default speed and mode
Date: Mon, 10 Dec 2018 20:20:29 +0100 [thread overview]
Message-ID: <a3513dc2-5e4e-ca79-822a-5fc6dced9904@gmail.com> (raw)
In-Reply-To: <CAHCN7xJzpM95So0YE2Wtw1PeUDFtRPE+KZU43pmze7wfkv2ijA@mail.gmail.com>
Am 10.12.2018 um 16:42 schrieb Adam Ford:
> On Mon, Dec 10, 2018 at 4:54 AM Patrick Delaunay
> <patrick.delaunay@st.com> wrote:
>>
>>
>> This patch-set finish (after the last Simmon comment)
>> and depends on the previous serie named:
>> "Read default speed and mode values from DT"
>>
>> http://patchwork.ozlabs.org/project/uboot/list/?series=76834
>>
>> This patchset remove the unnecessary defines for SPI speed and mode
>> when DM mode is used for SPI (CONFIG_DM_SPI_FLASH).
>>
>> Build result is available for the serie in gihub and travis:
>> https://github.com/patrickdelaunay/u-boot/tree/topic/spi
>> https://travis-ci.org/patrickdelaunay/u-boot/branches
>>
>>
> After applying both of your patches, the da850evm no longer boots from
> SPI flash.
I just did test this and it worked for me. Booting from QSPI on
socfpga_socrates and loading something in U-Boot via sf probe/sf read, so:
Tested-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
>
> U-Boot SPL 2019.01-rc1-00754-g21fb8c41b1 (Dec 10 2018 - 09:02:28 -0600)
> Trying to boot from SPI
> Warning: SPI speed fallback to 100 kHz
>
> [repeat in perpetuity]
>
> U-Boot SPL 2019.01-rc1-00754-g21fb8c41b1 (Dec 10 2018 - 09:02:28 -0600)
> Trying to boot from SPI
> Warning: SPI speed fallback to 100 kHz
>
> I then tried to apply the first patch, and it also fails booting.
>
> I'll reply to the original series with a similar message. Looking at
> the comments, it looks like the code is assuming the DM_SPI_FLASH
> means DT when in reality, the da850evm's SPL is using platdata. I
> looked at the platdata structure and I didn't see entries for SPI mode
> or speed. However, I cannot prove this is the issue on the da850evm
> without diving into it a bit more.
Adam, from reading the da850-emv.dts and its '-u-boot.dtsi', it seems
the fdtgrep indicators to keep the flash for the SPL dts are missing
(compare to socfpga_cyclone5_socrates-u-boot.dtsi). In this case, the
code does not find a flash node.
The same would of course apply when using platdata.
Regards,
Simon
>
> adam
>>
>> Patrick Delaunay (7):
>> spi: update management of default speed and mode
>> spi: add comment for spi_flash_probe_bus_cs function
>> da850evm: sf: Read default speed and mode values from DT
>> dfu: sf: Read default speed and mode values from DT
>> mips: mt76xx: gardena-smart-gateway: Read default speed and mode
>> values from DT
>> env: Read default speed and mode values from DT
>> spi: remove define for SPI default SPEED and MODE
>>
>> board/davinci/da8xxevm/da850evm.c | 7 +++++++
>> board/gardena/smart-gateway-mt7688/board.c | 24 ++++++++++++++++++++----
>> cmd/sf.c | 10 ++++++----
>> common/spl/spl_spi.c | 11 ++++++-----
>> common/splash_source.c | 11 ++++++-----
>> drivers/dfu/dfu_sf.c | 10 ++++++++--
>> env/Kconfig | 4 ++--
>> env/sf.c | 5 ++++-
>> include/spi_flash.h | 18 ++++++++++++++++++
>> 9 files changed, 77 insertions(+), 23 deletions(-)
>>
>> --
>> 2.7.4
>>
next prev parent reply other threads:[~2018-12-10 19:20 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-10 10:52 [U-Boot] [PATCH 0/7] Remove defines for SPI default speed and mode Patrick Delaunay
2018-12-10 10:52 ` [U-Boot] [PATCH 1/7] spi: update management of " Patrick Delaunay
2018-12-10 11:24 ` Simon Goldschmidt
2018-12-10 20:49 ` Petr Vorel
2018-12-10 20:57 ` Simon Goldschmidt
2018-12-12 19:58 ` Jagan Teki
2018-12-10 10:52 ` [U-Boot] [PATCH 2/7] spi: add comment for spi_flash_probe_bus_cs function Patrick Delaunay
2018-12-10 11:25 ` Simon Goldschmidt
2018-12-10 20:54 ` Petr Vorel
2018-12-10 10:52 ` [U-Boot] [PATCH 3/7] da850evm: sf: Read default speed and mode values from DT Patrick Delaunay
2018-12-10 20:57 ` Petr Vorel
2018-12-12 20:02 ` Jagan Teki
2018-12-13 14:54 ` Patrick DELAUNAY
2018-12-10 10:52 ` [U-Boot] [PATCH 4/7] dfu: " Patrick Delaunay
2018-12-10 11:22 ` Lukasz Majewski
2018-12-10 21:00 ` Petr Vorel
2018-12-10 10:52 ` [U-Boot] [PATCH 5/7] mips: mt76xx: gardena-smart-gateway: " Patrick Delaunay
2018-12-10 11:47 ` Stefan Roese
2018-12-10 21:01 ` Petr Vorel
2018-12-10 10:52 ` [U-Boot] [PATCH 6/7] env: " Patrick Delaunay
2018-12-10 11:23 ` Lukasz Majewski
2018-12-10 11:27 ` Simon Goldschmidt
2018-12-10 21:08 ` Petr Vorel
2018-12-12 20:07 ` Jagan Teki
2018-12-10 10:52 ` [U-Boot] [PATCH 7/7] spi: remove define for SPI default SPEED and MODE Patrick Delaunay
2018-12-10 11:26 ` Simon Goldschmidt
2018-12-10 21:10 ` Petr Vorel
2018-12-10 15:42 ` [U-Boot] [PATCH 0/7] Remove defines for SPI default speed and mode Adam Ford
2018-12-10 19:20 ` Simon Goldschmidt [this message]
2018-12-10 20:17 ` Adam Ford
2018-12-10 21:08 ` Simon Goldschmidt
2018-12-12 7:51 ` Petr Vorel
2018-12-12 9:54 ` Simon Goldschmidt
2018-12-13 14:46 ` Patrick DELAUNAY
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=a3513dc2-5e4e-ca79-822a-5fc6dced9904@gmail.com \
--to=simon.k.r.goldschmidt@gmail.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.