1. 30 Aug, 2019 1 commit
  2. 04 Jun, 2019 1 commit
  3. 21 May, 2019 1 commit
  4. 13 May, 2019 1 commit
  5. 05 Apr, 2019 1 commit
  6. 25 Mar, 2019 1 commit
    • Stefan Roese's avatar
      spi: mt7621: Move SPI driver out of staging · cbd66c62
      Stefan Roese authored and Mark Brown's avatar Mark Brown committed
      
      
      This patch moves the MT7621 SPI driver, which is used on some Ralink /
      MediaTek MT76xx MIPS SoC's, out of the staging directory. No changes to
      the source code are done in this patch.
      
      This driver version was tested successfully on an MT7688 based platform
      with an SPI NOR on CS0 and an SPI NAND on CS1 without any issues (so
      far).
      
      This patch also documents the devicetree bindings for the MT7621 SPI
      device driver.
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: NeilBrown <neil@brown.name>
      Cc: Sankalp Negi <sankalpnegi2310@gmail.com>
      Cc: Chuanhong Guo <gch981213@gmail.com>
      Cc: John Crispin <john@phrozen.org>
      Cc: Armando Miraglia <arma2ff0@gmail.com>
      Signed-off-by: Mark Brown's avatarMark Brown <broonie@kernel.org>
      cbd66c62
  7. 19 Feb, 2019 1 commit
  8. 28 Jan, 2019 2 commits
  9. 17 Jan, 2019 2 commits
    • Alban Bedel's avatar
      spi: ath79: Enable support for compile test · b172fd0c
      Alban Bedel authored and Mark Brown's avatar Mark Brown committed
      
      
      To allow building this driver in compile test we need to remove all
      dependency on headers from arch/mips/include. To allow this we
      explicitly define all the registers locally instead of using
      ar71xx_regs.h and we move the platform data struct definition to
      include/linux/platform_data/spi-ath79.h.
      Signed-off-by: default avatarAlban Bedel <albeu@free.fr>
      Signed-off-by: Mark Brown's avatarMark Brown <broonie@kernel.org>
      b172fd0c
    • Alban Bedel's avatar
      spi: ath79: Simplify ath79_spi_chipselect() · 797622d7
      Alban Bedel authored and Mark Brown's avatar Mark Brown committed
      
      
      First of all this callback was slightly misused to setup the clock
      polarity at the beginning of a transfer. Beside being at the wrong
      place, it is also useless as only SPI mode 1 is supported. Instead
      just make sure the base value used for IOC is suitable to start a
      transfer by clearing the clock and data bits during the controller
      setup.
      
      This also remove the last direct usage of the GPIO API, so we can
      remove the direct dependency on GPIOLIB.
      Signed-off-by: default avatarAlban Bedel <albeu@free.fr>
      Signed-off-by: Mark Brown's avatarMark Brown <broonie@kernel.org>
      797622d7
  10. 07 Jan, 2019 3 commits
  11. 11 Dec, 2018 1 commit
  12. 13 Nov, 2018 1 commit
  13. 07 Nov, 2018 2 commits
  14. 05 Nov, 2018 1 commit
  15. 21 Oct, 2018 1 commit
  16. 19 Oct, 2018 1 commit
    • Ludovic Barre's avatar
      spi: spi-mem: add stm32 qspi controller · c530cd1d
      Ludovic Barre authored and Mark Brown's avatar Mark Brown committed
      
      
      The qspi controller is a specialized communication interface
      targeting single, dual or quad SPI Flash memories (NOR/NAND).
      
      It can operate in any of the following modes:
      -indirect mode: all the operations are performed using the quadspi
       registers
      -read memory-mapped mode: the external Flash memory is mapped to the
       microcontroller address space and is seen by the system as if it was
       an internal memory
      
      tested on:
      -NOR: mx66l51235l
      -NAND: MT29F2G01ABAGD
      Signed-off-by: default avatarLudovic Barre <ludovic.barre@st.com>
      Signed-off-by: Mark Brown's avatarMark Brown <broonie@kernel.org>
      c530cd1d
  17. 11 Oct, 2018 2 commits
  18. 28 Sep, 2018 1 commit
  19. 10 Sep, 2018 1 commit
  20. 28 Aug, 2018 1 commit
  21. 01 Aug, 2018 1 commit
  22. 31 May, 2018 1 commit
  23. 11 May, 2018 1 commit
  24. 10 May, 2018 1 commit
  25. 18 Apr, 2018 1 commit
  26. 26 Mar, 2018 2 commits
  27. 12 Feb, 2018 1 commit
  28. 03 Nov, 2017 1 commit
  29. 05 Oct, 2017 1 commit
    • Arnd Bergmann's avatar
      spi: spreadtrum adi: add hwspinlock dependency · e83f3742
      Arnd Bergmann authored and Mark Brown's avatar Mark Brown committed
      With CONFIG_HWSPINLOCK=m, the new driver fails to link as a built-in driver:
      
      drivers/spi/spi-sprd-adi.o: In function `sprd_adi_remove':
      spi-sprd-adi.c:(.text+0x18): undefined reference to `hwspin_lock_free'
      drivers/spi/spi-sprd-adi.o: In function `sprd_adi_probe':
      spi-sprd-adi.c:(.text+0xfc): undefined reference to `of_hwspin_lock_get_id'
      spi-sprd-adi.c:(.text+0x108): undefined reference to `hwspin_lock_request_specific'
      spi-sprd-adi.c:(.text+0x268): undefined reference to `hwspin_lock_free'
      
      This adds a hard Kconfig dependency on HWSPINLOCK for the !COMPILE_TEST
      case, and allows compile-testing with HWSPINLOCK completely disabled,
      which will then rely on the existing stub API.
      
      Fixes: 7e2903cb
      
       ("spi: Add ADI driver for Spreadtrum platform")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: Mark Brown's avatarMark Brown <broonie@kernel.org>
      e83f3742
  30. 20 Sep, 2017 1 commit
  31. 19 Sep, 2017 1 commit
  32. 16 Aug, 2017 1 commit
    • Lars-Peter Clausen's avatar
      spi: altera: Switch to SPI core transfer queue management · e19b63cd
      Lars-Peter Clausen authored and Mark Brown's avatar Mark Brown committed
      
      
      The Altera SPI driver currently uses the spi-bitbang infrastructure for
      transfer queue management, but non of the bitbang functionality itself.
      This is because when the driver was written this was the only way to not
      have to do queue management in the driver itself.
      
      Nowadays transfer queue management is available from the SPI driver core
      itself and using the bitbang infrastructure just adds an additional level
      of indirection.
      
      Switch the driver over to using the core queue management directly.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: Mark Brown's avatarMark Brown <broonie@kernel.org>
      e19b63cd
  33. 07 Aug, 2017 1 commit
    • Arnd Bergmann's avatar
      spi: fix building SPI_PXA on MMP · 128345b1
      Arnd Bergmann authored and Mark Brown's avatar Mark Brown committed
      When the audio driver selects CONFIG_PXA_SSP on ARCH_MMP as a
      loadable module, and the PXA SPI driver is built-in, we get
      a link error in the SPI driver:
      
      drivers/spi/spi-pxa2xx.o: In function `pxa2xx_spi_remove':
      spi-pxa2xx.c:(.text+0x5f0): undefined reference to `pxa_ssp_free'
      drivers/spi/spi-pxa2xx.o: In function `pxa2xx_spi_probe':
      spi-pxa2xx.c:(.text+0xeac): undefined reference to `pxa_ssp_request'
      spi-pxa2xx.c:(.text+0x1468): undefined reference to `pxa_ssp_free'
      spi-pxa2xx.c:(.text+0x15bc): undefined reference to `pxa_ssp_free'
      
      The problem is that the PXA SPI driver only uses 'select SSP'
      specifically when building it for PXA, but we can also build it
      for PCI, which is meant for Intel x86 SoCs that use the same SPI
      block. When the sound driver forces the SSP to be a loadable
      module, the IS_ENABLED() check in include/linux/pxa2xx_ssp.h
      triggers but the spi driver can't reference the exported symbols.
      
      I had a different approach before, making the PCI case depend
      on X86, which fixed the problem by avoiding the MMP case.
      
      This goes a different route, making the driver select PXA_SSP
      also on MMP, which has an SSP that none of the boards in mainline
      Linux use for SPI. There is no harm in always enabling the build
      on MMP (PCI or not PCI), so I do that too, to document that this
      hardware is actually available on MMP.
      
      Link: https://patchwork.kernel.org/patch/8879921/
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: Mark Brown's avatarMark Brown <broonie@kernel.org>
      128345b1