public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* SPI loopback tests
@ 2026-03-10 13:32 Francesco Dolcini
  2026-03-10 15:55 ` Mark Brown
  2026-03-11 16:27 ` Krzysztof Kozlowski
  0 siblings, 2 replies; 8+ messages in thread
From: Francesco Dolcini @ 2026-03-10 13:32 UTC (permalink / raw)
  To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-spi, devicetree, Max Krummenacher

Hello all,

I am writing to you SPI, test and DT people with reference to some need
we see in our testing infrastructure.

On our embedded boards we regularly (on mailine linux, on Linux LTS, and
on multiple hardware) run SPI tests, using a loopback connection (SPI
MISO/MOSI are connected together). The HW provide just some pin header
and there is no actual SPI slave device connected.

So far to test this we had some out-of-tree DT overlay abusing the spidev
compatible, however we'd like to move away from this approach and have a
solution that is 100% in mainline.

Manually unbinding/binding the driver in userspace does not seems as an
option, because there is no device node.

One option that I could think of would be to add a new compatible that
to describe this single wire loopback connection (something like
`linux,spi-miso-mosi-loopback`) that would bind to the spidev driver.

I am aware that you all DT maintainers shared in a pretty clear way your
view on the abuse of the spidev multiple times.

What would you be your advice to handle the need of an SPI loopback
test? Am I missing something and there is a solution already available?

Thanks in advance,
Francesco



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

end of thread, other threads:[~2026-03-11 16:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-10 13:32 SPI loopback tests Francesco Dolcini
2026-03-10 15:55 ` Mark Brown
2026-03-10 18:12   ` Conor Dooley
2026-03-10 18:26     ` Mark Brown
2026-03-11 10:10       ` Conor Dooley
2026-03-11 11:16         ` Mark Brown
2026-03-11 13:58           ` Conor Dooley
2026-03-11 16:27 ` Krzysztof Kozlowski

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