]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4dce1acedcaa7b7e549a23d11070251951fe3b43
tree5135485a8826beff6ea4b26c569bde9c2905ff6a
parent9ec9e8611f4b13e100c55ea7535a2b5577395e02
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