mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
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>
This commit is contained in:
committed by
Mark Brown
parent
8ffd015db8
commit
36ff6c3f50
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user