spi: ppc4xx: Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 14 Jul 2020 07:22:26 +0000 (09:22 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 22 Jul 2020 00:55:52 +0000 (01:55 +0100)
commit4726773292bfdb2917a0b4d369ddccd5e2f30991
tree5135485a8826beff6ea4b26c569bde9c2905ff6a
parentce8e60fe4f517b3b2b1deb44cf364a9080521567
spi: ppc4xx: Convert to use GPIO descriptors

This converts the PPC4xx SPI driver to use GPIO descriptors.

The driver is already just picking some GPIOs from the device
tree so the conversion is pretty straight forward. However
this driver is looking form a pure "gpios" property rather
than the standard binding "cs-gpios" so we need to add a new
exception to the gpiolib OF parser to allow this for this
driver's compatibles.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: linuxppc-dev@lists.ozlabs.org
Link: https://lore.kernel.org/r/20200714072226.26071-1-linus.walleij@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/gpio/gpiolib-of.c
drivers/spi/spi-ppc4xx.c