Re: [PATCH 0/4] Driver for Apple Z2 touchscreens.

From: Sasha Finkelstein
Date: Wed Nov 27 2024 - 03:29:43 EST


On Wed, 27 Nov 2024 at 02:51, Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx> wrote:
> I believe this needs to be done at the SPI controller level. See
> "cs-gpiods" property in
> Documentation/devicetree/bindings/spi/spi-controller.yaml that, as far
> as I understand, allows overriding controller's native CS handling with
> a GPIO when needed.

I have already tried doing that (adding the relevant gpio as cs-gpios
on the controller)
and for some reason none of my attempts worked. Since there is no hardware
documentation, I can't really tell why, could be possible that we need both
native CS and that gpio, could be memory barrier issues somewhere in
the driver core,
but the method above is the only one i could get to work.