mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Cyrille Pitchen <cyrille.pitchen@atmel.com>
To: <marek.vasut@gmail.com>
Cc: <computersforpeace@gmail.com>,
	<boris.brezillon@free-electrons.com>, <richard@nod.at>,
	<linux-mtd@lists.infradead.org>, <linux-kernel@vger.kernel.org>,
	Cyrille Pitchen <cyrille.pitchen@atmel.com>
Subject: [PATCH 0/3] mtd: spi-nor: add support to SPI 1-2-2 and SPI 1-4-4 protocols
Date: Wed, 25 Jan 2017 18:49:25 +0100	[thread overview]
Message-ID: <cover.1485365439.git.cyrille.pitchen@atmel.com> (raw)

Hi all,

this series of patches updates the spi-nor framework to add support to
more SPI protocols. Also the 3rd argument of spi_nor_scan() is changed so
we can now make the difference between read and write operations.
Indeed some SPI controllers may support Quad SPI protocols only for read
operations but not for write operations.

The new argument is designed so SPI controller drivers can precisely
describe their hardware capabilies to the spi-nor framework. In turn, this
framework selects the right SPI protocols, op code, number of dummy cycles
and so on for (Fast) Read and Page Program commands by computing the best
match between the SPI memory and controller hardware capabilities.

Please note that a spi_nor_basic_flash_parameter structure is also
introduced by this series. It's used to describe the hardware capabilities
and requirements of SPI memories. The structure fields are based on what
can be read from the SFDP Basic Flash Parameter table of the JESD216B
specification. Indeed this series of patch is also a base for a further
series which will add support to the SFDP tables in the spi-nor framework.

This series is based on the next branch of the spi-nor tree.

Best regards,

Cyrille

Cyrille Pitchen (3):
  mtd: spi-nor: add support of SPI protocols like SPI 1-2-2 and SPI
    1-4-4
  mtd: spi-nor: remove unused set_quad_mode() function
  mtd: m25p80: add support of SPI 1-2-2 and 1-4-4 protocols

 drivers/mtd/devices/m25p80.c          | 133 +++++++++++----
 drivers/mtd/spi-nor/aspeed-smc.c      |  22 +--
 drivers/mtd/spi-nor/atmel-quadspi.c   |  82 ++++++----
 drivers/mtd/spi-nor/cadence-quadspi.c |  18 ++-
 drivers/mtd/spi-nor/fsl-quadspi.c     |   8 +-
 drivers/mtd/spi-nor/hisi-sfc.c        |  31 +++-
 drivers/mtd/spi-nor/intel-spi.c       |   6 +-
 drivers/mtd/spi-nor/mtk-quadspi.c     |  16 +-
 drivers/mtd/spi-nor/nxp-spifi.c       |  21 +--
 drivers/mtd/spi-nor/spi-nor.c         | 295 +++++++++++++++++++++++++---------
 include/linux/mtd/spi-nor.h           | 163 +++++++++++++++++--
 11 files changed, 604 insertions(+), 191 deletions(-)

-- 
2.7.4

             reply	other threads:[~2017-01-25 17:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-25 17:49 Cyrille Pitchen [this message]
2017-01-25 17:49 ` [PATCH 1/3] mtd: spi-nor: add support of SPI protocols like SPI 1-2-2 and SPI 1-4-4 Cyrille Pitchen
2017-01-25 17:49 ` [PATCH 2/3] mtd: spi-nor: remove unused set_quad_mode() function Cyrille Pitchen
2017-01-25 17:49 ` [PATCH 3/3] mtd: m25p80: add support of SPI 1-2-2 and 1-4-4 protocols Cyrille Pitchen

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=cover.1485365439.git.cyrille.pitchen@atmel.com \
    --to=cyrille.pitchen@atmel.com \
    --cc=boris.brezillon@free-electrons.com \
    --cc=computersforpeace@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=marek.vasut@gmail.com \
    --cc=richard@nod.at \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®