devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/4] Static memory controllers for the Aspeed SoC
@ 2016-12-12 15:40 Cédric Le Goater
  2016-12-12 15:40 ` [PATCH v4 1/4] mtd: spi-nor: add memory controllers for the Aspeed AST2500 SoC Cédric Le Goater
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Cédric Le Goater @ 2016-12-12 15:40 UTC (permalink / raw)
  To: linux-mtd
  Cc: Mark Rutland, Boris Brezillon, devicetree, Richard Weinberger,
	Marek Vasut, Rob Herring, Joel Stanley, Cyrille Pitchen,
	Brian Norris, David Woodhouse, Cédric Le Goater

Hello,

Here is a series introducing a new driver for the different memory
controllers of the Aspeed AST2500 and AST2400 SoCs. Each SoC has at
least a memory controller for the BMC firmware and another one for the
host firmware. The register set are mostly compatible but there are
some slight differences on the AST2400.

The driver only supports SPI type flash.

Tested on:

 * OpenPOWER Palmetto (AST2400) with
 	FMC controller : n25q256a
	SPI controller : mx25l25635e and n25q512ax3

 * Evaluation board (AST2500) with
 	FMC controller : w25q256 
	SPI controller : w25q256

 * OpenPOWER Witherspoon (AST2500) with
 	FMC controller : mx25l25635e * 2
	SPI controller : mx66l1g45g

Changes since v3:
 - reworked IO routines to use io{read,write}32_rep
 - changed config option to SPI_ASPEED_SMC
 - fixed aspeed_smc_chip_setup_init() returned value

Changes since v2:
 - splitted patch to distinguish AST2400 and AST2500 controllers
 - fixed controller names
 - introduced prepare/unprepare ops
 - introduced a aspeed_smc_setup_flash() routine
 - various cleanups

Changes since v1:
 - added a set4b ops to handle difference in the controllers
 - simplified the IO routines
 - prepared for fast read using dummy cycles

Work in progress:
 - read optimization using higher SPI clock frequencies
 - command mode to direct reads from AHB
 - DMA support

Thanks,

C.

Cédric Le Goater (4):
  mtd: spi-nor: add memory controllers for the Aspeed AST2500 SoC
  mtd: aspeed: add memory controllers for the Aspeed AST2400 SoC
  mtd: spi-nor: bindings for the Aspeed memory controllers
  mtd: spi-nor: add a label property to jedec,spi-nor

 .../devicetree/bindings/mtd/aspeed-smc.txt         |  51 ++
 .../devicetree/bindings/mtd/jedec,spi-nor.txt      |   2 +
 drivers/mtd/spi-nor/Kconfig                        |  10 +
 drivers/mtd/spi-nor/Makefile                       |   1 +
 drivers/mtd/spi-nor/aspeed-smc.c                   | 752 +++++++++++++++++++++
 5 files changed, 816 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mtd/aspeed-smc.txt
 create mode 100644 drivers/mtd/spi-nor/aspeed-smc.c

-- 
2.7.4


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

end of thread, other threads:[~2017-01-06 10:23 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-12 15:40 [PATCH v4 0/4] Static memory controllers for the Aspeed SoC Cédric Le Goater
2016-12-12 15:40 ` [PATCH v4 1/4] mtd: spi-nor: add memory controllers for the Aspeed AST2500 SoC Cédric Le Goater
     [not found]   ` <1481557252-13656-2-git-send-email-clg-Bxea+6Xhats@public.gmane.org>
2016-12-13  7:50     ` Marek Vasut
2016-12-13 12:22       ` Cédric Le Goater
2016-12-15 23:15   ` Cyrille Pitchen
     [not found]     ` <5566c62d-cc72-f207-e1dd-5a59e6947c24-yU5RGvR974pGWvitb5QawA@public.gmane.org>
2016-12-16 14:56       ` Cédric Le Goater
     [not found]         ` <a7cb781c-a4a8-f0f7-e7db-5cd9f19da0aa-Bxea+6Xhats@public.gmane.org>
2016-12-20 15:17           ` Cyrille Pitchen
2016-12-21 16:47             ` Cédric Le Goater
     [not found]               ` <645db8c4-7f3c-f8bf-ddd9-3f513ce2ed14-Bxea+6Xhats@public.gmane.org>
2017-01-04 14:52                 ` Cyrille Pitchen
     [not found]                   ` <4c5cf674-06f9-ad6b-05bf-a1d39aaa7ed5-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
2017-01-04 17:50                     ` Boris Brezillon
2017-01-05 13:39                       ` Cédric Le Goater
     [not found]                         ` <4c0b4498-12c7-303d-c8f8-4f27a02d6c12-Bxea+6Xhats@public.gmane.org>
2017-01-06  8:49                           ` Boris Brezillon
2017-01-06 10:04                             ` Cédric Le Goater
2017-01-06 10:23                               ` Boris Brezillon
2016-12-12 15:40 ` [PATCH v4 2/4] mtd: aspeed: add memory controllers for the Aspeed AST2400 SoC Cédric Le Goater
     [not found] ` <1481557252-13656-1-git-send-email-clg-Bxea+6Xhats@public.gmane.org>
2016-12-12 15:40   ` [PATCH v4 3/4] mtd: spi-nor: bindings for the Aspeed memory controllers Cédric Le Goater
     [not found]     ` <1481557252-13656-4-git-send-email-clg-Bxea+6Xhats@public.gmane.org>
2016-12-12 23:43       ` Joel Stanley
2016-12-13 19:45       ` Rob Herring
2016-12-12 15:40   ` [PATCH v4 4/4] mtd: spi-nor: add a label property to jedec,spi-nor Cédric Le Goater
     [not found]     ` <1481557252-13656-5-git-send-email-clg-Bxea+6Xhats@public.gmane.org>
2016-12-13 19:46       ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).