devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 00/10] Add memory mapped support for ti qspi, m25p80 serial flash.
@ 2013-12-06 14:24 Sourav Poddar
  2013-12-06 14:24 ` [PATCHv2 01/10] spi/spi.h: Add get_buf/put_buf support in spi master Sourav Poddar
                   ` (9 more replies)
  0 siblings, 10 replies; 37+ messages in thread
From: Sourav Poddar @ 2013-12-06 14:24 UTC (permalink / raw)
  To: broonie-DgEjT+Ai2ygdnm+yROfE0A, linux-spi-u79uwXL29TY76Z2rM5mHXA,
	computersforpeace-Re5JQEeQqe8AvxtiuMwx3w, marex-ynQEQJNshbs
  Cc: dwmw2-wEGCiKHe2LqWVfeAwA7xHQ,
	linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	bcousson-rdvid1DuHRBWk0Htik3J/w, balbi-l0cyMroinI0, Sourav Poddar

The patch series aims to add memory mapped support for TI qspi
contoller and also add support for the same in serial flash driver(m25p80).

These feature was added as a part of the series[1]:
The series[1] add support for quad and memory mapped feature in spi and
flash driver. Based on Brian Norris suggestion on splitting the quad and 
memory mapped feature, I had sent a seperate series for quad support which 
has beed accepted by Brian.

The $subject patch series takes care of the memory mapped part.  

Overview of memory mapped support in qspi:
 TI qspi controller supports memory mapped read support, switching to which
 requires  register modifications(qspi registers, control module register for
 DRA, qspi register for am43x). Once switched, the flash data can be available
 at a soc specific memory mapped address. For operations in normal mode, we need 
 to keep memory mapped disable.

 Flow of the patch is to keep the memory mapped enable by default in the driver.
 Whenever Normal spi mode operations are desired, we switch to configuration mode
 and at the end of it memory mapped is again enabled. There are few function pointers
 added to fecilitate easy communication between the flash and spi controllers.

Major changes in the $subject patch based on discussion in [1]:

- Feature has been broken down into small meaningfl patches.
- memcpy is done in flash driver and spi framework is bypassed.
- configuration of memory mapped spi controller regsiters is done
  through function calls from flash side.

[1]: http://lists.infradead.org/pipermail/linux-mtd/2013-October/049058.html

v1->v2:
 Mentioned on individual patches.
Overall change is the squashing of few patches.


v1:
https://patchwork.kernel.org/patch/3237091/

Tested on DRA7 board with spansion S25FL256S flash along with some
internal irq crossbar patches.
Tested on AM437x epos evm with macronix MX66l51235l flash.

Testing done:
-Erase the whole flash.
-write to the flash
-read back the flash
- compare the data


Sourav Poddar (10):
  spi/spi.h: Add get_buf/put_buf support in spi master..
  spi/qspi: parse register by name.
  spi/qspi: Add support to switc to memory mapped operation.
  spi/qspi: configure set up register for memory map..
  spi/qspi: Add api for get_buf/put_buf.
  drivers: mtd: m25p80: Add api to configure master register.
  drivers: mtd: m25p80: Adapt driver to support memory mapped read.
  Documentation: bindings: ti-qspi: update binding information.
  arm: dts: dra7: Add qspi device.
  arm: dts: am43x-epos: Add qspi device.

 Documentation/devicetree/bindings/spi/ti_qspi.txt |    8 +-
 arch/arm/boot/dts/am4372.dtsi                     |   12 ++
 arch/arm/boot/dts/am43x-epos-evm.dts              |   28 +++++
 arch/arm/boot/dts/dra7-evm.dts                    |   32 +++++
 arch/arm/boot/dts/dra7.dtsi                       |   13 ++
 drivers/mtd/devices/m25p80.c                      |   38 ++++++
 drivers/spi/spi-ti-qspi.c                         |  130 ++++++++++++++++++++-
 include/linux/spi/spi.h                           |   22 ++++
 8 files changed, 280 insertions(+), 3 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2013-12-19 13:34 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-06 14:24 [PATCHv2 00/10] Add memory mapped support for ti qspi, m25p80 serial flash Sourav Poddar
2013-12-06 14:24 ` [PATCHv2 01/10] spi/spi.h: Add get_buf/put_buf support in spi master Sourav Poddar
     [not found]   ` <1386339891-32717-2-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
2013-12-19 13:31     ` Mark Brown
2013-12-06 14:24 ` [PATCHv2 02/10] spi/qspi: parse register by name Sourav Poddar
2013-12-19 13:34   ` Mark Brown
2013-12-06 14:24 ` [PATCHv2 03/10] spi/qspi: Add support to switc to memory mapped operation Sourav Poddar
     [not found]   ` <1386339891-32717-4-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
2013-12-10 12:54     ` Marek Vasut
2013-12-06 14:24 ` [PATCHv2 04/10] spi/qspi: configure set up register for memory map Sourav Poddar
     [not found]   ` <1386339891-32717-5-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
2013-12-10 12:57     ` Marek Vasut
     [not found]       ` <201312101357.54874.marex-ynQEQJNshbs@public.gmane.org>
2013-12-10 17:13         ` Sourav Poddar
     [not found] ` <1386339891-32717-1-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
2013-12-06 14:24   ` [PATCHv2 05/10] spi/qspi: Add api for get_buf/put_buf Sourav Poddar
     [not found]     ` <1386339891-32717-6-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
2013-12-10 12:58       ` Marek Vasut
2013-12-10 17:10         ` Sourav Poddar
2013-12-06 14:24   ` [PATCHv2 07/10] drivers: mtd: m25p80: Adapt driver to support memory mapped read Sourav Poddar
     [not found]     ` <1386339891-32717-8-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
2013-12-12  7:55       ` Huang Shijie
2013-12-12  8:15         ` Sourav Poddar
2013-12-12  8:31           ` Huang Shijie
2013-12-06 14:24 ` [PATCHv2 06/10] drivers: mtd: m25p80: Add api to configure master register Sourav Poddar
2013-12-06 14:24 ` [PATCHv2 08/10] Documentation: bindings: ti-qspi: update binding information Sourav Poddar
2013-12-19 13:34   ` Mark Brown
2013-12-06 14:24 ` [PATCHv2 09/10] arm: dts: dra7: Add qspi device Sourav Poddar
     [not found]   ` <1386339891-32717-10-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
2013-12-09 17:42     ` Tony Lindgren
     [not found]       ` <20131209174203.GB12527-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2013-12-10  4:25         ` Sourav Poddar
2013-12-10 10:31           ` Mark Brown
2013-12-10 10:45             ` Sourav Poddar
2013-12-12  4:20             ` Sourav Poddar
2013-12-06 14:24 ` [PATCHv2 10/10] arm: dts: am43x-epos: " Sourav Poddar
2013-12-10 12:49 ` [PATCHv2 00/10] Add memory mapped support for ti qspi, m25p80 serial flash Marek Vasut
     [not found]   ` <201312101349.13564.marex-ynQEQJNshbs@public.gmane.org>
2013-12-10 16:11     ` Mark Brown
     [not found]       ` <20131210161143.GK29268-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-12-10 18:22         ` Marek Vasut
2013-12-10 18:29           ` Mark Brown
2013-12-10 18:34             ` Marek Vasut
     [not found]             ` <20131210182904.GG11468-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-12-11  4:37               ` Sourav Poddar
     [not found]           ` <201312101922.10618.marex-ynQEQJNshbs@public.gmane.org>
2013-12-11  4:19             ` Sourav Poddar
2013-12-11  4:18     ` Sourav Poddar
     [not found]       ` <52A7E7A5.5000909-l0cyMroinI0@public.gmane.org>
2013-12-11 10:44         ` Marek Vasut
2013-12-11 12:01           ` Mark Brown

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).