Re: [PATCH 0/3] spi: spi-imx: fix use of more than four chip selects
From: Mark Brown
Date: Wed Apr 26 2023 - 08:25:30 EST
On Wed, Apr 26, 2023 at 09:19:29AM +0200, Rasmus Villemoes wrote:
> I did consider that approach, but rejected it because it wouldn't work
> with mixing native and gpio chip selects. Say, somebody uses SS0
> natively, but then also have four additional gpios. Then chipselect 4
> would end up activating both the SS0 pin as well as the gpio, selecting
> both devices.
> I don't know if that's really a realistic scenario. But at least I think
> the driver should then somehow have a way to indicate to the core that
> one should either use native or gpio chip selects, but not a mix.
I'm not sure this is sensible, it'll be a fairly rare situation and we
don't want to preclude using the built in chip select functionality for
some of the chip selects. In a situation like this we only need to have
a single chip select to be managed as a GPIO rather than all of them,
which I'd expect to end up handled in the DT by not allocating that chip
select number.
Attachment:
signature.asc
Description: PGP signature