linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] spi: sun6i: Add support for GPIO chip select lines
@ 2020-05-11  4:53 Alistair Francis
  2020-05-11 11:25 ` Mark Brown
  2020-05-11 17:21 ` Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Alistair Francis @ 2020-05-11  4:53 UTC (permalink / raw)
  To: broonie, linux-spi
  Cc: mripard, wens, linux-arm-kernel, linux-kernel, alistair23,
	Alistair Francis

Set use_gpio_descriptors as true to support using generic GPIO
lines for the chip select.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
---
v2:
 - Use use_gpio_descriptors instead of spi_setup

 drivers/spi/spi-sun6i.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/spi/spi-sun6i.c b/drivers/spi/spi-sun6i.c
index ec7967be9e2f..ecea15534c42 100644
--- a/drivers/spi/spi-sun6i.c
+++ b/drivers/spi/spi-sun6i.c
@@ -470,6 +470,7 @@ static int sun6i_spi_probe(struct platform_device *pdev)
 
 	master->max_speed_hz = 100 * 1000 * 1000;
 	master->min_speed_hz = 3 * 1000;
+	master->use_gpio_descriptors = true;
 	master->set_cs = sun6i_spi_set_cs;
 	master->transfer_one = sun6i_spi_transfer_one;
 	master->num_chipselect = 4;
-- 
2.26.2


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

end of thread, other threads:[~2020-05-11 17:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-11  4:53 [PATCH v2] spi: sun6i: Add support for GPIO chip select lines Alistair Francis
2020-05-11 11:25 ` Mark Brown
2020-05-11 12:42   ` Maxime Ripard
2020-05-11 14:53     ` Mark Brown
2020-05-11 17:21 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).