[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250410115303.5150-1-mans@mansr.com>
Date: Thu, 10 Apr 2025 12:53:03 +0100
From: Mans Rullgard <mans@...sr.com>
To: Mark Brown <broonie@...nel.org>,
Chen-Yu Tsai <wens@...e.org>,
Jernej Skrabec <jernej.skrabec@...il.com>,
Samuel Holland <samuel@...lland.org>
Cc: Pan Nan <pannan@...winnertech.com>,
Maxime Ripard <mripard@...nel.org>,
linux-spi@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-sunxi@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [PATCH] spi: sun4i: add support for GPIO chip select lines
Set use_gpio_descriptors to true so that GPIOs can be used for chip
select in accordance with the DT binding.
Signed-off-by: Mans Rullgard <mans@...sr.com>
---
drivers/spi/spi-sun4i.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/spi/spi-sun4i.c b/drivers/spi/spi-sun4i.c
index 2ee6755b43f5..6645d218bcf3 100644
--- a/drivers/spi/spi-sun4i.c
+++ b/drivers/spi/spi-sun4i.c
@@ -462,6 +462,7 @@ static int sun4i_spi_probe(struct platform_device *pdev)
sspi->host = host;
host->max_speed_hz = 100 * 1000 * 1000;
host->min_speed_hz = 3 * 1000;
+ host->use_gpio_descriptors = true;
host->set_cs = sun4i_spi_set_cs;
host->transfer_one = sun4i_spi_transfer_one;
host->num_chipselect = 4;
--
2.49.0
Powered by blists - more mailing lists