[PATCH] spi: Add option to keep the MOSI line low, when it is idle.
Fabio Estevam
festevam at gmail.com
Thu May 11 13:29:23 PDT 2023
Hi Boerge,
On Thu, May 11, 2023 at 10:58 AM Boerge Struempfel
<boerge.struempfel at gmail.com> wrote:
>
> By default, the imx spi controller uses a high mosi line, whenever it is
> idle. This may not be desired in all use cases. For example neopixel
> leds can get confused and flicker due to misinterpreting the idle state.
> Therefore, we introduce a new spi-mode bit, with which the idle behaviour
> can be overwritten on a per device basis.
...
> + if (of_property_read_bool(nc, "spi-mosi-idle-low"))
> + spi->mode |= SPI_MOSI_IDLE_LOW;
Yes, this is useful.
As this is a new property, please send a patch that adds it to:
Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml
Thanks
More information about the linux-arm-kernel
mailing list