[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1438592707-30713-1-git-send-email-ranjit.waghmode@xilinx.com>
Date: Mon, 3 Aug 2015 14:35:05 +0530
From: Ranjit Waghmode <ranjit.waghmode@...inx.com>
To: <dwmw2@...radead.org>, <computersforpeace@...il.com>,
<broonie@...nel.org>, <michal.simek@...inx.com>,
<soren.brinkmann@...inx.com>, <zajec5@...il.com>,
<ben@...adent.org.uk>, <marex@...x.de>, <b32955@...escale.com>,
<knut.wohlrab@...bosch.com>, <juhosg@...nwrt.org>,
<beanhuo@...ron.com>
CC: <linux-mtd@...ts.infradead.org>, <linux-kernel@...r.kernel.org>,
<linux-spi@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <harinik@...inx.com>,
<punnaia@...inx.com>, <ranjitw@...inx.com>, <ran27jit@...il.com>,
Ranjit Waghmode <ranjit.waghmode@...inx.com>
Subject: [LINUX RFC 0/2] spi: add dual parallel mode support in Zynq MPSoC GQSPI controller
This series is to add dual parallel mode support for Zynq Ultrascale+ MPSoC GQSPI controller driver.
What is dual parallel mode?
---------------------------
ZynqMP GQSPI controller supports Dual Parallel mode with following functionalities:
1) Supporting two SPI flash memories operating in parallel. 8 I/O lines.
2) Chip selects and clock are shared to both the flash devices
3) This mode is targeted for faster read/write speed and also doubles the size
4) Commands/data can be transmitted/received from both the devices(mirror),
or only upper or only lower flash memory devices.
5) Data arrangement:
With stripe enabled,
Even bytes i.e. 0, 2, 4,... are transmitted on Lower Data Bus
Odd bytes i.e. 1, 3, 5,.. are transmitted on Upper Data Bus.
This series also updated MTD layer files for adding parallel mode support.
MTD layer dependency changes:
-----------------------------
1) Added Support for two flashes
2) Support to enable/disable data stripe as and when required.
3) Added required parameters to spi_nor structure. Initialized all
added parameters in spi_nor_scan()
4) Added support for dual parallel in spi_nor_read/write/erase functions by:
a) Increasing page_size, sector_size, erase_size and toatal flash size
as and when required.
b) Dividing address by 2
c) Updating spi->master->flags for qspi driver to change CS
5) Updated read_sr() to get status of both flashes
6) Also updated read_fsr() to get status of both flashes
These all are very high level changes and expected to make an idea clear.
Comments and suggestions are always welcomed.
Ranjit Waghmode (2):
mtd: spi-nor: add dual parallel mode support
spi: zynqmp: gqspi: add support for dual parallel mode configuration
drivers/mtd/devices/m25p80.c | 1 +
drivers/mtd/spi-nor/spi-nor.c | 92 +++++++++++++++++++++++++++++++++---------
drivers/spi/spi-zynqmp-gqspi.c | 24 ++++++++++-
include/linux/mtd/spi-nor.h | 3 ++
include/linux/spi/spi.h | 2 +
5 files changed, 102 insertions(+), 20 deletions(-)
--
2.1.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists