• Linus Walleij's avatar
    spi: fsl: Convert to use CS GPIO descriptors · 0f0581b2
    Linus Walleij authored
    This converts the Freescale SPI master driver to use GPIO
    descriptors for chip select handling.
    
    The Freescale (fsl) driver has a lot of quirks to look up
    "gpios" rather than "cs-gpios" from the device tree.
    After the prior patch that will make gpiolib return the
    GPIO descriptor for "gpios" in response to a request for
    "cs-gpios", this code can be cut down quite a bit.
    
    The driver has custom handling of chip select rather
    than using the core (which may be possible but not
    done in this patch) so it still needs to refer directly
    to spi->cs_gpiod to set the chip select.
    
    Cc: Shawn Guo <shawnguo@kernel.org>
    Cc: Sascha Hauer <s.hauer@pengutronix.de>
    Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
    Cc: Fabio Estevam <festevam@gmail.com>
    Cc: NXP Linux Team <linux-imx@nxp.com>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    Link: https://lore.kernel.org/r/20190804003539.985-1-linus.walleij@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    0f0581b2
spi-fsl-lib.h 3.12 KB