Skip to content

Commit

Permalink
spi: sun4i: add support for GPIO chip select lines
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mans Rullgard authored and Mark Brown committed Apr 14, 2025
1 parent 8ffd015 commit 36ff6c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/spi/spi-sun4i.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 36ff6c3

Please sign in to comment.