]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
spi: sun4i: add support for GPIO chip select lines
authorMans Rullgard <mans@mansr.com>
Thu, 10 Apr 2025 11:53:03 +0000 (12:53 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 14 Apr 2025 10:48:23 +0000 (11:48 +0100)
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@mansr.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20250410115303.5150-1-mans@mansr.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sun4i.c

index fcbe864c9b7d69e11c29f7b8f5fb78e4f9ae2cc7..f89826d7dc4964f9ca0568cd265b46d0e62bc829 100644 (file)
@@ -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;