mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2 v2] spi: add SPI_MOSI_IDLE_LOW support from device tree
@ 2026-03-29 12:57 charles-antoine.couret
  2026-03-29 14:25 ` Marcelo Schmitt
  0 siblings, 1 reply; 5+ messages in thread
From: charles-antoine.couret @ 2026-03-29 12:57 UTC (permalink / raw)
  To: broonie; +Cc: linux-spi, linux-kernel, Charles-Antoine Couret

From: Charles-Antoine Couret <charles-antoine.couret@mind.be>

This flag was introduced but was not added as device tree property which is
limiting the possibility to use this flag on real devices.

This flag can be configured as done for other flags.

Signed-off-by: Charles-Antoine Couret <charles-antoine.couret@mind.be>
---
 drivers/spi/spi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 9b1125556d29..489a64e20305 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -2363,6 +2363,8 @@ static int of_spi_parse_dt(struct spi_controller *ctlr, struct spi_device *spi,
 		spi->mode |= SPI_LSB_FIRST;
 	if (of_property_read_bool(nc, "spi-cs-high"))
 		spi->mode |= SPI_CS_HIGH;
+	if (of_property_read_bool(nc, "spi-mosi-idle-low"))
+		spi->mode |= SPI_MOSI_IDLE_LOW;
 
 	/* Device DUAL/QUAD mode */
 
-- 
2.53.0


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

end of thread, other threads:[~2026-03-31 23:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-29 12:57 [PATCH 1/2 v2] spi: add SPI_MOSI_IDLE_LOW support from device tree charles-antoine.couret
2026-03-29 14:25 ` Marcelo Schmitt
2026-03-29 15:39   ` Couret Charles-Antoine
2026-03-29 19:29     ` Marcelo Schmitt
2026-03-31 23:05       ` Couret Charles-Antoine

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

all inboxes | Powered by JetHome®