From: Boris Brezillon <boris.brezillon@bootlin.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v10 03/27] mtd: add SPI-NOR core support
Date: Wed, 28 Feb 2018 13:10:21 +0100 [thread overview]
Message-ID: <20180228131021.11784256@bbrezillon> (raw)
In-Reply-To: <HE1PR04MB1241F22DD2232BC1D8306EE497C70@HE1PR04MB1241.eurprd04.prod.outlook.com>
Prabhakar, Jagan,
On Wed, 28 Feb 2018 09:42:11 +0000
Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> wrote:
> [Resending on correct patch of the patch-set]
>
> Dear Jagan,
>
>
> > -----Original Message-----
> > From: U-Boot [mailto:u-boot-bounces at lists.denx.de] On Behalf Of
> > Jagan Teki
> > Sent: Thursday, December 28, 2017 11:42 AM
> > To: u-boot at lists.denx.de
> > Cc: Tom Rini <trini@konsulko.com>
> > Subject: [U-Boot] [PATCH v10 03/27] mtd: add SPI-NOR core support
> >
> > Some of the SPI device drivers at drivers/spi not a real spi
> > controllers, Unlike normal/generic SPI controllers they operates
> > only with SPI-NOR flash devices. these were technically termed as
> > SPI-NOR controllers, Ex: drivers/spi/fsl_qspi.c
Okay, I've been working a bit with this controller, and can say it's
not quite true. This controller supports any kind of device that
expects memory-like operations (or whatever you want to call them),
that is, everything that is formed of one opcode, X address cycles, Y
dummy cycles and Z data in/out cycles (X, Y and Z can be zero).
Actually, I even think it could support regular SPI transfers, all we'd
have to do is use READ/WRITE instructions to do the transfers.
> >
> > The problem with these were resides at drivers/spi is entire SPI
> > layer becomes SPI-NOR flash oriented which is absolutely a wrong
> > indication where SPI layer getting effected more with flash
> > operations - So this SPI-NOR core will resolve this issue by
> > separating all SPI-NOR flash operations from spi layer and creats a
> > generic layer called SPI-NOR core which can be used to interact
> > SPI-NOR to SPI driver interface layer and the SPI-NOR controller
> > driver. The idea is taken from Linux spi-nor framework.
I've discussed it privately with Cyrille before I sent the spi-mem
extension proposal, and he seemed to agree with the approach. I don't
know what his opinion is now that the RFC has been posted, but if he
hasn't changed his mind, that means Linux implementation is going in
the opposite direction. So it's probably worth reconsidering this move.
Cyrille, could you clarify your opinion? I'm also waiting your feedback
on the RFC to send a v2 addressing the comments I had from other people.
> >
> > =======================================
> > cmd/spinor.c
> > =======================================
> > mtd-uclass.c
> > =======================================
> > spi-nor-uclass.c
> > =======================================
> > spi-nor.c
> > =======================================
> > m25p80.c zynq_qspinor.c
> > =======================================
> > spi-uclass.c
> > =======================================
> > zynq_qspi.c
> > =======================================
> > #####SPI NOR chip######
> > =======================================
> >
>
> As per this patch-set, fsl_qspi is looks to be getting proposed in
> driver/mtd/spi-nor/ folder.
>
> fsl_qspi is supporting both flash and fpga. We are not sure about
> its location.
>
> There is an on-going effort for similar type of requirement in Linux
> by Boris Brezillon . It is dealing with controllers supporting NORs,
> NANDs, SRAMs etc.
> http://patchwork.ozlabs.org/project/linux-mtd/list/?series=27088
>
> Borris has also ported fsl_qspi in driver/spi to use this new
> framework. It is still not completely tested.
> https://github.com/bbrezillon/linux/commit/43cc45764b975bfbb191de3f6a37e073da1a2706
>
>
> Will you also follow similar approach as being done in
> http://patchwork.ozlabs.org/project/linux-mtd/list/?series=27088 for
> longer term?
That would be great if the code base could converge.
Regards,
Boris
--
Boris Brezillon, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2018-02-28 12:10 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-28 6:12 [U-Boot] [PATCH v10 00/27] dm: Generic MTD Subsystem, with SPI-NOR interface Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 01/27] mtd: Add mtd core ops Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 02/27] mtd: add mtd device create operations Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 03/27] mtd: add SPI-NOR core support Jagan Teki
2017-12-29 9:25 ` Andy Yan
2018-01-02 10:18 ` Prabhakar Kushwaha
2018-01-02 10:31 ` Jagan Teki
2018-01-03 8:49 ` Vignesh R
2018-01-03 9:32 ` Jagan Teki
2018-01-03 9:56 ` Vignesh R
2018-01-03 10:07 ` Jagan Teki
2018-01-04 2:33 ` Andy Yan
2018-02-28 9:42 ` Prabhakar Kushwaha
2018-02-28 12:10 ` Boris Brezillon [this message]
2018-03-06 5:59 ` Prabhakar Kushwaha
2018-03-06 6:38 ` Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 04/27] mtd: spi-nor: sync/modify sst write operations Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 05/27] mtd: spi-nor: sync/modify lock operations Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 06/27] mtd: spi-nor: Kconfig: Add MTD_SPI_NOR entry Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 07/27] mtd: spi-nor: Kconfig: Add MTD_SPI_NOR_USE_4K_SECTORS Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 08/27] mtd: spi-nor: Kconfig: Add SPI_NOR_MISC entry Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 09/27] mtd: spi-nor: Kconfig: Add SPI_NOR_MACRONIX entry Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 10/27] mtd: spi-nor: Kconfig: Add SPI_NOR_SPANSION entry Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 11/27] mtd: spi-nor: Kconfig: Add SPI_NOR_STMICRO entry Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 12/27] mtd: spi-nor: Kconfig: Add SPI_NOR_SST entry Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 13/27] mtd: spi-nor: Kconfig: Add SPI_NOR_WINBOND entry Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 14/27] mtd-uclass: use platdata_auto_alloc Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 15/27] spi: Add spi_write_then_read Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 16/27] mtd: spi-nor: Add m25p80 driver Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 17/27] mtd: spi-nor: Kconfig: Add MTD_M25P80 entry Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 18/27] mtd: spi-nor: Add zynq qspinor driver Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 19/27] mtd: spi-nor: zynq_qspi: Kconfig: Add MTD_ZYNQ Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 20/27] mtd: spi-nor: Add 4-byte addresswidth support Jagan Teki
2017-12-28 8:06 ` Cyrille Pitchen
2017-12-28 8:08 ` Cyrille Pitchen
2017-12-28 6:12 ` [U-Boot] [PATCH v10 21/27] cmd: add spinor cmd support Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 22/27] cmd: spinor: sync/update protect command Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 23/27] board_r: initialize spi_nor Jagan Teki
2018-01-08 3:52 ` Simon Glass
2017-12-28 6:12 ` [U-Boot] [PATCH v10 24/27] env: add spi-nor environment Jagan Teki
2018-01-04 7:06 ` Prabhakar Kushwaha
2017-12-28 6:12 ` [U-Boot] [PATCH v10 25/27] arm: dts: zynq: Add zynq-qspinor node Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 26/27] dm: zynq: microzed: enable MTD/SPI-NOR framework Jagan Teki
2017-12-28 6:12 ` [U-Boot] [PATCH v10 27/27] test: dm: add tests for mtd devices Jagan Teki
2017-12-28 14:44 ` [U-Boot] [PATCH v10 00/27] dm: Generic MTD Subsystem, with SPI-NOR interface Lukasz Majewski
2018-01-02 10:09 ` Jagan Teki
2018-01-03 8:48 ` Vignesh R
2018-01-03 9:24 ` Jagan Teki
2018-01-03 10:59 ` Lukasz Majewski
2018-01-31 8:07 ` Andy Yan
2018-01-04 11:52 ` Vignesh R
2018-01-23 9:50 ` Siva Durga Prasad Paladugu
2018-01-23 9:59 ` Jagan Teki
2018-01-23 11:50 ` Siva Durga Prasad Paladugu
2018-01-23 9:00 ` Siva Durga Prasad Paladugu
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=20180228131021.11784256@bbrezillon \
--to=boris.brezillon@bootlin.com \
--cc=u-boot@lists.denx.de \
/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