All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/8] sf: improve support of (Q)SPI flash memories
@ 2017-05-19 14:59 Cyrille Pitchen
  2017-05-19 14:59 ` [U-Boot] [PATCH 1/8] spi: add support of SPI flash commands Cyrille Pitchen
                   ` (7 more replies)
  0 siblings, 8 replies; 17+ messages in thread
From: Cyrille Pitchen @ 2017-05-19 14:59 UTC (permalink / raw)
  To: u-boot

Hi all,

this series of patches has been tested on u-boot-2017.03-at91 then ported
to the 'master' branch of the u-boot-spi.git tree.

Tests were passed with a sama5d2 xplained board which embeds both SPI and
QSPI controllers.

The following tests have been passed:

- QSPI0 + Macronix MX25L25673G:
 + probe: OK
 + Fast Read 1-1-4 at offset 0x10000 (u-boot env): OK
 + Page Program 1-1-4 at offset 0x10000: OK
   The Macronix datasheet tells that only Page Program 1-4-4 is
   supported, not Page Program 1-1-4, however it worked, I don't know
   why...

- QSPI0 + Microchip SST26
  + probe: OK
  + Fast Read 1-1-4 at offset 0x10000 (u-boot env): OK
  + Page Program 1-1-1 at offset 0x10000: OK
    SST26 memories support Page Program 1-4-4 but with the op code of
    Page Program 1-1-4, which is not standard so I don't use it.

- QSPI0 + Adesto AT25DF321A
  + probe: OK
  + Fast Read 1-1-1 at offset 0x10000 (u-boot env): OK
  + Page Program 1-1-1 at offset 0x10000: OK

- SPI0 + Adesto AT25DF321A
  + probe: OK
  + Fast Read 1-1-1 at offset 0x6000 (u-boot env): OK
  + Page Program 1-1-1 at offest 0x6000: OK

- SPI1 + Atmel AT45
  + probe: OK
  + Read at offset 0: OK
  + Write at offset 0: OK <- I didn't try offset other than 0.

During my tests, I used:
- setenv/saveenv, reboot, printenv
or
- sf probe, sf read, sf write


Best regards,

Cyrille


Cyrille Pitchen (8):
  spi: add support of SPI flash commands
  sf: describe all SPI flash commands with 'struct spi_flash_command'
  sf: select the relevant SPI flash protocol for read and write commands
  sf: differentiate Page Program 1-1-4 and 1-4-4
  sf: add 'addr_len' member to 'struct spi_flash'
  sf: add new option to support SPI flash above 16MiB
  sf: add support to Microchip SST26 QSPI memories
  sf: add driver for Atmel QSPI controller

 drivers/mtd/spi/Kconfig         |  15 +-
 drivers/mtd/spi/sf.c            |  78 ++++++--
 drivers/mtd/spi/sf_dataflash.c  | 119 ++++++------
 drivers/mtd/spi/sf_internal.h   |  48 +++--
 drivers/mtd/spi/spi_flash.c     | 338 +++++++++++++++++++++++----------
 drivers/mtd/spi/spi_flash_ids.c |   5 +
 drivers/spi/Kconfig             |   7 +
 drivers/spi/Makefile            |   1 +
 drivers/spi/atmel_qspi.c        | 404 ++++++++++++++++++++++++++++++++++++++++
 drivers/spi/atmel_qspi.h        | 169 +++++++++++++++++
 drivers/spi/spi-uclass.c        |  40 ++++
 drivers/spi/spi.c               |  13 ++
 include/spi.h                   | 168 +++++++++++++++++
 include/spi_flash.h             |   6 +
 14 files changed, 1222 insertions(+), 189 deletions(-)
 create mode 100644 drivers/spi/atmel_qspi.c
 create mode 100644 drivers/spi/atmel_qspi.h

-- 
2.7.4

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-05-22  1:21 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-19 14:59 [U-Boot] [PATCH 0/8] sf: improve support of (Q)SPI flash memories Cyrille Pitchen
2017-05-19 14:59 ` [U-Boot] [PATCH 1/8] spi: add support of SPI flash commands Cyrille Pitchen
2017-05-22  1:17   ` Yang, Wenyou
2017-05-19 14:59 ` [U-Boot] [PATCH 2/8] sf: describe all SPI flash commands with 'struct spi_flash_command' Cyrille Pitchen
2017-05-22  1:18   ` Yang, Wenyou
2017-05-19 14:59 ` [U-Boot] [PATCH 3/8] sf: select the relevant SPI flash protocol for read and write commands Cyrille Pitchen
2017-05-22  1:18   ` Yang, Wenyou
2017-05-19 14:59 ` [U-Boot] [PATCH 4/8] sf: differentiate Page Program 1-1-4 and 1-4-4 Cyrille Pitchen
2017-05-22  1:19   ` Yang, Wenyou
2017-05-19 14:59 ` [U-Boot] [PATCH 5/8] sf: add 'addr_len' member to 'struct spi_flash' Cyrille Pitchen
2017-05-22  1:19   ` Yang, Wenyou
2017-05-19 14:59 ` [U-Boot] [PATCH 6/8] sf: add new option to support SPI flash above 16MiB Cyrille Pitchen
2017-05-22  1:20   ` Yang, Wenyou
2017-05-19 14:59 ` [U-Boot] [PATCH 7/8] sf: add support to Microchip SST26 QSPI memories Cyrille Pitchen
2017-05-22  1:20   ` Yang, Wenyou
2017-05-19 14:59 ` [U-Boot] [PATCH 8/8] sf: add driver for Atmel QSPI controller Cyrille Pitchen
2017-05-22  1:21   ` Yang, Wenyou

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.