public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/4] mtd/spi-mem: Enable DQS support
@ 2026-02-05 19:06 Miquel Raynal
  2026-02-05 19:06 ` [PATCH RFC 1/4] spi: spi-mem: Flag DQS capability Miquel Raynal
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Miquel Raynal @ 2026-02-05 19:06 UTC (permalink / raw)
  To: Mark Brown, Richard Weinberger, Vignesh Raghavendra
  Cc: Thomas Petazzoni, praneeth, u-kumar1, p-mantena, a-dutta, s-k6,
	linux-spi, linux-kernel, linux-mtd, Miquel Raynal

For his PHY tuning series on the Cadence QSPI controller embedded in TI
SoCs, Santhosh needs to access the availability of the DQS (data strobe)
signal. This is a chip dependent capability, which may sometimes be
enabled.

Create a SPI memory flag for it, let the SPI NAND core set this flag
when it knows about the capability, and show how to use it from a SPI
controller driver.

This is an alternative at needing a DT property. Please note that there
are a few blind spots:
- the line may not be wired (this would be surprising, but can be
  flagged this time by a DT property)
- manufacturer drivers must enable the feature if it is
  available (especially for high speed DTR modes)
- this implementation is proposed for SPI NANDs only, if this proposal
  is accepted the same approach must be taken in SPI NOR.

Here is the original thread which lead to this series:
https://lore.kernel.org/linux-spi/87v7gbdwdh.fsf@bootlin.com/T/#ma79fc364d7b882a48dbdf47203dde75df4bb0ec4

This series was compile tested only at this stage. As DDR tuning does
not yet work on my board, I cannot make sure this change has a real
impact.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
Miquel Raynal (4):
      spi: spi-mem: Flag DQS capability
      mtd: spi-nand: Set the DQS spi-mem capability if available
      mtd: spi-nand: winbond: Enable the DQS pin on W35N**JW series
      [DO NOT MERGE] spi: cadence-qspi: Retrieve DQS capability using the core helper

 drivers/mtd/nand/spi/core.c       |  4 ++++
 drivers/mtd/nand/spi/winbond.c    |  8 ++++----
 drivers/spi/spi-cadence-quadspi.c |  8 ++++++--
 drivers/spi/spi-mem.c             | 32 ++++++++++++++++++++++++++++++++
 include/linux/mtd/spinand.h       |  1 +
 include/linux/spi/spi-mem.h       |  4 ++++
 6 files changed, 51 insertions(+), 6 deletions(-)
---
base-commit: c5884449d02575c7984000eb30d2a2971c7dfcc7
change-id: 20260205-winbond-nand-next-phy-tuning-aabefc018032

Best regards,
-- 
Miquel Raynal <miquel.raynal@bootlin.com>


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

end of thread, other threads:[~2026-02-10 10:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-05 19:06 [PATCH RFC 0/4] mtd/spi-mem: Enable DQS support Miquel Raynal
2026-02-05 19:06 ` [PATCH RFC 1/4] spi: spi-mem: Flag DQS capability Miquel Raynal
2026-02-05 19:11   ` Mark Brown
2026-02-06  8:27     ` Miquel Raynal
2026-02-05 19:06 ` [PATCH RFC 2/4] mtd: spi-nand: Set the DQS spi-mem capability if available Miquel Raynal
2026-02-05 19:07 ` [PATCH RFC 3/4] mtd: spi-nand: winbond: Enable the DQS pin on W35N**JW series Miquel Raynal
2026-02-05 19:07 ` [PATCH DO NOT MERGE RFC 4/4] spi: cadence-qspi: Retrieve DQS capability using the core helper Miquel Raynal
2026-02-06 19:32 ` [PATCH RFC 0/4] mtd/spi-mem: Enable DQS support Santhosh Kumar K
2026-02-10 10:23   ` Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox