[RESEND PATCH v2 2/2] spi: soft_spi: Parse cs-gpios only if num-chipselects is not <0>
Simon Glass
sjg at chromium.org
Sat Aug 17 17:58:15 CEST 2024
On Wed, 14 Aug 2024 at 04:14, Mikhail Kshevetskiy
<mikhail.kshevetskiy at iopsys.eu> wrote:
>
> From: Michael Polyntsov <michael.polyntsov at iopsys.eu>
>
> Some boards don't have chipselect lines for leds so cs-gpios is not
> specified in the dts leading to probing error. Fix it by making
> behavior similar to the one in Linux, parse num-chipselects and
> if it is zero, ignore cs-gpios.
>
> Signed-off-by: Michael Polyntsov <michael.polyntsov at iopsys.eu>
> Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy at iopsys.eu>
> ---
> doc/device-tree-bindings/spi/soft-spi.txt | 5 +++--
> drivers/spi/soft_spi.c | 22 +++++++++++++++++++++-
> 2 files changed, 24 insertions(+), 3 deletions(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list