linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] Dual stacked/parallel memories bindings
@ 2021-11-12 15:24 Miquel Raynal
  2021-11-12 15:24 ` [RFC PATCH 1/3] spi: dt-bindings: Allow describing flashes with two CS Miquel Raynal
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Miquel Raynal @ 2021-11-12 15:24 UTC (permalink / raw)
  To: Tudor Ambarus, Pratyush Yadav, Michael Walle, Rob Herring,
	Mark Brown
  Cc: linux-mtd, Richard Weinberger, Vignesh Raghavendra,
	Thomas Petazzoni, Michal Simek, Miquel Raynal

Hello Rob, Mark, Tudor & Pratyush,

Here is an RFC to open the discussion about the sensitive task of
supporting specific SPI controller modes like Xilinx's where the
controller can highly abstract the hardware and provide access to a
single bigger device instead. I'll let you go through the series and
tell me what you think.

I think there are two possible approaches:
1- Describe the two devices as being a single one which is what we will
   get from the controller anyway (implies supporting two CS per SPI
   device)
or
2- Describe the two devices in the device tree and then by software hack
   into the MTD core to simulate a single device to talk to.

I have looked at the code, there is no good solution, but #2 definitely
looks horribly complicated and subject to a lot of corner cases to
handle, hence this proposal to go for solution #1.

Cheers,
Miquèl

Miquel Raynal (3):
  spi: dt-bindings: Allow describing flashes with two CS
  dt-binding: mtd: spi-nor: Allow two CS per device
  spi: dt-bindings: zynqmp: Describe dual stacked/parallel memories
    modes

 .../bindings/mtd/jedec,spi-nor.yaml           |  2 +-
 .../bindings/spi/spi-controller.yaml          |  6 ++--
 .../bindings/spi/spi-zynqmp-qspi.yaml         | 31 +++++++++++++++++++
 scripts/dtc/checks.c                          | 24 ++++++++------
 4 files changed, 50 insertions(+), 13 deletions(-)

-- 
2.27.0


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

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

end of thread, other threads:[~2021-11-26 15:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-12 15:24 [RFC PATCH 0/3] Dual stacked/parallel memories bindings Miquel Raynal
2021-11-12 15:24 ` [RFC PATCH 1/3] spi: dt-bindings: Allow describing flashes with two CS Miquel Raynal
2021-11-12 16:52   ` Rob Herring
2021-11-16  8:21     ` Miquel Raynal
2021-11-12 15:24 ` [RFC PATCH 2/3] dt-binding: mtd: spi-nor: Allow two CS per device Miquel Raynal
2021-11-12 16:53   ` Rob Herring
2021-11-12 15:24 ` [RFC PATCH 3/3] spi: dt-bindings: zynqmp: Describe dual stacked/parallel memories modes Miquel Raynal
2021-11-12 15:42   ` Mark Brown
2021-11-16  8:23     ` Miquel Raynal
2021-11-15 10:23 ` [RFC PATCH 0/3] Dual stacked/parallel memories bindings Pratyush Yadav
2021-11-16  8:19   ` Miquel Raynal
2021-11-19 19:00     ` Pratyush Yadav
2021-11-26 15:05       ` Miquel Raynal

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