U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] spi: support devices with no wire in one direction
@ 2026-08-21 11:54 Cole Munz
  2026-08-21 11:55 ` [PATCH v4 1/2] spi: Handle spi-{tx, rx}-bus-width 0 as SPI_NO_TX/SPI_NO_RX Cole Munz
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Cole Munz @ 2026-08-21 11:54 UTC (permalink / raw)
  To: u-boot
  Cc: Tom Rini, Quentin Schulz, Quentin Schulz, Kever Yang, Simon Glass,
	Dario Binacchi, Boon Khai Ng, Alexey Charkov

The Flipper One display bus has no MISO wire; the pin is the
end-of-frame GPIO. Patch 1 maps spi-{tx,rx}-bus-width = <0> to
SPI_NO_TX/SPI_NO_RX and validates transfers against the bits in
dm_spi_xfer(). Patch 2 has the Rockchip driver pick its transfer mode
from them so the unused FIFO stays out of the transfer. Background is
in the v2 cover letter:

https://lore.kernel.org/all/cover.1787238071.git.Munzzyy1@proton.me/

Changes in v4, both from the comment discussion with Quentin:
- toread comment cut down to the one factual sentence
- the comment above rkspi_wait_till_not_busy() now says why the wait
  matters: the TX FIFO can still hold unsent data and disabling the
  controller clears the FIFOs
- patch 1 unchanged, carries the Acked-by

Cole Munz (2):
  spi: Handle spi-{tx,rx}-bus-width 0 as SPI_NO_TX/SPI_NO_RX
  spi: rockchip: skip the unused FIFO direction on a one-wire device

 drivers/spi/rk_spi.c     | 33 ++++++++++++++++++++++++++-------
 drivers/spi/spi-uclass.c | 16 ++++++++++++++++
 include/spi.h            |  2 ++
 test/dm/spi.c            | 39 +++++++++++++++++++++++++++++++++++++++
 4 files changed, 83 insertions(+), 7 deletions(-)


base-commit: 527115ef6783cec49e5610c523c124b399011361
-- 
2.55.0



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

end of thread, other threads:[~2026-08-29 12:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-21 11:54 [PATCH v4 0/2] spi: support devices with no wire in one direction Cole Munz
2026-08-21 11:55 ` [PATCH v4 1/2] spi: Handle spi-{tx, rx}-bus-width 0 as SPI_NO_TX/SPI_NO_RX Cole Munz
2026-08-21 11:55 ` [PATCH v4 2/2] spi: rockchip: skip the unused FIFO direction on a one-wire device Cole Munz
2026-08-21 14:45   ` Quentin Schulz
2026-08-29 12:10 ` [PATCH v4 0/2] spi: support devices with no wire in one direction Quentin Schulz

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