1. 04 Sep, 2019 19 commits
  2. 03 Sep, 2019 4 commits
  3. 02 Sep, 2019 1 commit
  4. 30 Aug, 2019 3 commits
  5. 28 Aug, 2019 2 commits
    • Linus Walleij's avatar
      spi: bcm2835: Convert to use CS GPIO descriptors · 3bd158c5
      Linus Walleij authored
      This converts the BCM2835 SPI master driver to use GPIO
      descriptors for chip select handling.
      
      The BCM2835 driver was relying on the core to drive the
      CS high/low so very small changes were needed for this
      part. If it managed to request the CS from the device tree
      node, all is pretty straight forward.
      
      However for native GPIOs this driver has a quite unorthodox
      loopback to request some GPIOs from the SoC GPIO chip by
      looking it up from the device tree using gpiochip_find()
      and then offseting hard into its numberspace. This has
      been augmented a bit by using gpiochip_request_own_desc()
      but this code really needs to be verified. If "native CS"
      is actually an SoC GPIO, why is it even done this way?
      Should this GPIO not just be defined in the device tree
      like any other CS GPIO? I'm confused.
      
      Cc: Lukas Wunner <lukas@wunner.de>
      Cc: Stefan Wahren <stefan.wahren@i2se.com>
      Cc: Martin Sperl <kernel@martin.sperl.org>
      Cc: Chris Boot <bootc@bootc.net>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Link: https://lore.kernel.org/r/20190804003852.1312-1-linus.walleij@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      3bd158c5
    • 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
  6. 23 Aug, 2019 6 commits
  7. 22 Aug, 2019 2 commits
  8. 20 Aug, 2019 3 commits