Skip to content

Commit 36ff6c3

Browse files
mansrbroonie
authored andcommitted
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@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>
1 parent 8ffd015 commit 36ff6c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/spi/spi-sun4i.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ static int sun4i_spi_probe(struct platform_device *pdev)
462462
sspi->host = host;
463463
host->max_speed_hz = 100 * 1000 * 1000;
464464
host->min_speed_hz = 3 * 1000;
465+
host->use_gpio_descriptors = true;
465466
host->set_cs = sun4i_spi_set_cs;
466467
host->transfer_one = sun4i_spi_transfer_one;
467468
host->num_chipselect = 4;

0 commit comments

Comments
 (0)