xref: /linux/drivers/spi/Kconfig (revision 2d069c11e8229e9f380af0c3bffe4b95cd2cf9ec)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
28ae12a0dSDavid Brownell#
38ae12a0dSDavid Brownell# SPI driver configuration
48ae12a0dSDavid Brownell#
579d8c7a8SAlessandro Guidomenuconfig SPI
68ae12a0dSDavid Brownell	bool "SPI support"
779d8c7a8SAlessandro Guido	depends on HAS_IOMEM
88ae12a0dSDavid Brownell	help
98ae12a0dSDavid Brownell	  The "Serial Peripheral Interface" is a low level synchronous
108ae12a0dSDavid Brownell	  protocol.  Chips that support SPI can have data transfer rates
118ae12a0dSDavid Brownell	  up to several tens of Mbit/sec.  Chips are addressed with a
128ae12a0dSDavid Brownell	  controller and a chipselect.  Most SPI slaves don't support
138ae12a0dSDavid Brownell	  dynamic device discovery; some are even write-only or read-only.
148ae12a0dSDavid Brownell
153cb2fcccSMatt LaPlante	  SPI is widely used by microcontrollers to talk with sensors,
168ae12a0dSDavid Brownell	  eeprom and flash memory, codecs and various other controller
178ae12a0dSDavid Brownell	  chips, analog to digital (and d-to-a) converters, and more.
188ae12a0dSDavid Brownell	  MMC and SD cards can be accessed using SPI protocol; and for
198ae12a0dSDavid Brownell	  DataFlash cards used in MMC sockets, SPI must always be used.
208ae12a0dSDavid Brownell
218ae12a0dSDavid Brownell	  SPI is one of a family of similar protocols using a four wire
228ae12a0dSDavid Brownell	  interface (select, clock, data in, data out) including Microwire
238ae12a0dSDavid Brownell	  (half duplex), SSP, SSI, and PSP.  This driver framework should
248ae12a0dSDavid Brownell	  work with most such devices and controllers.
258ae12a0dSDavid Brownell
2679d8c7a8SAlessandro Guidoif SPI
2779d8c7a8SAlessandro Guido
288ae12a0dSDavid Brownellconfig SPI_DEBUG
296341e62bSChristoph Jaeger	bool "Debug support for SPI drivers"
3079d8c7a8SAlessandro Guido	depends on DEBUG_KERNEL
318ae12a0dSDavid Brownell	help
328ae12a0dSDavid Brownell	  Say "yes" to enable debug messaging (like dev_dbg and pr_debug),
338ae12a0dSDavid Brownell	  sysfs, and debugfs support in SPI controller and protocol drivers.
348ae12a0dSDavid Brownell
358ae12a0dSDavid Brownell#
368ae12a0dSDavid Brownell# MASTER side ... talking to discrete SPI slave chips including microcontrollers
378ae12a0dSDavid Brownell#
388ae12a0dSDavid Brownell
398ae12a0dSDavid Brownellconfig SPI_MASTER
406341e62bSChristoph Jaeger#	bool "SPI Master Support"
416341e62bSChristoph Jaeger	bool
428ae12a0dSDavid Brownell	default SPI
438ae12a0dSDavid Brownell	help
448ae12a0dSDavid Brownell	  If your system has an master-capable SPI controller (which
458ae12a0dSDavid Brownell	  provides the clock and chipselect), you can enable that
468ae12a0dSDavid Brownell	  controller and the protocol drivers for the SPI slave chips
478ae12a0dSDavid Brownell	  that are connected.
488ae12a0dSDavid Brownell
496291fe2aSRobert P. J. Dayif SPI_MASTER
506291fe2aSRobert P. J. Day
51c36ff266SBoris Brezillonconfig SPI_MEM
52c36ff266SBoris Brezillon	bool "SPI memory extension"
53c36ff266SBoris Brezillon	help
54c36ff266SBoris Brezillon	  Enable this option if you want to enable the SPI memory extension.
55c36ff266SBoris Brezillon	  This extension is meant to simplify interaction with SPI memories
5629e795caSFabio Estevam	  by providing a high-level interface to send memory-like commands.
57c36ff266SBoris Brezillon
588ae12a0dSDavid Brownellcomment "SPI Master Controller Drivers"
598ae12a0dSDavid Brownell
60a403997cSLorenzo Bianconiconfig SPI_AIROHA_SNFI
61a403997cSLorenzo Bianconi	tristate "Airoha SPI NAND Flash Interface"
62a403997cSLorenzo Bianconi	depends on ARCH_AIROHA || COMPILE_TEST
63a403997cSLorenzo Bianconi	depends on SPI_MASTER
64a403997cSLorenzo Bianconi	select REGMAP_MMIO
65a403997cSLorenzo Bianconi	help
66a403997cSLorenzo Bianconi	  This enables support for SPI-NAND mode on the Airoha NAND
67a403997cSLorenzo Bianconi	  Flash Interface found on Airoha ARM SoCs. This controller
68a403997cSLorenzo Bianconi	  is implemented as a SPI-MEM controller.
69a403997cSLorenzo Bianconi
700b782531SThomas Chouconfig SPI_ALTERA
71b0c3d935SMatthew Gerlach	tristate "Altera SPI Controller platform driver"
72b0c3d935SMatthew Gerlach	select SPI_ALTERA_CORE
733c651973SXu Yilun	select REGMAP_MMIO
740b782531SThomas Chou	help
750b782531SThomas Chou	  This is the driver for the Altera SPI Controller.
760b782531SThomas Chou
77b0c3d935SMatthew Gerlachconfig SPI_ALTERA_CORE
7841f48a29SGeert Uytterhoeven	tristate "Altera SPI Controller core code" if COMPILE_TEST
79b0c3d935SMatthew Gerlach	select REGMAP
80b0c3d935SMatthew Gerlach	help
81b0c3d935SMatthew Gerlach	  "The core code for the Altera SPI Controller"
82b0c3d935SMatthew Gerlach
83ba2fc167SMatthew Gerlachconfig SPI_ALTERA_DFL
84ba2fc167SMatthew Gerlach	tristate "DFL bus driver for Altera SPI Controller"
85ba2fc167SMatthew Gerlach	depends on FPGA_DFL
86ba2fc167SMatthew Gerlach	select SPI_ALTERA_CORE
87ba2fc167SMatthew Gerlach	help
88ba2fc167SMatthew Gerlach	  This is a Device Feature List (DFL) bus driver for the
89ba2fc167SMatthew Gerlach	  Altera SPI master controller.  The SPI master is connected
90ba2fc167SMatthew Gerlach	  to a SPI slave to Avalon bridge in a Intel MAX BMC.
91ba2fc167SMatthew Gerlach
92909fac05SMartin Kurbanovconfig SPI_AMLOGIC_SPIFC_A1
93909fac05SMartin Kurbanov	tristate "Amlogic A1 SPIFC controller"
94909fac05SMartin Kurbanov	depends on ARCH_MESON || COMPILE_TEST
95909fac05SMartin Kurbanov	help
96909fac05SMartin Kurbanov	  This enables master mode support for the SPIFC (SPI flash
97909fac05SMartin Kurbanov	  controller) available in Amlogic A1 (A113L SoC).
98909fac05SMartin Kurbanov
99047980c5SChuanhong Guoconfig SPI_AR934X
100047980c5SChuanhong Guo	tristate "Qualcomm Atheros AR934X/QCA95XX SPI controller driver"
101047980c5SChuanhong Guo	depends on ATH79 || COMPILE_TEST
102047980c5SChuanhong Guo	help
103047980c5SChuanhong Guo	  This enables support for the SPI controller present on the
104047980c5SChuanhong Guo	  Qualcomm Atheros AR934X/QCA95XX SoCs.
105047980c5SChuanhong Guo
1068efaef4dSGabor Juhosconfig SPI_ATH79
1078efaef4dSGabor Juhos	tristate "Atheros AR71XX/AR724X/AR913X SPI controller driver"
108b172fd0cSAlban Bedel	depends on ATH79 || COMPILE_TEST
1098efaef4dSGabor Juhos	select SPI_BITBANG
1108efaef4dSGabor Juhos	help
1118efaef4dSGabor Juhos	  This enables support for the SPI controller present on the
1128efaef4dSGabor Juhos	  Atheros AR71XX/AR724X/AR913X SoCs.
1138efaef4dSGabor Juhos
1145762ab71SRomain Perierconfig SPI_ARMADA_3700
1155762ab71SRomain Perier	tristate "Marvell Armada 3700 SPI Controller"
1165762ab71SRomain Perier	depends on (ARCH_MVEBU && OF) || COMPILE_TEST
1175762ab71SRomain Perier	help
1185762ab71SRomain Perier	  This enables support for the SPI controller present on the
1195762ab71SRomain Perier	  Marvell Armada 3700 SoCs.
1205762ab71SRomain Perier
121e3228ed9SCédric Le Goaterconfig SPI_ASPEED_SMC
122e3228ed9SCédric Le Goater	tristate "Aspeed flash controllers in SPI mode"
123e3228ed9SCédric Le Goater	depends on ARCH_ASPEED || COMPILE_TEST
124e3228ed9SCédric Le Goater	depends on OF
125e3228ed9SCédric Le Goater	help
126e3228ed9SCédric Le Goater	  This enables support for the Firmware Memory controller (FMC)
127e3228ed9SCédric Le Goater	  in the Aspeed AST2600, AST2500 and AST2400 SoCs when attached
128e3228ed9SCédric Le Goater	  to SPI NOR chips, and support for the SPI flash memory
129e3228ed9SCédric Le Goater	  controller (SPI) for the host firmware. The implementation
130e3228ed9SCédric Le Goater	  only supports SPI NOR.
131e3228ed9SCédric Le Goater
132754ce4f2SHaavard Skinnemoenconfig SPI_ATMEL
133754ce4f2SHaavard Skinnemoen	tristate "Atmel SPI Controller"
134a687a533SArnd Bergmann	depends on ARCH_AT91 || COMPILE_TEST
1351cb84b02SGregory CLEMENT	depends on OF
136754ce4f2SHaavard Skinnemoen	help
137754ce4f2SHaavard Skinnemoen	  This selects a driver for the Atmel SPI Controller, present on
138a687a533SArnd Bergmann	  many AT91 ARM chips.
139754ce4f2SHaavard Skinnemoen
140e1892546SRadu Pireaconfig SPI_AT91_USART
141e1892546SRadu Pirea	tristate "Atmel USART Controller SPI driver"
142e1892546SRadu Pirea	depends on (ARCH_AT91 || COMPILE_TEST)
143e1892546SRadu Pirea	depends on MFD_AT91_USART
144e1892546SRadu Pirea	help
145e1892546SRadu Pirea	  This selects a driver for the AT91 USART Controller as SPI Master,
146e1892546SRadu Pirea	  present on AT91 and SAMA5 SoC series.
147e1892546SRadu Pirea
1480e6aae08SPiotr Bugalskiconfig SPI_ATMEL_QUADSPI
1490e6aae08SPiotr Bugalski	tristate "Atmel Quad SPI Controller"
150b780c3f3STudor Ambarus	depends on ARCH_AT91 || COMPILE_TEST
1510e6aae08SPiotr Bugalski	depends on OF && HAS_IOMEM
1520e6aae08SPiotr Bugalski	help
1530e6aae08SPiotr Bugalski	  This enables support for the Quad SPI controller in master mode.
1540e6aae08SPiotr Bugalski	  This driver does not support generic SPI. The implementation only
1550e6aae08SPiotr Bugalski	  supports spi-mem interface.
1560e6aae08SPiotr Bugalski
157e32bb870SMark Brownconfig SPI_AU1550
158e32bb870SMark Brown	tristate "Au1550/Au1200/Au1300 SPI Controller"
159e32bb870SMark Brown	depends on MIPS_ALCHEMY
160e32bb870SMark Brown	select SPI_BITBANG
161e32bb870SMark Brown	help
162e32bb870SMark Brown	  If you say yes to this option, support will be included for the
163e32bb870SMark Brown	  PSC SPI controller found on Au1550, Au1200 and Au1300 series.
164e32bb870SMark Brown
165b1353d1cSLars-Peter Clausenconfig SPI_AXI_SPI_ENGINE
166b1353d1cSLars-Peter Clausen	tristate "Analog Devices AXI SPI Engine controller"
167b1353d1cSLars-Peter Clausen	depends on HAS_IOMEM
168b1353d1cSLars-Peter Clausen	help
169b1353d1cSLars-Peter Clausen	  This enables support for the Analog Devices AXI SPI Engine SPI controller.
170b1353d1cSLars-Peter Clausen	  It is part of the SPI Engine framework that is used in some Analog Devices
171b1353d1cSLars-Peter Clausen	  reference designs for FPGAs.
172b1353d1cSLars-Peter Clausen
173f8043872SChris Bootconfig SPI_BCM2835
174f8043872SChris Boot	tristate "BCM2835 SPI controller"
175e0d58cdcSYoshinori Sato	depends on GPIOLIB
17635ceb675SFlorian Fainelli	depends on ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST
177f8043872SChris Boot	help
178f8043872SChris Boot	  This selects a driver for the Broadcom BCM2835 SPI master.
179f8043872SChris Boot
180f8043872SChris Boot	  The BCM2835 contains two types of SPI master controller; the
181f8043872SChris Boot	  "universal SPI master", and the regular SPI controller. This driver
182f8043872SChris Boot	  is for the regular SPI controller. Slave mode operation is not also
183f8043872SChris Boot	  not supported.
184f8043872SChris Boot
1851ea29b39SMartin Sperlconfig SPI_BCM2835AUX
1861ea29b39SMartin Sperl	tristate "BCM2835 SPI auxiliary controller"
18735ceb675SFlorian Fainelli	depends on ((ARCH_BCM2835 || ARCH_BRCMSTB) && GPIOLIB) || COMPILE_TEST
1881ea29b39SMartin Sperl	help
1891ea29b39SMartin Sperl	  This selects a driver for the Broadcom BCM2835 SPI aux master.
1901ea29b39SMartin Sperl
1911ea29b39SMartin Sperl	  The BCM2835 contains two types of SPI master controller; the
1921ea29b39SMartin Sperl	  "universal SPI master", and the regular SPI controller.
1931ea29b39SMartin Sperl	  This driver is for the universal/auxiliary SPI controller.
1941ea29b39SMartin Sperl
195b42dfed8SFlorian Fainelliconfig SPI_BCM63XX
196b42dfed8SFlorian Fainelli	tristate "Broadcom BCM63xx SPI controller"
1973a521450SÁlvaro Fernández Rojas	depends on BCM63XX || BMIPS_GENERIC || COMPILE_TEST
198b42dfed8SFlorian Fainelli	help
199b42dfed8SFlorian Fainelli	  Enable support for the SPI controller on the Broadcom BCM63xx SoCs.
200b42dfed8SFlorian Fainelli
201142168ebSJonas Gorskiconfig SPI_BCM63XX_HSSPI
202142168ebSJonas Gorski	tristate "Broadcom BCM63XX HS SPI controller driver"
20316f3c221SWilliam Zhang	depends on BCM63XX || BMIPS_GENERIC || ARCH_BCMBCA || COMPILE_TEST
204142168ebSJonas Gorski	help
205142168ebSJonas Gorski	  This enables support for the High Speed SPI controller present on
206142168ebSJonas Gorski	  newer Broadcom BCM63XX SoCs.
207142168ebSJonas Gorski
208fa236a7eSKamal Dasuconfig SPI_BCM_QSPI
209fa236a7eSKamal Dasu	tristate "Broadcom BSPI and MSPI controller support"
210279e4af7SJaedon Shin	depends on ARCH_BRCMSTB || ARCH_BCM || ARCH_BCM_IPROC || \
211279e4af7SJaedon Shin			BMIPS_GENERIC || COMPILE_TEST
212fa236a7eSKamal Dasu	default ARCH_BCM_IPROC
213fa236a7eSKamal Dasu	help
214fa236a7eSKamal Dasu	  Enables support for the Broadcom SPI flash and MSPI controller.
215fa236a7eSKamal Dasu	  Select this option for any one of BRCMSTB, iProc NSP and NS2 SoCs
2163e84cdd4STudor Ambarus	  based platforms. This driver works for both SPI master for SPI NOR
217fa236a7eSKamal Dasu	  flash device as well as MSPI device.
218fa236a7eSKamal Dasu
219a38a2233SWilliam Zhangconfig SPI_BCMBCA_HSSPI
220a38a2233SWilliam Zhang	tristate "Broadcom BCMBCA HS SPI controller driver"
221a38a2233SWilliam Zhang	depends on ARCH_BCMBCA || COMPILE_TEST
222a38a2233SWilliam Zhang	help
223a38a2233SWilliam Zhang	  This enables support for the High Speed SPI controller present on
224a38a2233SWilliam Zhang	  newer Broadcom BCMBCA SoCs. These SoCs include an updated SPI controller
225a38a2233SWilliam Zhang	  that adds the capability to allow the driver to control chip select
226a38a2233SWilliam Zhang	  explicitly.
227a38a2233SWilliam Zhang
2289904f22aSDavid Brownellconfig SPI_BITBANG
229d29389deSDavid Brownell	tristate "Utilities for Bitbanging SPI masters"
2309904f22aSDavid Brownell	help
2319904f22aSDavid Brownell	  With a few GPIO pins, your system can bitbang the SPI protocol.
2329904f22aSDavid Brownell	  Select this to get SPI support through I/O pins (GPIO, parallel
2339904f22aSDavid Brownell	  port, etc).  Or, some systems' SPI master controller drivers use
2349904f22aSDavid Brownell	  this code to manage the per-word or per-transfer accesses to the
2359904f22aSDavid Brownell	  hardware shift registers.
2369904f22aSDavid Brownell
2379904f22aSDavid Brownell	  This is library code, and is automatically selected by drivers that
2389904f22aSDavid Brownell	  need it.  You only need to select this explicitly to support driver
2399904f22aSDavid Brownell	  modules that aren't part of this kernel tree.
2408ae12a0dSDavid Brownell
2417111763dSDavid Brownellconfig SPI_BUTTERFLY
2427111763dSDavid Brownell	tristate "Parallel port adapter for AVR Butterfly (DEVELOPMENT)"
2436291fe2aSRobert P. J. Day	depends on PARPORT
2447111763dSDavid Brownell	select SPI_BITBANG
2457111763dSDavid Brownell	help
2467111763dSDavid Brownell	  This uses a custom parallel port cable to connect to an AVR
2477111763dSDavid Brownell	  Butterfly <http://www.atmel.com/products/avr/butterfly>, an
2487111763dSDavid Brownell	  inexpensive battery powered microcontroller evaluation board.
2497111763dSDavid Brownell	  This same cable can be used to flash new firmware.
2507111763dSDavid Brownell
251c474b386SHarini Katakamconfig SPI_CADENCE
252c474b386SHarini Katakam	tristate "Cadence SPI controller"
253c474b386SHarini Katakam	help
254c474b386SHarini Katakam	  This selects the Cadence SPI controller master driver
25538b6484eSMichal Simek	  used by Xilinx Zynq and ZynqMP.
256c474b386SHarini Katakam
25731fb632bSRamuthevar Vadivel Muruganconfig SPI_CADENCE_QUADSPI
25831fb632bSRamuthevar Vadivel Murugan	tristate "Cadence Quad SPI controller"
259708eafebSThéo Lebrun	depends on OF && (ARM || ARM64 || X86 || RISCV || MIPS || COMPILE_TEST)
26031fb632bSRamuthevar Vadivel Murugan	help
26131fb632bSRamuthevar Vadivel Murugan	  Enable support for the Cadence Quad SPI Flash controller.
26231fb632bSRamuthevar Vadivel Murugan
26331fb632bSRamuthevar Vadivel Murugan	  Cadence QSPI is a specialized controller for connecting an SPI
26431fb632bSRamuthevar Vadivel Murugan	  Flash over 1/2/4-bit wide bus. Enable this option if you have a
26531fb632bSRamuthevar Vadivel Murugan	  device with a Cadence QSPI controller and want to access the
26631fb632bSRamuthevar Vadivel Murugan	  Flash as an MTD device.
26731fb632bSRamuthevar Vadivel Murugan
268a16cc807SParshuram Thombareconfig SPI_CADENCE_XSPI
269a16cc807SParshuram Thombare	tristate "Cadence XSPI controller"
2709c512e47SJean Delvare	depends on OF && HAS_IOMEM
271a16cc807SParshuram Thombare	depends on SPI_MEM
272a16cc807SParshuram Thombare	help
273a16cc807SParshuram Thombare	  Enable support for the Cadence XSPI Flash controller.
274a16cc807SParshuram Thombare
275a16cc807SParshuram Thombare	  Cadence XSPI is a specialized controller for connecting an SPI
27622913a63SRandy Dunlap	  Flash over up to 8-bit wide bus. Enable this option if you have a
277a16cc807SParshuram Thombare	  device with a Cadence XSPI controller and want to access the
278a16cc807SParshuram Thombare	  Flash as an MTD device.
279a16cc807SParshuram Thombare
280161b96c3SAlexander Shiyanconfig SPI_CLPS711X
281161b96c3SAlexander Shiyan	tristate "CLPS711X host SPI controller"
2825634dd8bSAxel Lin	depends on ARCH_CLPS711X || COMPILE_TEST
283161b96c3SAlexander Shiyan	help
284161b96c3SAlexander Shiyan	  This enables dedicated general purpose SPI/Microwire1-compatible
285161b96c3SAlexander Shiyan	  master mode interface (SSI1) for CLPS711X-based CPUs.
286161b96c3SAlexander Shiyan
28734b8c661SSteven Kingconfig SPI_COLDFIRE_QSPI
28834b8c661SSteven King	tristate "Freescale Coldfire QSPI controller"
289bce4d12bSSteven King	depends on (M520x || M523x || M5249 || M525x || M527x || M528x || M532x)
29034b8c661SSteven King	help
29134b8c661SSteven King	  This enables support for the Coldfire QSPI controller in master
29234b8c661SSteven King	  mode.
29334b8c661SSteven King
294ef75e767SLucas Tanureconfig SPI_CS42L43
295ef75e767SLucas Tanure	tristate "Cirrus Logic CS42L43 SPI controller"
296ef75e767SLucas Tanure	depends on MFD_CS42L43 && PINCTRL_CS42L43
297439fbc97SMaciej Strozek	select GPIO_SWNODE_UNDEFINED
298ef75e767SLucas Tanure	help
299ef75e767SLucas Tanure	  This enables support for the SPI controller inside the Cirrus Logic
300ef75e767SLucas Tanure	  CS42L43 audio codec.
301ef75e767SLucas Tanure
302358934a6SSandeep Paulrajconfig SPI_DAVINCI
30323ce17adSSekhar Nori	tristate "Texas Instruments DaVinci/DA8x/OMAP-L/AM1x SoC SPI controller"
304e48d57d7SMark Brown	depends on ARCH_DAVINCI || ARCH_KEYSTONE || COMPILE_TEST
305358934a6SSandeep Paulraj	select SPI_BITBANG
306358934a6SSandeep Paulraj	help
30723ce17adSSekhar Nori	  SPI master controller for DaVinci/DA8x/OMAP-L/AM1x SPI modules.
30823ce17adSSekhar Nori
309e32bb870SMark Brownconfig SPI_DESIGNWARE
310e32bb870SMark Brown	tristate "DesignWare SPI controller core support"
3116423207eSSerge Semin	imply SPI_MEM
312e32bb870SMark Brown	help
313e32bb870SMark Brown	  general driver for SPI controller core from DesignWare
314e32bb870SMark Brown
315ecb3a67eSSerge Seminif SPI_DESIGNWARE
316ecb3a67eSSerge Semin
3176c710c0cSSerge Seminconfig SPI_DW_DMA
3186c710c0cSSerge Semin	bool "DMA support for DW SPI controller"
3196c710c0cSSerge Semin
320e32bb870SMark Brownconfig SPI_DW_PCI
321e32bb870SMark Brown	tristate "PCI interface driver for DW SPI core"
322ecb3a67eSSerge Semin	depends on PCI
323e32bb870SMark Brown
324e32bb870SMark Brownconfig SPI_DW_MMIO
325e32bb870SMark Brown	tristate "Memory-mapped io interface driver for DW SPI core"
326ecb3a67eSSerge Semin	depends on HAS_IOMEM
327ecb3a67eSSerge Semin
328abf00907SSerge Seminconfig SPI_DW_BT1
329abf00907SSerge Semin	tristate "Baikal-T1 SPI driver for DW SPI core"
330abf00907SSerge Semin	depends on MIPS_BAIKAL_T1 || COMPILE_TEST
33172188381SSerge Semin	select MULTIPLEXER
332abf00907SSerge Semin	help
333abf00907SSerge Semin	  Baikal-T1 SoC is equipped with three DW APB SSI-based MMIO SPI
334abf00907SSerge Semin	  controllers. Two of them are pretty much normal: with IRQ, DMA,
335abf00907SSerge Semin	  FIFOs of 64 words depth, 4x CSs, but the third one as being a
336abf00907SSerge Semin	  part of the Baikal-T1 System Boot Controller has got a very
337abf00907SSerge Semin	  limited resources: no IRQ, no DMA, only a single native
338abf00907SSerge Semin	  chip-select and Tx/Rx FIFO with just 8 words depth available.
339abf00907SSerge Semin	  The later one is normally connected to an external SPI-nor flash
340abf00907SSerge Semin	  of 128Mb (in general can be of bigger size).
341abf00907SSerge Semin
342abf00907SSerge Seminconfig SPI_DW_BT1_DIRMAP
343abf00907SSerge Semin	bool "Directly mapped Baikal-T1 Boot SPI flash support"
344abf00907SSerge Semin	depends on SPI_DW_BT1
345abf00907SSerge Semin	help
346abf00907SSerge Semin	  Directly mapped SPI flash memory is an interface specific to the
347abf00907SSerge Semin	  Baikal-T1 System Boot Controller. It is a 16MB MMIO region, which
348abf00907SSerge Semin	  can be used to access a peripheral memory device just by
349abf00907SSerge Semin	  reading/writing data from/to it. Note that the system APB bus
350abf00907SSerge Semin	  will stall during each IO from/to the dirmap region until the
351abf00907SSerge Semin	  operation is finished. So try not to use it concurrently with
352abf00907SSerge Semin	  time-critical tasks (like the SPI memory operations implemented
353abf00907SSerge Semin	  in this driver).
354abf00907SSerge Semin
355ecb3a67eSSerge Seminendif
356e32bb870SMark Brown
3573d8c0d74SLaurentiu Palcuconfig SPI_DLN2
3583d8c0d74SLaurentiu Palcu       tristate "Diolan DLN-2 USB SPI adapter"
3593d8c0d74SLaurentiu Palcu       depends on MFD_DLN2
3603d8c0d74SLaurentiu Palcu       help
3613d8c0d74SLaurentiu Palcu	 If you say yes to this option, support will be included for Diolan
3623d8c0d74SLaurentiu Palcu	 DLN2, a USB to SPI interface.
3633d8c0d74SLaurentiu Palcu
3643d8c0d74SLaurentiu Palcu	 This driver can also be built as a module.  If so, the module
3653d8c0d74SLaurentiu Palcu	 will be called spi-dln2.
3663d8c0d74SLaurentiu Palcu
367011f23a3SMika Westerbergconfig SPI_EP93XX
368011f23a3SMika Westerberg	tristate "Cirrus Logic EP93xx SPI controller"
369dd1053a9SMark Brown	depends on ARCH_EP93XX || COMPILE_TEST
370011f23a3SMika Westerberg	help
371011f23a3SMika Westerberg	  This enables using the Cirrus EP93xx SPI controller in master
372011f23a3SMika Westerberg	  mode.
373011f23a3SMika Westerberg
3746cd3c7e2SThomas Langerconfig SPI_FALCON
3759c6a3af0SHauke Mehrtens	bool "Falcon SPI controller support"
3766cd3c7e2SThomas Langer	depends on SOC_FALCON
3776cd3c7e2SThomas Langer	help
3786cd3c7e2SThomas Langer	  The external bus unit (EBU) found on the FALC-ON SoC has SPI
3796cd3c7e2SThomas Langer	  emulation that is designed for serial flash access. This driver
3806cd3c7e2SThomas Langer	  has only been tested with m25p80 type chips. The hardware has no
3816cd3c7e2SThomas Langer	  support for other types of SPI peripherals.
3826cd3c7e2SThomas Langer
383bbb6b2f9SEddie Jamesconfig SPI_FSI
384bbb6b2f9SEddie James	tristate "FSI SPI driver"
385bae4ae83SArnd Bergmann	depends on FSI
386bbb6b2f9SEddie James	help
387bbb6b2f9SEddie James	  This enables support for the driver for FSI bus attached SPI
388bbb6b2f9SEddie James	  controllers.
389bbb6b2f9SEddie James
3905314987dSGao Panconfig SPI_FSL_LPSPI
3915314987dSGao Pan	tristate "Freescale i.MX LPSPI controller"
3925314987dSGao Pan	depends on ARCH_MXC || COMPILE_TEST
3935314987dSGao Pan	help
3945314987dSGao Pan	  This enables Freescale i.MX LPSPI controllers in master mode.
3955314987dSGao Pan
39684d04318SFrieder Schrempfconfig SPI_FSL_QUADSPI
39784d04318SFrieder Schrempf	tristate "Freescale QSPI controller"
39884d04318SFrieder Schrempf	depends on ARCH_MXC || SOC_LS1021A || ARCH_LAYERSCAPE || COMPILE_TEST
39984d04318SFrieder Schrempf	depends on HAS_IOMEM
40084d04318SFrieder Schrempf	help
40184d04318SFrieder Schrempf	  This enables support for the Quad SPI controller in master mode.
40284d04318SFrieder Schrempf	  Up to four flash chips can be connected on two buses with two
40384d04318SFrieder Schrempf	  chipselects each.
40484d04318SFrieder Schrempf	  This controller does not support generic SPI messages. It only
40584d04318SFrieder Schrempf	  supports the high-level SPI memory interface.
40684d04318SFrieder Schrempf
407730bc8baSNick Hawkinsconfig SPI_GXP
408730bc8baSNick Hawkins	tristate "GXP SPI driver"
409730bc8baSNick Hawkins	depends on ARCH_HPE || COMPILE_TEST
410730bc8baSNick Hawkins	help
411730bc8baSNick Hawkins	  This enables support for the driver for GXP bus attached SPI
412730bc8baSNick Hawkins	  controllers.
413730bc8baSNick Hawkins
414c770d863SJay Fangconfig SPI_HISI_KUNPENG
415c770d863SJay Fang	tristate "HiSilicon SPI Controller for Kunpeng SoCs"
416c770d863SJay Fang	depends on (ARM64 && ACPI) || COMPILE_TEST
417c770d863SJay Fang	help
418c770d863SJay Fang	  This enables support for HiSilicon SPI controller found on
419c770d863SJay Fang	  Kunpeng SoCs.
420c770d863SJay Fang
421c770d863SJay Fang	  This driver can also be built as a module. If so, the module
422c770d863SJay Fang	  will be called hisi-kunpeng-spi.
423c770d863SJay Fang
424a2ca53b5SJohn Garryconfig SPI_HISI_SFC_V3XX
4253e84cdd4STudor Ambarus	tristate "HiSilicon SPI NOR Flash Controller for Hi16XX chipsets"
426a2ca53b5SJohn Garry	depends on (ARM64 && ACPI) || COMPILE_TEST
427a2ca53b5SJohn Garry	depends on HAS_IOMEM
428a2ca53b5SJohn Garry	help
4293e84cdd4STudor Ambarus	  This enables support for HiSilicon v3xx SPI NOR flash controller
430a2ca53b5SJohn Garry	  found in hi16xx chipsets.
431a2ca53b5SJohn Garry
432a5356aefSYogesh Narayan Gaurconfig SPI_NXP_FLEXSPI
433a5356aefSYogesh Narayan Gaur	tristate "NXP Flex SPI controller"
43407628756SAlexander Stein	depends on ARCH_LAYERSCAPE || ARCH_MXC || COMPILE_TEST
435c6b15b24SMark Brown	depends on HAS_IOMEM
436a5356aefSYogesh Narayan Gaur	help
437a5356aefSYogesh Narayan Gaur	  This enables support for the Flex SPI controller in master mode.
438a5356aefSYogesh Narayan Gaur	  Up to four slave devices can be connected on two buses with two
439a5356aefSYogesh Narayan Gaur	  chipselects each.
440a5356aefSYogesh Narayan Gaur	  This controller does not support generic SPI messages and only
441a5356aefSYogesh Narayan Gaur	  supports the high-level SPI memory interface.
442a5356aefSYogesh Narayan Gaur
443d29389deSDavid Brownellconfig SPI_GPIO
444d29389deSDavid Brownell	tristate "GPIO-based bitbanging SPI Master"
4455c2301a9SGeert Uytterhoeven	depends on GPIOLIB || COMPILE_TEST
446d29389deSDavid Brownell	select SPI_BITBANG
447d29389deSDavid Brownell	help
448d29389deSDavid Brownell	  This simple GPIO bitbanging SPI master uses the arch-neutral GPIO
449d29389deSDavid Brownell	  interface to manage MOSI, MISO, SCK, and chipselect signals.  SPI
450d29389deSDavid Brownell	  slaves connected to a bus using this driver are configured as usual,
451d29389deSDavid Brownell	  except that the spi_board_info.controller_data holds the GPIO number
452d29389deSDavid Brownell	  for the chipselect used by this controller driver.
453d29389deSDavid Brownell
454d29389deSDavid Brownell	  Note that this driver often won't achieve even 1 Mbit/sec speeds,
455d29389deSDavid Brownell	  making it unusually slow for SPI.  If your platform can inline
456d29389deSDavid Brownell	  GPIO operations, you should be able to leverage that for better
457d29389deSDavid Brownell	  speed with a custom version of this driver; see the source code.
458d29389deSDavid Brownell
459deba2580SAndrew Brestickerconfig SPI_IMG_SPFI
460deba2580SAndrew Bresticker	tristate "IMG SPFI controller"
461deba2580SAndrew Bresticker	depends on MIPS || COMPILE_TEST
462deba2580SAndrew Bresticker	help
463deba2580SAndrew Bresticker	  This enables support for the SPFI master controller found on
464deba2580SAndrew Bresticker	  IMG SoCs.
465deba2580SAndrew Bresticker
466b5f3294fSSascha Hauerconfig SPI_IMX
467b5f3294fSSascha Hauer	tristate "Freescale i.MX SPI controllers"
468dd1053a9SMark Brown	depends on ARCH_MXC || COMPILE_TEST
469b5f3294fSSascha Hauer	help
4702e236bafSFabio Estevam	  This enables support for the Freescale i.MX SPI controllers.
471b5f3294fSSascha Hauer
472ae5f94ccSArtur Rojekconfig SPI_INGENIC
4736d72b114S周琰杰 (Zhou Yanjie)	tristate "Ingenic SoCs SPI controller"
474ae5f94ccSArtur Rojek	depends on MACH_INGENIC || COMPILE_TEST
475ae5f94ccSArtur Rojek	help
4766d72b114S周琰杰 (Zhou Yanjie)	  This enables support for the Ingenic SoCs SPI controller.
477ae5f94ccSArtur Rojek
478ae5f94ccSArtur Rojek	  To compile this driver as a module, choose M here: the module
479ae5f94ccSArtur Rojek	  will be called spi-ingenic.
480ae5f94ccSArtur Rojek
481e23e5a05SMika Westerbergconfig SPI_INTEL
482e23e5a05SMika Westerberg	tristate
483e23e5a05SMika Westerberg
484e23e5a05SMika Westerbergconfig SPI_INTEL_PCI
4857db738b5SMauro Lima	tristate "Intel PCH/PCU SPI flash PCI driver"
486e23e5a05SMika Westerberg	depends on PCI
487e23e5a05SMika Westerberg	depends on X86 || COMPILE_TEST
488e23e5a05SMika Westerberg	depends on SPI_MEM
489e23e5a05SMika Westerberg	select SPI_INTEL
490e23e5a05SMika Westerberg	help
491e23e5a05SMika Westerberg	  This enables PCI support for the Intel PCH/PCU SPI controller in
4922ea9b08aSMauro Lima	  master mode. This controller is used to hold BIOS and other
4932ea9b08aSMauro Lima	  persistent settings. Controllers present in modern Intel hardware
4942ea9b08aSMauro Lima	  only work in hardware sequencing mode, this means that the
4952ea9b08aSMauro Lima	  controller exposes a subset of operations that makes it safer to
4962ea9b08aSMauro Lima	  use. Using this driver it is possible to upgrade BIOS directly
4972ea9b08aSMauro Lima	  from Linux.
498e23e5a05SMika Westerberg
499e23e5a05SMika Westerberg	  To compile this driver as a module, choose M here: the module
500e23e5a05SMika Westerberg	  will be called spi-intel-pci.
501e23e5a05SMika Westerberg
502e23e5a05SMika Westerbergconfig SPI_INTEL_PLATFORM
503e23e5a05SMika Westerberg	tristate "Intel PCH/PCU SPI flash platform driver (DANGEROUS)"
504e23e5a05SMika Westerberg	depends on X86 || COMPILE_TEST
505e23e5a05SMika Westerberg	depends on SPI_MEM
506e23e5a05SMika Westerberg	select SPI_INTEL
507e23e5a05SMika Westerberg	help
508e23e5a05SMika Westerberg	  This enables platform support for the Intel PCH/PCU SPI
5097db738b5SMauro Lima	  controller in master mode that is used to hold BIOS and other
5102ea9b08aSMauro Lima	  persistent settings. Most of these controllers work in
5112ea9b08aSMauro Lima	  software sequencing mode, which means that the controller
5122ea9b08aSMauro Lima	  exposes the low level SPI-NOR opcodes to the software. Using
5132ea9b08aSMauro Lima	  this driver it is possible to upgrade BIOS directly from Linux.
514e23e5a05SMika Westerberg
515e23e5a05SMika Westerberg	  Say N here unless you know what you are doing. Overwriting the
516e23e5a05SMika Westerberg	  SPI flash may render the system unbootable.
517e23e5a05SMika Westerberg
518e23e5a05SMika Westerberg	  To compile this driver as a module, choose M here: the module
519e23e5a05SMika Westerberg	  will be called spi-intel-platform.
520e23e5a05SMika Westerberg
5212cb1b3b3SRich Felkerconfig SPI_JCORE
5222cb1b3b3SRich Felker	tristate "J-Core SPI Master"
5232cb1b3b3SRich Felker	depends on OF && (SUPERH || COMPILE_TEST)
5242cb1b3b3SRich Felker	help
5252cb1b3b3SRich Felker	  This enables support for the SPI master controller in the J-Core
5262cb1b3b3SRich Felker	  synthesizable, open source SoC.
5272cb1b3b3SRich Felker
52878961a57SKaiwan N Billimoriaconfig SPI_LM70_LLP
52978961a57SKaiwan N Billimoria	tristate "Parallel port adapter for LM70 eval board (DEVELOPMENT)"
5306d1f56aaSKees Cook	depends on PARPORT
53178961a57SKaiwan N Billimoria	select SPI_BITBANG
53278961a57SKaiwan N Billimoria	help
53378961a57SKaiwan N Billimoria	  This driver supports the NS LM70 LLP Evaluation Board,
53478961a57SKaiwan N Billimoria	  which interfaces to an LM70 temperature sensor using
53578961a57SKaiwan N Billimoria	  a parallel port.
53678961a57SKaiwan N Billimoria
5376c7a8640SYinbo Zhuconfig SPI_LOONGSON_CORE
5386c7a8640SYinbo Zhu	tristate
5396c7a8640SYinbo Zhu	depends on LOONGARCH || COMPILE_TEST
5406c7a8640SYinbo Zhu
5416c7a8640SYinbo Zhuconfig SPI_LOONGSON_PCI
5426c7a8640SYinbo Zhu	tristate "Loongson SPI Controller PCI Driver Support"
5436c7a8640SYinbo Zhu	select SPI_LOONGSON_CORE
5446c7a8640SYinbo Zhu	depends on PCI && (LOONGARCH || COMPILE_TEST)
5456c7a8640SYinbo Zhu	help
5466c7a8640SYinbo Zhu	  This bus driver supports the Loongson SPI hardware controller in
5476c7a8640SYinbo Zhu	  the Loongson platforms and supports to use PCI framework to
5486c7a8640SYinbo Zhu	  register SPI device resources.
5496c7a8640SYinbo Zhu	  Say Y or M here if you want to use the SPI controller on
5506c7a8640SYinbo Zhu	  Loongson platform.
5516c7a8640SYinbo Zhu
5526c7a8640SYinbo Zhuconfig SPI_LOONGSON_PLATFORM
5536c7a8640SYinbo Zhu	tristate "Loongson SPI Controller Platform Driver Support"
5546c7a8640SYinbo Zhu	select SPI_LOONGSON_CORE
5556c7a8640SYinbo Zhu	depends on OF && (LOONGARCH || COMPILE_TEST)
5566c7a8640SYinbo Zhu	help
5576c7a8640SYinbo Zhu	  This bus driver supports the Loongson SPI hardware controller in
5586c7a8640SYinbo Zhu	  the Loongson platforms and supports to use DTS framework to
5596c7a8640SYinbo Zhu	  register SPI device resources.
5606c7a8640SYinbo Zhu	  Say Y or M here if you want to use the SPI controller on
5616c7a8640SYinbo Zhu	  Loongson platform.
5626c7a8640SYinbo Zhu
5637ecbfff6SSergei Ianovichconfig SPI_LP8841_RTC
5647ecbfff6SSergei Ianovich	tristate "ICP DAS LP-8841 SPI Controller for RTC"
5657ecbfff6SSergei Ianovich	depends on MACH_PXA27X_DT || COMPILE_TEST
5667ecbfff6SSergei Ianovich	help
5677ecbfff6SSergei Ianovich	  This driver provides an SPI master device to drive Maxim
5687ecbfff6SSergei Ianovich	  DS-1302 real time clock.
5697ecbfff6SSergei Ianovich
5707ecbfff6SSergei Ianovich	  Say N here unless you plan to run the kernel on an ICP DAS
5717ecbfff6SSergei Ianovich	  LP-8x4x industrial computer.
5727ecbfff6SSergei Ianovich
57342bbb709SGrant Likelyconfig SPI_MPC52xx
57442bbb709SGrant Likely	tristate "Freescale MPC52xx SPI (non-PSC) controller support"
5757433f2b7SPaul Bolle	depends on PPC_MPC52xx
57642bbb709SGrant Likely	help
57742bbb709SGrant Likely	  This drivers supports the MPC52xx SPI controller in master SPI
57842bbb709SGrant Likely	  mode.
57942bbb709SGrant Likely
58000b8fd23SDragos Carpconfig SPI_MPC52xx_PSC
58100b8fd23SDragos Carp	tristate "Freescale MPC52xx PSC SPI controller"
5826d1f56aaSKees Cook	depends on PPC_MPC52xx
58300b8fd23SDragos Carp	help
58400b8fd23SDragos Carp	  This enables using the Freescale MPC52xx Programmable Serial
58500b8fd23SDragos Carp	  Controller in master SPI mode.
58600b8fd23SDragos Carp
5876e27388fSAnatolij Gustschinconfig SPI_MPC512x_PSC
5886e27388fSAnatolij Gustschin	tristate "Freescale MPC512x PSC SPI controller"
5895e8afa34SUwe Kleine-König	depends on PPC_MPC512x
5906e27388fSAnatolij Gustschin	help
5916e27388fSAnatolij Gustschin	  This enables using the Freescale MPC5121 Programmable Serial
5926e27388fSAnatolij Gustschin	  Controller in SPI master mode.
5936e27388fSAnatolij Gustschin
594b36ece83SMingkai Huconfig SPI_FSL_LIB
595b36ece83SMingkai Hu	tristate
596e8beacbbSAndreas Larsson	depends on OF
597e8beacbbSAndreas Larsson
598e8beacbbSAndreas Larssonconfig SPI_FSL_CPM
599e8beacbbSAndreas Larsson	tristate
600b36ece83SMingkai Hu	depends on FSL_SOC
601b36ece83SMingkai Hu
6023272029fSMingkai Huconfig SPI_FSL_SPI
60338455d7aSEsben Haabendal	tristate "Freescale SPI controller and Aeroflex Gaisler GRLIB SPI controller"
604e8beacbbSAndreas Larsson	depends on OF
605b36ece83SMingkai Hu	select SPI_FSL_LIB
606e8beacbbSAndreas Larsson	select SPI_FSL_CPM if FSL_SOC
607ccf06998SKumar Gala	help
6083272029fSMingkai Hu	  This enables using the Freescale SPI controllers in master mode.
6093272029fSMingkai Hu	  MPC83xx platform uses the controller in cpu mode or CPM/QE mode.
6103272029fSMingkai Hu	  MPC8569 uses the controller in QE mode, MPC8610 in cpu mode.
611447b0c7bSAndreas Larsson	  This also enables using the Aeroflex Gaisler GRLIB SPI controller in
612447b0c7bSAndreas Larsson	  master mode.
613ccf06998SKumar Gala
614349ad66cSChao Fuconfig SPI_FSL_DSPI
615349ad66cSChao Fu	tristate "Freescale DSPI controller"
6161acbdeb9SChao Fu	select REGMAP_MMIO
617ec7ed770SAngelo Dureghello	depends on SOC_VF610 || SOC_LS1021A || ARCH_LAYERSCAPE || M5441x || COMPILE_TEST
618349ad66cSChao Fu	help
619349ad66cSChao Fu	  This enables support for the Freescale DSPI controller in master
6200dcdcd0eSAngelo Dureghello	  mode. VF610, LS1021A and ColdFire platforms uses the controller.
621349ad66cSChao Fu
6228b60d6c2SMingkai Huconfig SPI_FSL_ESPI
62338455d7aSEsben Haabendal	tristate "Freescale eSPI controller"
6248b60d6c2SMingkai Hu	depends on FSL_SOC
6258b60d6c2SMingkai Hu	help
6268b60d6c2SMingkai Hu	  This enables using the Freescale eSPI controllers in master mode.
6278b60d6c2SMingkai Hu	  From MPC8536, 85xx platform uses the controller, and all P10xx,
6288b60d6c2SMingkai Hu	  P20xx, P30xx,P40xx, P50xx uses this controller.
6298b60d6c2SMingkai Hu
630caee8e38SWentong Wuconfig SPI_LJCA
631caee8e38SWentong Wu	tristate "Intel La Jolla Cove Adapter SPI support"
632caee8e38SWentong Wu	depends on USB_LJCA
633caee8e38SWentong Wu	default USB_LJCA
634caee8e38SWentong Wu	help
635caee8e38SWentong Wu	  Select this option to enable SPI driver for the Intel
636caee8e38SWentong Wu	  La Jolla Cove Adapter (LJCA) board.
637caee8e38SWentong Wu
638caee8e38SWentong Wu	  This driver can also be built as a module. If so, the module
639caee8e38SWentong Wu	  will be called spi-ljca.
640caee8e38SWentong Wu
641454fa271SNeil Armstrongconfig SPI_MESON_SPICC
642454fa271SNeil Armstrong	tristate "Amlogic Meson SPICC controller"
6433e0cf4d3SSunny Luo	depends on COMMON_CLK
644454fa271SNeil Armstrong	depends on ARCH_MESON || COMPILE_TEST
645454fa271SNeil Armstrong	help
646454fa271SNeil Armstrong	  This enables master mode support for the SPICC (SPI communication
647454fa271SNeil Armstrong	  controller) available in Amlogic Meson SoCs.
648454fa271SNeil Armstrong
649c3e4bc54SBeniamino Galvaniconfig SPI_MESON_SPIFC
650c3e4bc54SBeniamino Galvani	tristate "Amlogic Meson SPIFC controller"
651c3e4bc54SBeniamino Galvani	depends on ARCH_MESON || COMPILE_TEST
6521327ecd4SBeniamino Galvani	select REGMAP_MMIO
653c3e4bc54SBeniamino Galvani	help
654c3e4bc54SBeniamino Galvani	  This enables master mode support for the SPIFC (SPI flash
655c3e4bc54SBeniamino Galvani	  controller) available in Amlogic Meson SoCs.
656c3e4bc54SBeniamino Galvani
6579ac8d176SConor Dooleyconfig SPI_MICROCHIP_CORE
6589ac8d176SConor Dooley	tristate "Microchip FPGA SPI controllers"
6599ac8d176SConor Dooley	depends on SPI_MASTER
6609ac8d176SConor Dooley	help
6619ac8d176SConor Dooley	  This enables the SPI driver for Microchip FPGA SPI controllers.
6629ac8d176SConor Dooley	  Say Y or M here if you want to use the "hard" controllers on
6639ac8d176SConor Dooley	  PolarFire SoC.
6649ac8d176SConor Dooley	  If built as a module, it will be called spi-microchip-core.
6659ac8d176SConor Dooley
6668596124cSNaga Sureshkumar Relliconfig SPI_MICROCHIP_CORE_QSPI
6678596124cSNaga Sureshkumar Relli	tristate "Microchip FPGA QSPI controllers"
6688596124cSNaga Sureshkumar Relli	depends on SPI_MASTER
6698596124cSNaga Sureshkumar Relli	help
6708596124cSNaga Sureshkumar Relli	  This enables the QSPI driver for Microchip FPGA QSPI controllers.
6718596124cSNaga Sureshkumar Relli	  Say Y or M here if you want to use the QSPI controllers on
6728596124cSNaga Sureshkumar Relli	  PolarFire SoC.
6738596124cSNaga Sureshkumar Relli	  If built as a module, it will be called spi-microchip-core-qspi.
6748596124cSNaga Sureshkumar Relli
675a568231fSLeilk Liuconfig SPI_MT65XX
676a568231fSLeilk Liu	tristate "MediaTek SPI controller"
677a568231fSLeilk Liu	depends on ARCH_MEDIATEK || COMPILE_TEST
678a568231fSLeilk Liu	help
679a568231fSLeilk Liu	  This selects the MediaTek(R) SPI bus driver.
680a568231fSLeilk Liu	  If you want to use MediaTek(R) SPI interface,
681a568231fSLeilk Liu	  say Y or M here.If you are not sure, say N.
682a568231fSLeilk Liu	  SPI drivers for Mediatek MT65XX and MT81XX series ARM SoCs.
683a568231fSLeilk Liu
684cbd66c62SStefan Roeseconfig SPI_MT7621
685cbd66c62SStefan Roese	tristate "MediaTek MT7621 SPI Controller"
686cbd66c62SStefan Roese	depends on RALINK || COMPILE_TEST
687cbd66c62SStefan Roese	help
688cbd66c62SStefan Roese	  This selects a driver for the MediaTek MT7621 SPI Controller.
689cbd66c62SStefan Roese
690881d1ee9SChuanhong Guoconfig SPI_MTK_NOR
691881d1ee9SChuanhong Guo	tristate "MediaTek SPI NOR controller"
692881d1ee9SChuanhong Guo	depends on ARCH_MEDIATEK || COMPILE_TEST
693881d1ee9SChuanhong Guo	help
694881d1ee9SChuanhong Guo	  This enables support for SPI NOR controller found on MediaTek
6953e84cdd4STudor Ambarus	  ARM SoCs. This is a controller specifically for SPI NOR flash.
696881d1ee9SChuanhong Guo	  It can perform generic SPI transfers up to 6 bytes via generic
6973e84cdd4STudor Ambarus	  SPI interface as well as several SPI NOR specific instructions
698881d1ee9SChuanhong Guo	  via SPI MEM interface.
699881d1ee9SChuanhong Guo
700764f1b74SChuanhong Guoconfig SPI_MTK_SNFI
701764f1b74SChuanhong Guo	tristate "MediaTek SPI NAND Flash Interface"
702764f1b74SChuanhong Guo	depends on ARCH_MEDIATEK || COMPILE_TEST
703764f1b74SChuanhong Guo	depends on MTD_NAND_ECC_MEDIATEK
704764f1b74SChuanhong Guo	help
705764f1b74SChuanhong Guo	  This enables support for SPI-NAND mode on the MediaTek NAND
706764f1b74SChuanhong Guo	  Flash Interface found on MediaTek ARM SoCs. This controller
707764f1b74SChuanhong Guo	  is implemented as a SPI-MEM controller with pipelined ECC
7088613dda6SAhelenia Ziemiańska	  capability.
709764f1b74SChuanhong Guo
7101f8811a2SJonathan Neuschäferconfig SPI_WPCM_FIU
7111f8811a2SJonathan Neuschäfer	tristate "Nuvoton WPCM450 Flash Interface Unit"
7121f8811a2SJonathan Neuschäfer	depends on ARCH_NPCM || COMPILE_TEST
7131f8811a2SJonathan Neuschäfer	select REGMAP
7141f8811a2SJonathan Neuschäfer	help
7151f8811a2SJonathan Neuschäfer	  This enables support got the Flash Interface Unit SPI controller
7161f8811a2SJonathan Neuschäfer	  present in the Nuvoton WPCM450 SoC.
7171f8811a2SJonathan Neuschäfer
7181f8811a2SJonathan Neuschäfer	  This driver does not support generic SPI. The implementation only
7191f8811a2SJonathan Neuschäfer	  supports the spi-mem interface.
7201f8811a2SJonathan Neuschäfer
721ace55c41STomer Maimonconfig SPI_NPCM_FIU
722ace55c41STomer Maimon	tristate "Nuvoton NPCM FLASH Interface Unit"
723ace55c41STomer Maimon	depends on ARCH_NPCM || COMPILE_TEST
724ace55c41STomer Maimon	depends on OF && HAS_IOMEM
725ace55c41STomer Maimon	help
726ace55c41STomer Maimon	  This enables support for the Flash Interface Unit SPI controller
727ace55c41STomer Maimon	  in master mode.
728ace55c41STomer Maimon	  This driver does not support generic SPI. The implementation only
729ace55c41STomer Maimon	  supports spi-mem interface.
730ace55c41STomer Maimon
7312a22f1b3STomer Maimonconfig SPI_NPCM_PSPI
7322a22f1b3STomer Maimon	tristate "Nuvoton NPCM PSPI Controller"
7332a22f1b3STomer Maimon	depends on ARCH_NPCM || COMPILE_TEST
7342a22f1b3STomer Maimon	help
7352a22f1b3STomer Maimon	  This driver provides support for Nuvoton NPCM BMC
7362a22f1b3STomer Maimon	  Peripheral SPI controller in master mode.
7372a22f1b3STomer Maimon
73817f84b79SHauke Mehrtensconfig SPI_LANTIQ_SSC
73917f84b79SHauke Mehrtens	tristate "Lantiq SSC SPI controller"
740040f7f97SDilip Kota	depends on LANTIQ || X86 || COMPILE_TEST
74117f84b79SHauke Mehrtens	help
74217f84b79SHauke Mehrtens	  This driver supports the Lantiq SSC SPI controller in master
74317f84b79SHauke Mehrtens	  mode. This controller is found on Intel (former Lantiq) SoCs like
744040f7f97SDilip Kota	  the Danube, Falcon, xRX200, xRX300, Lightning Mountain.
74517f84b79SHauke Mehrtens
746ce792580SThomas Chouconfig SPI_OC_TINY
747ce792580SThomas Chou	tristate "OpenCores tiny SPI"
7485c2301a9SGeert Uytterhoeven	depends on GPIOLIB || COMPILE_TEST
749ce792580SThomas Chou	select SPI_BITBANG
750ce792580SThomas Chou	help
751ce792580SThomas Chou	  This is the driver for OpenCores tiny SPI master controller.
752ce792580SThomas Chou
7536b52c00fSDavid Daneyconfig SPI_OCTEON
7546b52c00fSDavid Daney	tristate "Cavium OCTEON SPI controller"
7559ddebc46SDavid Daney	depends on CAVIUM_OCTEON_SOC
7566b52c00fSDavid Daney	help
7576b52c00fSDavid Daney	  SPI host driver for the hardware found on some Cavium OCTEON
7586b52c00fSDavid Daney	  SOCs.
7596b52c00fSDavid Daney
760fdb3c18dSDavid Brownellconfig SPI_OMAP_UWIRE
761fdb3c18dSDavid Brownell	tristate "OMAP1 MicroWire"
76258d37dc1SArnd Bergmann	depends on ARCH_OMAP1 || (ARM && COMPILE_TEST)
763fdb3c18dSDavid Brownell	select SPI_BITBANG
764fdb3c18dSDavid Brownell	help
765fdb3c18dSDavid Brownell	  This hooks up to the MicroWire controller on OMAP1 chips.
766fdb3c18dSDavid Brownell
767ccdc7bf9SSamuel Ortizconfig SPI_OMAP24XX
7688ebeb545SSyed Rafiuddin	tristate "McSPI driver for OMAP"
76981df42d1SVignesh R	depends on ARCH_OMAP2PLUS || ARCH_K3 || COMPILE_TEST
7702b32e987SFranklin S Cooper Jr	select SG_SPLIT
771ccdc7bf9SSamuel Ortiz	help
7728ebeb545SSyed Rafiuddin	  SPI master controller for OMAP24XX and later Multichannel SPI
773ccdc7bf9SSamuel Ortiz	  (McSPI) modules.
77469c202afSAndrea Paterniani
775505a1495SSourav Poddarconfig SPI_TI_QSPI
776505a1495SSourav Poddar	tristate "DRA7xxx QSPI controller support"
777505a1495SSourav Poddar	depends on ARCH_OMAP2PLUS || COMPILE_TEST
778505a1495SSourav Poddar	help
779505a1495SSourav Poddar	  QSPI master controller for DRA7xxx used for flash devices.
780505a1495SSourav Poddar	  This device supports single, dual and quad read support, while
781505a1495SSourav Poddar	  it only supports single write mode.
782505a1495SSourav Poddar
78360cadec9SShadi Ammouriconfig SPI_ORION
7846d1f56aaSKees Cook	tristate "Orion SPI master"
785710a1d54SThomas Petazzoni	depends on PLAT_ORION || ARCH_MVEBU || COMPILE_TEST
78660cadec9SShadi Ammouri	help
78773482910SUwe Kleine-König	  This enables using the SPI master controller on the Orion
78873482910SUwe Kleine-König	  and MVEBU chips.
78960cadec9SShadi Ammouri
7901cc0cbeaSTharun Kumar Pconfig SPI_PCI1XXXX
7911cc0cbeaSTharun Kumar P	tristate "PCI1XXXX SPI Bus support"
7921cc0cbeaSTharun Kumar P	depends on PCI
7931cc0cbeaSTharun Kumar P	help
7941cc0cbeaSTharun Kumar P	  Say "yes" to Enable the SPI Bus support for the PCI1xxxx card
7951cc0cbeaSTharun Kumar P	  This is a PCI to SPI Bus driver
7961cc0cbeaSTharun Kumar P	  This driver can be built as module. If so, the module will be
7971cc0cbeaSTharun Kumar P	  called as spi-pci1xxxx.
7981cc0cbeaSTharun Kumar P
7991bcb9f8cSPurna Chandra Mandalconfig SPI_PIC32
8001bcb9f8cSPurna Chandra Mandal	tristate "Microchip PIC32 series SPI"
8011bcb9f8cSPurna Chandra Mandal	depends on MACH_PIC32 || COMPILE_TEST
8021bcb9f8cSPurna Chandra Mandal	help
8031bcb9f8cSPurna Chandra Mandal	  SPI driver for Microchip PIC32 SPI master controller.
8041bcb9f8cSPurna Chandra Mandal
8053270ac23SPurna Chandra Mandalconfig SPI_PIC32_SQI
8063270ac23SPurna Chandra Mandal	tristate "Microchip PIC32 Quad SPI driver"
8073270ac23SPurna Chandra Mandal	depends on MACH_PIC32 || COMPILE_TEST
8083270ac23SPurna Chandra Mandal	help
8093270ac23SPurna Chandra Mandal	  SPI driver for PIC32 Quad SPI controller.
8103270ac23SPurna Chandra Mandal
811b43d65f7SLinus Walleijconfig SPI_PL022
8127f9a4b97SLinus Walleij	tristate "ARM AMBA PL022 SSP controller"
8137f9a4b97SLinus Walleij	depends on ARM_AMBA
814f33b29eeSlinus.walleij@stericsson.com	default y if ARCH_REALVIEW
815f33b29eeSlinus.walleij@stericsson.com	default y if INTEGRATOR_IMPD1
816f33b29eeSlinus.walleij@stericsson.com	default y if ARCH_VERSATILE
817b43d65f7SLinus Walleij	help
818b43d65f7SLinus Walleij	  This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
819b43d65f7SLinus Walleij	  controller. If you have an embedded system with an AMBA(R)
820b43d65f7SLinus Walleij	  bus and a PL022 controller, say Y or M here.
821b43d65f7SLinus Walleij
82244dab88eSSteven A. Falcoconfig SPI_PPC4xx
82344dab88eSSteven A. Falco	tristate "PPC4xx SPI Controller"
8245e8afa34SUwe Kleine-König	depends on PPC32 && 4xx
82544dab88eSSteven A. Falco	select SPI_BITBANG
82644dab88eSSteven A. Falco	help
82744dab88eSSteven A. Falco	  This selects a driver for the PPC4xx SPI Controller.
82844dab88eSSteven A. Falco
829e0c9905eSStephen Streetconfig SPI_PXA2XX
830e0c9905eSStephen Street	tristate "PXA2xx SSP SPI master"
8313af201a4SAndy Shevchenko	depends on ARCH_PXA || ARCH_MMP || (X86 && (PCI || ACPI)) || COMPILE_TEST
832128345b1SArnd Bergmann	select PXA_SSP if ARCH_PXA || ARCH_MMP
833e0c9905eSStephen Street	help
834d6ea3df0SSebastian Andrzej Siewior	  This enables using a PXA2xx or Sodaville SSP port as a SPI master
835*2d069c11SAndy Shevchenko	  controller. The driver can be configured to use any SSP port.
836d6ea3df0SSebastian Andrzej Siewior
837d6ea3df0SSebastian Andrzej Siewiorconfig SPI_PXA2XX_PCI
838afa93c90SChew, Chiau Ee	def_tristate SPI_PXA2XX && PCI && COMMON_CLK
839e0c9905eSStephen Street
84064e36824Saddy keconfig SPI_ROCKCHIP
84164e36824Saddy ke	tristate "Rockchip SPI controller driver"
842330a200dSMark Brown	depends on ARCH_ROCKCHIP || COMPILE_TEST
84364e36824Saddy ke	help
84464e36824Saddy ke	  This selects a driver for Rockchip SPI controller.
84564e36824Saddy ke
84664e36824Saddy ke	  If you say yes to this option, support will be included for
84764e36824Saddy ke	  RK3066, RK3188 and RK3288 families of SPI controller.
84864e36824Saddy ke	  Rockchip SPI controller support DMA transport and PIO mode.
84964e36824Saddy ke	  The main usecase of this controller is to use spi flash as boot
85064e36824Saddy ke	  device.
85164e36824Saddy ke
8520b89fc0aSChris Morganconfig SPI_ROCKCHIP_SFC
8530b89fc0aSChris Morgan	tristate "Rockchip Serial Flash Controller (SFC)"
8540b89fc0aSChris Morgan	depends on ARCH_ROCKCHIP || COMPILE_TEST
8550b89fc0aSChris Morgan	depends on HAS_IOMEM && HAS_DMA
8560b89fc0aSChris Morgan	help
8570b89fc0aSChris Morgan	  This enables support for Rockchip serial flash controller. This
8580b89fc0aSChris Morgan	  is a specialized controller used to access SPI flash on some
8590b89fc0aSChris Morgan	  Rockchip SOCs.
8600b89fc0aSChris Morgan
8610b89fc0aSChris Morgan	  ROCKCHIP SFC supports DMA and PIO modes. When DMA is not available,
8620b89fc0aSChris Morgan	  the driver automatically falls back to PIO mode.
8630b89fc0aSChris Morgan
86405aec357SBert Vermeulenconfig SPI_RB4XX
86505aec357SBert Vermeulen	tristate "Mikrotik RB4XX SPI master"
86605aec357SBert Vermeulen	depends on SPI_MASTER && ATH79
86705aec357SBert Vermeulen	help
86805aec357SBert Vermeulen	  SPI controller driver for the Mikrotik RB4xx series boards.
86905aec357SBert Vermeulen
870eb8d6d46SSergei Shtylyovconfig SPI_RPCIF
871eb8d6d46SSergei Shtylyov	tristate "Renesas RPC-IF SPI driver"
872eb8d6d46SSergei Shtylyov	depends on RENESAS_RPCIF
873eb8d6d46SSergei Shtylyov	help
874f4a10fc4SAdam Ford	  SPI driver for Renesas R-Car Gen3 or RZ/G2 RPC-IF.
875eb8d6d46SSergei Shtylyov
8760b2182ddSShimoda, Yoshihiroconfig SPI_RSPI
877e290c343SGeert Uytterhoeven	tristate "Renesas RSPI/QSPI controller"
8783aec3166SSimon Horman	depends on SUPERH || ARCH_RENESAS || COMPILE_TEST
8790b2182ddSShimoda, Yoshihiro	help
880e290c343SGeert Uytterhoeven	  SPI driver for Renesas RSPI and QSPI blocks.
8810b2182ddSShimoda, Yoshihiro
88283c624d8SFabrizio Castroconfig SPI_RZV2M_CSI
883e1ef683cSGeert Uytterhoeven	tristate "Renesas RZ/V2M CSI controller"
88483c624d8SFabrizio Castro	depends on ARCH_RENESAS || COMPILE_TEST
88583c624d8SFabrizio Castro	help
886a4f7ef6dSFabrizio Castro	  SPI driver for Renesas RZ/V2M Clocked Serial Interface (CSI).
887a4f7ef6dSFabrizio Castro	  CSI supports both SPI host and SPI target roles.
88883c624d8SFabrizio Castro
88904000dc6SGirish Mahadevanconfig SPI_QCOM_QSPI
89004000dc6SGirish Mahadevan	tristate "QTI QSPI controller"
891ada85054SMark Brown	depends on ARCH_QCOM || COMPILE_TEST
89204000dc6SGirish Mahadevan	help
89304000dc6SGirish Mahadevan	  QSPI(Quad SPI) driver for Qualcomm QSPI controller.
89404000dc6SGirish Mahadevan
89564ff247aSIvan T. Ivanovconfig SPI_QUP
89664ff247aSIvan T. Ivanov	tristate "Qualcomm SPI controller with QUP interface"
8972abaad67SAlex Dewar	depends on ARCH_QCOM || COMPILE_TEST
89864ff247aSIvan T. Ivanov	help
89964ff247aSIvan T. Ivanov	  Qualcomm Universal Peripheral (QUP) core is an AHB slave that
90064ff247aSIvan T. Ivanov	  provides a common data path (an output FIFO and an input FIFO)
90164ff247aSIvan T. Ivanov	  for serial peripheral interface (SPI) mini-core. SPI in master
90264ff247aSIvan T. Ivanov	  mode supports up to 50MHz, up to four chip selects, programmable
90364ff247aSIvan T. Ivanov	  data path from 4 bits to 32 bits and numerous protocol variants.
90464ff247aSIvan T. Ivanov
90564ff247aSIvan T. Ivanov	  This driver can also be built as a module.  If so, the module
90664ff247aSIvan T. Ivanov	  will be called spi_qup.
9078ae12a0dSDavid Brownell
908561de45fSGirish Mahadevanconfig SPI_QCOM_GENI
909561de45fSGirish Mahadevan	tristate "Qualcomm GENI based SPI controller"
910561de45fSGirish Mahadevan	depends on QCOM_GENI_SE
911561de45fSGirish Mahadevan	help
912561de45fSGirish Mahadevan	  This driver supports GENI serial engine based SPI controller in
913561de45fSGirish Mahadevan	  master mode on the Qualcomm Technologies Inc.'s SoCs. If you say
914561de45fSGirish Mahadevan	  yes to this option, support will be included for the built-in SPI
915561de45fSGirish Mahadevan	  interface on the Qualcomm Technologies Inc.'s SoCs.
916561de45fSGirish Mahadevan
917561de45fSGirish Mahadevan	  This driver can also be built as a module.  If so, the module
918561de45fSGirish Mahadevan	  will be called spi-geni-qcom.
919561de45fSGirish Mahadevan
920230d42d4SJassi Brarconfig SPI_S3C64XX
9215b71cbf0SKrzysztof Kozlowski	tristate "Samsung S3C64XX/Exynos SoC series type SPI"
922db8230d2SArnd Bergmann	depends on (PLAT_SAMSUNG || ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST)
923230d42d4SJassi Brar	help
9245b71cbf0SKrzysztof Kozlowski	  SPI driver for Samsung S3C64XX, S5Pv210 and Exynos SoCs.
9255b71cbf0SKrzysztof Kozlowski	  Choose Y/M here only if you build for such Samsung SoC.
926230d42d4SJassi Brar
9273ce8859eSGuenter Roeckconfig SPI_SC18IS602
9283ce8859eSGuenter Roeck	tristate "NXP SC18IS602/602B/603 I2C to SPI bridge"
9293ce8859eSGuenter Roeck	depends on I2C
9303ce8859eSGuenter Roeck	help
9313ce8859eSGuenter Roeck	  SPI driver for NXP SC18IS602/602B/603 I2C to SPI bridge.
9323ce8859eSGuenter Roeck
9338051effcSMagnus Dammconfig SPI_SH_MSIOF
9348051effcSMagnus Damm	tristate "SuperH MSIOF SPI controller"
935e5b43ed2SGeert Uytterhoeven	depends on HAVE_CLK
9366ffc84ddSGeert Uytterhoeven	depends on ARCH_SHMOBILE || ARCH_RENESAS || COMPILE_TEST
9378051effcSMagnus Damm	help
938746aeffdSBastian Hecht	  SPI driver for SuperH and SH Mobile MSIOF blocks.
9398051effcSMagnus Damm
9405c05dd07SYoshihiro Shimodaconfig SPI_SH
9415c05dd07SYoshihiro Shimoda	tristate "SuperH SPI controller"
942dd1053a9SMark Brown	depends on SUPERH || COMPILE_TEST
9435c05dd07SYoshihiro Shimoda	help
9445c05dd07SYoshihiro Shimoda	  SPI driver for SuperH SPI blocks.
9455c05dd07SYoshihiro Shimoda
94637e46640SMagnus Dammconfig SPI_SH_SCI
94737e46640SMagnus Damm	tristate "SuperH SCI SPI controller"
9486291fe2aSRobert P. J. Day	depends on SUPERH
94937e46640SMagnus Damm	select SPI_BITBANG
95037e46640SMagnus Damm	help
95137e46640SMagnus Damm	  SPI driver for SuperH SCI blocks.
95237e46640SMagnus Damm
953d1c8bbd7SKuninori Morimotoconfig SPI_SH_HSPI
954d1c8bbd7SKuninori Morimoto	tristate "SuperH HSPI controller"
9553aec3166SSimon Horman	depends on ARCH_RENESAS || COMPILE_TEST
956d1c8bbd7SKuninori Morimoto	help
957d1c8bbd7SKuninori Morimoto	  SPI driver for SuperH HSPI blocks.
958d1c8bbd7SKuninori Morimoto
959484a9a68SYash Shahconfig SPI_SIFIVE
960484a9a68SYash Shah	tristate "SiFive SPI controller"
961484a9a68SYash Shah	depends on HAS_IOMEM
962484a9a68SYash Shah	help
963484a9a68SYash Shah	  This exposes the SPI controller IP from SiFive.
964484a9a68SYash Shah
965805be7ddSLeilk Liuconfig SPI_SLAVE_MT27XX
966805be7ddSLeilk Liu	tristate "MediaTek SPI slave device"
967805be7ddSLeilk Liu	depends on ARCH_MEDIATEK || COMPILE_TEST
968805be7ddSLeilk Liu	depends on SPI_SLAVE
969805be7ddSLeilk Liu	help
970805be7ddSLeilk Liu	  This selects the MediaTek(R) SPI slave device driver.
971805be7ddSLeilk Liu	  If you want to use MediaTek(R) SPI slave interface,
972805be7ddSLeilk Liu	  say Y or M here.If you are not sure, say N.
973805be7ddSLeilk Liu	  SPI slave drivers for Mediatek MT27XX series ARM SoCs.
974805be7ddSLeilk Liu
9751b74dd64SKunihiko Hayashiconfig SPI_SN_F_OSPI
9761b74dd64SKunihiko Hayashi	tristate "Socionext F_OSPI SPI flash controller"
9771b74dd64SKunihiko Hayashi	depends on OF && HAS_IOMEM
9781b74dd64SKunihiko Hayashi	depends on SPI_MEM
9791b74dd64SKunihiko Hayashi	help
9801b74dd64SKunihiko Hayashi	  This enables support for the Socionext F_OSPI controller
9811b74dd64SKunihiko Hayashi	  for connecting an SPI Flash memory over up to 8-bit wide bus.
9821b74dd64SKunihiko Hayashi	  It supports indirect access mode only.
9831b74dd64SKunihiko Hayashi
984e7d973a3SLanqing Liuconfig SPI_SPRD
985e7d973a3SLanqing Liu	tristate "Spreadtrum SPI controller"
986e7d973a3SLanqing Liu	depends on ARCH_SPRD || COMPILE_TEST
987e7d973a3SLanqing Liu	help
988e7d973a3SLanqing Liu	  SPI driver for Spreadtrum SoCs.
989e7d973a3SLanqing Liu
9907e2903cbSBaolin Wangconfig SPI_SPRD_ADI
9917e2903cbSBaolin Wang	tristate "Spreadtrum ADI controller"
9927e2903cbSBaolin Wang	depends on ARCH_SPRD || COMPILE_TEST
993e83f3742SArnd Bergmann	depends on HWSPINLOCK || (COMPILE_TEST && !HWSPINLOCK)
9947e2903cbSBaolin Wang	help
9957e2903cbSBaolin Wang	  ADI driver based on SPI for Spreadtrum SoCs.
9967e2903cbSBaolin Wang
997dcbe0d84SAmelie Delaunayconfig SPI_STM32
998dcbe0d84SAmelie Delaunay	tristate "STMicroelectronics STM32 SPI controller"
999dcbe0d84SAmelie Delaunay	depends on ARCH_STM32 || COMPILE_TEST
1000e40335fcSValentin Caron	select SPI_SLAVE
1001dcbe0d84SAmelie Delaunay	help
1002bb35c9f9SCezary Gapinski	  SPI driver for STMicroelectronics STM32 SoCs.
1003dcbe0d84SAmelie Delaunay
1004dcbe0d84SAmelie Delaunay	  STM32 SPI controller supports DMA and PIO modes. When DMA
1005dcbe0d84SAmelie Delaunay	  is not available, the driver automatically falls back to
1006dcbe0d84SAmelie Delaunay	  PIO mode.
1007dcbe0d84SAmelie Delaunay
1008c530cd1dSLudovic Barreconfig SPI_STM32_QSPI
1009c530cd1dSLudovic Barre	tristate "STMicroelectronics STM32 QUAD SPI controller"
1010c530cd1dSLudovic Barre	depends on ARCH_STM32 || COMPILE_TEST
1011c530cd1dSLudovic Barre	depends on OF
10126829222bSPatrice Chotard	depends on SPI_MEM
1013c530cd1dSLudovic Barre	help
1014c530cd1dSLudovic Barre	  This enables support for the Quad SPI controller in master mode.
1015c530cd1dSLudovic Barre	  This driver does not support generic SPI. The implementation only
1016c530cd1dSLudovic Barre	  supports spi-mem interface.
1017c530cd1dSLudovic Barre
10189e862375SLee Jonesconfig SPI_ST_SSC4
10199e862375SLee Jones	tristate "STMicroelectronics SPI SSC-based driver"
102083fefd2dSAxel Lin	depends on ARCH_STI || COMPILE_TEST
10219e862375SLee Jones	help
10229e862375SLee Jones	  STMicroelectronics SoCs support for SPI. If you say yes to
10239e862375SLee Jones	  this option, support will be included for the SSC driven SPI.
10249e862375SLee Jones
1025b5f65179SMaxime Ripardconfig SPI_SUN4I
1026b5f65179SMaxime Ripard	tristate "Allwinner A10 SoCs SPI controller"
1027b5f65179SMaxime Ripard	depends on ARCH_SUNXI || COMPILE_TEST
1028b5f65179SMaxime Ripard	help
1029b5f65179SMaxime Ripard	  SPI driver for Allwinner sun4i, sun5i and sun7i SoCs
1030b5f65179SMaxime Ripard
10313558fe90SMaxime Ripardconfig SPI_SUN6I
10323558fe90SMaxime Ripard	tristate "Allwinner A31 SPI controller"
10333558fe90SMaxime Ripard	depends on ARCH_SUNXI || COMPILE_TEST
10347961656aSMark Brown	depends on RESET_CONTROLLER
10353558fe90SMaxime Ripard	help
10363558fe90SMaxime Ripard	  This enables using the SPI controller on the Allwinner A31 SoCs.
10373558fe90SMaxime Ripard
1038f62ca4e2SLi-hao Kuoconfig SPI_SUNPLUS_SP7021
1039f62ca4e2SLi-hao Kuo	tristate "Sunplus SP7021 SPI controller"
1040f62ca4e2SLi-hao Kuo	depends on SOC_SP7021 || COMPILE_TEST
1041f62ca4e2SLi-hao Kuo	help
1042f62ca4e2SLi-hao Kuo	  This enables Sunplus SP7021 SPI controller driver on the SP7021 SoCs.
1043f62ca4e2SLi-hao Kuo	  This driver can also be built as a module. If so, the module will be
1044f62ca4e2SLi-hao Kuo	  called as spi-sunplus-sp7021.
1045f62ca4e2SLi-hao Kuo
1046f62ca4e2SLi-hao Kuo	  If you have a  Sunplus SP7021 platform say Y here.
1047f62ca4e2SLi-hao Kuo	  If unsure, say N.
1048f62ca4e2SLi-hao Kuo
1049b0823ee3SMasahisa Kojimaconfig SPI_SYNQUACER
1050b0823ee3SMasahisa Kojima	tristate "Socionext's SynQuacer HighSpeed SPI controller"
1051b0823ee3SMasahisa Kojima	depends on ARCH_SYNQUACER || COMPILE_TEST
1052b0823ee3SMasahisa Kojima	help
1053b0823ee3SMasahisa Kojima	  SPI driver for Socionext's High speed SPI controller which provides
1054b0823ee3SMasahisa Kojima	  various operating modes for interfacing to serial peripheral devices
1055b0823ee3SMasahisa Kojima	  that use the de-facto standard SPI protocol.
1056b0823ee3SMasahisa Kojima
1057b0823ee3SMasahisa Kojima	  It also supports the new dual-bit and quad-bit SPI protocol.
1058b0823ee3SMasahisa Kojima
1059b942d80bSMason Yangconfig SPI_MXIC
1060b942d80bSMason Yang	tristate "Macronix MX25F0A SPI controller"
1061b942d80bSMason Yang	depends on SPI_MASTER
106200360ebaSMiquel Raynal	imply MTD_NAND_ECC_MXIC
1063b942d80bSMason Yang	help
1064b942d80bSMason Yang	  This selects the Macronix MX25F0A SPI controller driver.
1065b942d80bSMason Yang
1066646781d3SMarek Vasutconfig SPI_MXS
1067646781d3SMarek Vasut	tristate "Freescale MXS SPI controller"
1068646781d3SMarek Vasut	depends on ARCH_MXS
1069646781d3SMarek Vasut	select STMP_DEVICE
1070646781d3SMarek Vasut	help
1071646781d3SMarek Vasut	  SPI driver for Freescale MXS devices.
1072646781d3SMarek Vasut
1073921fc183SSowjanya Komatineniconfig SPI_TEGRA210_QUAD
1074921fc183SSowjanya Komatineni	tristate "NVIDIA Tegra QSPI Controller"
1075921fc183SSowjanya Komatineni	depends on ARCH_TEGRA || COMPILE_TEST
1076921fc183SSowjanya Komatineni	depends on RESET_CONTROLLER
1077921fc183SSowjanya Komatineni	help
1078921fc183SSowjanya Komatineni	  QSPI driver for NVIDIA Tegra QSPI Controller interface. This
1079921fc183SSowjanya Komatineni	  controller is different from the SPI controller and is available
1080921fc183SSowjanya Komatineni	  on Tegra SoCs starting from Tegra210.
1081921fc183SSowjanya Komatineni
1082f333a331SLaxman Dewanganconfig SPI_TEGRA114
1083f333a331SLaxman Dewangan	tristate "NVIDIA Tegra114 SPI Controller"
1084dd1053a9SMark Brown	depends on (ARCH_TEGRA && TEGRA20_APB_DMA) || COMPILE_TEST
1085e5b43ed2SGeert Uytterhoeven	depends on RESET_CONTROLLER
1086f333a331SLaxman Dewangan	help
1087f333a331SLaxman Dewangan	  SPI driver for NVIDIA Tegra114 SPI Controller interface. This controller
1088f333a331SLaxman Dewangan	  is different than the older SoCs SPI controller and also register interface
1089f333a331SLaxman Dewangan	  get changed with this controller.
1090f333a331SLaxman Dewangan
10918528547bSLaxman Dewanganconfig SPI_TEGRA20_SFLASH
10928528547bSLaxman Dewangan	tristate "Nvidia Tegra20 Serial flash Controller"
1093dd1053a9SMark Brown	depends on ARCH_TEGRA || COMPILE_TEST
1094ff2251e3SStephen Warren	depends on RESET_CONTROLLER
10958528547bSLaxman Dewangan	help
10968528547bSLaxman Dewangan	  SPI driver for Nvidia Tegra20 Serial flash Controller interface.
10978528547bSLaxman Dewangan	  The main usecase of this controller is to use spi flash as boot
10988528547bSLaxman Dewangan	  device.
10998528547bSLaxman Dewangan
1100dc4dc360SLaxman Dewanganconfig SPI_TEGRA20_SLINK
1101dc4dc360SLaxman Dewangan	tristate "Nvidia Tegra20/Tegra30 SLINK Controller"
1102dd1053a9SMark Brown	depends on (ARCH_TEGRA && TEGRA20_APB_DMA) || COMPILE_TEST
1103e5b43ed2SGeert Uytterhoeven	depends on RESET_CONTROLLER
1104dc4dc360SLaxman Dewangan	help
1105dc4dc360SLaxman Dewangan	  SPI driver for Nvidia Tegra20/Tegra30 SLINK Controller interface.
1106dc4dc360SLaxman Dewangan
11077347a6c7SJan Glauberconfig SPI_THUNDERX
11087347a6c7SJan Glauber	tristate "Cavium ThunderX SPI controller"
11097347a6c7SJan Glauber	depends on PCI && 64BIT && (ARM64 || COMPILE_TEST)
11107347a6c7SJan Glauber	help
11117347a6c7SJan Glauber	  SPI host driver for the hardware found on Cavium ThunderX
11127347a6c7SJan Glauber	  SOCs.
11137347a6c7SJan Glauber
1114e8b17b5bSMasayuki Ohtakeconfig SPI_TOPCLIFF_PCH
111592b3a5c1STomoya MORINAGA	tristate "Intel EG20T PCH/LAPIS Semicon IOH(ML7213/ML7223/ML7831) SPI"
1116f05ca854SPaul Burton	depends on PCI && (X86_32 || MIPS || COMPILE_TEST)
1117e8b17b5bSMasayuki Ohtake	help
1118cdbc8f04SGrant Likely	  SPI driver for the Topcliff PCH (Platform Controller Hub) SPI bus
1119cdbc8f04SGrant Likely	  used in some x86 embedded processors.
1120e8b17b5bSMasayuki Ohtake
112192b3a5c1STomoya MORINAGA	  This driver also supports the ML7213/ML7223/ML7831, a companion chip
112292b3a5c1STomoya MORINAGA	  for the Atom E6xx series and compatible with the Intel EG20T PCH.
1123f016aeb6STomoya MORINAGA
11245ba155a4SKeiji Hayashibaraconfig SPI_UNIPHIER
11255ba155a4SKeiji Hayashibara	tristate "Socionext UniPhier SPI Controller"
11265ba155a4SKeiji Hayashibara	depends on (ARCH_UNIPHIER || COMPILE_TEST) && OF
11276a091404SKunihiko Hayashi	depends on HAS_IOMEM
11285ba155a4SKeiji Hayashibara	help
11295ba155a4SKeiji Hayashibara	  This enables a driver for the Socionext UniPhier SoC SCSSI SPI controller.
11305ba155a4SKeiji Hayashibara
11315ba155a4SKeiji Hayashibara	  UniPhier SoCs have SCSSI and MCSSI SPI controllers.
11325ba155a4SKeiji Hayashibara	  Every UniPhier SoC has SCSSI which supports single channel.
11335ba155a4SKeiji Hayashibara	  Older UniPhier Pro4/Pro5 also has MCSSI which support multiple channels.
11345ba155a4SKeiji Hayashibara	  This driver supports SCSSI only.
11355ba155a4SKeiji Hayashibara
11365ba155a4SKeiji Hayashibara	  If your SoC supports SCSSI, say Y here.
11375ba155a4SKeiji Hayashibara
1138b3165900SLars-Peter Clausenconfig SPI_XCOMM
1139b3165900SLars-Peter Clausen	tristate "Analog Devices AD-FMCOMMS1-EBZ SPI-I2C-bridge driver"
1140b3165900SLars-Peter Clausen	depends on I2C
1141b3165900SLars-Peter Clausen	help
1142b3165900SLars-Peter Clausen	  Support for the SPI-I2C bridge found on the Analog Devices
1143b3165900SLars-Peter Clausen	  AD-FMCOMMS1-EBZ board.
1144b3165900SLars-Peter Clausen
1145ae918c02SAndrei Konovalovconfig SPI_XILINX
1146c9da2e12SRichard Röjfors	tristate "Xilinx SPI controller common module"
11476d1f56aaSKees Cook	depends on HAS_IOMEM
1148ae918c02SAndrei Konovalov	select SPI_BITBANG
1149ae918c02SAndrei Konovalov	help
1150ae918c02SAndrei Konovalov	  This exposes the SPI controller IP from the Xilinx EDK.
1151ae918c02SAndrei Konovalov
1152ae918c02SAndrei Konovalov	  See the "OPB Serial Peripheral Interface (SPI) (v1.00e)"
1153ae918c02SAndrei Konovalov	  Product Specification document (DS464) for hardware details.
1154ae918c02SAndrei Konovalov
1155c9da2e12SRichard Röjfors	  Or for the DS570, see "XPS Serial Peripheral Interface (SPI) (v2.00b)"
1156c9da2e12SRichard Röjfors
1157d8c80d49SKamlakant Patelconfig SPI_XLP
1158f7d344f2SRob Herring	tristate "Cavium ThunderX2 SPI controller driver"
1159f7d344f2SRob Herring	depends on ARCH_THUNDER2 || COMPILE_TEST
1160d8c80d49SKamlakant Patel	help
1161f7d344f2SRob Herring	  Enable support for the SPI controller on the Cavium ThunderX2.
1162f7d344f2SRob Herring	  (Originally on Netlogic XLP SoCs.)
1163d8c80d49SKamlakant Patel
1164f7d344f2SRob Herring	  If you have a Cavium ThunderX2 platform say Y here.
1165d8c80d49SKamlakant Patel	  If unsure, say N.
1166d8c80d49SKamlakant Patel
11676840cc29SMax Filippovconfig SPI_XTENSA_XTFPGA
11686840cc29SMax Filippov	tristate "Xtensa SPI controller for xtfpga"
1169be8dde46SAxel Lin	depends on (XTENSA && XTENSA_PLATFORM_XTFPGA) || COMPILE_TEST
11706840cc29SMax Filippov	select SPI_BITBANG
11716840cc29SMax Filippov	help
11726840cc29SMax Filippov	  SPI driver for xtfpga SPI master controller.
11736840cc29SMax Filippov
11746840cc29SMax Filippov	  This simple SPI master controller is built into xtfpga bitstreams
11756840cc29SMax Filippov	  and is used to control daughterboard audio codec. It always transfers
11766840cc29SMax Filippov	  16 bit words in SPI mode 0, automatically asserting CS on transfer
11776840cc29SMax Filippov	  start and deasserting on end.
11786840cc29SMax Filippov
117967dca5e5SNaga Sureshkumar Relliconfig SPI_ZYNQ_QSPI
118067dca5e5SNaga Sureshkumar Relli	tristate "Xilinx Zynq QSPI controller"
118167dca5e5SNaga Sureshkumar Relli	depends on ARCH_ZYNQ || COMPILE_TEST
1182c2ded280SAmit Kumar Mahapatra	depends on SPI_MEM
118367dca5e5SNaga Sureshkumar Relli	help
118467dca5e5SNaga Sureshkumar Relli	  This enables support for the Zynq Quad SPI controller
118567dca5e5SNaga Sureshkumar Relli	  in master mode.
118667dca5e5SNaga Sureshkumar Relli	  This controller only supports SPI memory interface.
118767dca5e5SNaga Sureshkumar Relli
1188dfe11a11SRanjit Waghmodeconfig SPI_ZYNQMP_GQSPI
1189dfe11a11SRanjit Waghmode	tristate "Xilinx ZynqMP GQSPI controller"
1190424a8166SAmit Kumar Mahapatra	depends on (SPI_MEM && HAS_DMA) || COMPILE_TEST
1191dfe11a11SRanjit Waghmode	help
1192dfe11a11SRanjit Waghmode	  Enables Xilinx GQSPI controller driver for Zynq UltraScale+ MPSoC.
1193424a8166SAmit Kumar Mahapatra	  This controller only supports SPI memory interface.
1194dfe11a11SRanjit Waghmode
1195bbb336f3SSanjay R Mehtaconfig SPI_AMD
1196bbb336f3SSanjay R Mehta	tristate "AMD SPI controller"
1197bbb336f3SSanjay R Mehta	depends on SPI_MASTER || COMPILE_TEST
1198bbb336f3SSanjay R Mehta	help
1199bbb336f3SSanjay R Mehta	  Enables SPI controller driver for AMD SoC.
1200bbb336f3SSanjay R Mehta
12018ae12a0dSDavid Brownell#
12028ae12a0dSDavid Brownell# Add new SPI master controllers in alphabetical order above this line
12038ae12a0dSDavid Brownell#
12048ae12a0dSDavid Brownell
1205e9e40543SChris Packhamcomment "SPI Multiplexer support"
1206e9e40543SChris Packham
1207e9e40543SChris Packhamconfig SPI_MUX
1208e9e40543SChris Packham	tristate "SPI multiplexer support"
1209e9e40543SChris Packham	select MULTIPLEXER
1210e9e40543SChris Packham	help
1211e9e40543SChris Packham	  This adds support for SPI multiplexers. Each SPI mux will be
1212e9e40543SChris Packham	  accessible as a SPI controller, the devices behind the mux will appear
1213e9e40543SChris Packham	  to be chip selects on this controller. It is still necessary to
1214e9e40543SChris Packham	  select one or more specific mux-controller drivers.
1215e9e40543SChris Packham
12168ae12a0dSDavid Brownell#
12178ae12a0dSDavid Brownell# There are lots of SPI device types, with sensors and memory
12188ae12a0dSDavid Brownell# being probably the most widely used ones.
12198ae12a0dSDavid Brownell#
12208ae12a0dSDavid Brownellcomment "SPI Protocol Masters"
12218ae12a0dSDavid Brownell
1222814a8d50SAndrea Paternianiconfig SPI_SPIDEV
1223814a8d50SAndrea Paterniani	tristate "User mode SPI device driver support"
1224814a8d50SAndrea Paterniani	help
1225814a8d50SAndrea Paterniani	  This supports user mode SPI protocol drivers.
1226814a8d50SAndrea Paterniani
122797896195SMartin Sperlconfig SPI_LOOPBACK_TEST
122897896195SMartin Sperl	tristate "spi loopback test framework support"
122997896195SMartin Sperl	depends on m
123097896195SMartin Sperl	help
123197896195SMartin Sperl	  This enables the SPI loopback testing framework driver
123297896195SMartin Sperl
123397896195SMartin Sperl	  primarily used for development of spi_master drivers
123497896195SMartin Sperl	  and to detect regressions
123597896195SMartin Sperl
1236447aef1aSBen Dooksconfig SPI_TLE62X0
1237447aef1aSBen Dooks	tristate "Infineon TLE62X0 (for power switching)"
12386291fe2aSRobert P. J. Day	depends on SYSFS
1239447aef1aSBen Dooks	help
1240447aef1aSBen Dooks	  SPI driver for Infineon TLE62X0 series line driver chips,
1241447aef1aSBen Dooks	  such as the TLE6220, TLE6230 and TLE6240.  This provides a
1242447aef1aSBen Dooks	  sysfs interface, with each line presented as a kind of GPIO
1243447aef1aSBen Dooks	  exposing both switch control and diagnostic feedback.
1244447aef1aSBen Dooks
12458ae12a0dSDavid Brownell#
12468ae12a0dSDavid Brownell# Add new SPI protocol masters in alphabetical order above this line
12478ae12a0dSDavid Brownell#
12488ae12a0dSDavid Brownell
12496291fe2aSRobert P. J. Dayendif # SPI_MASTER
12506291fe2aSRobert P. J. Day
12516c364062SGeert Uytterhoeven#
12526c364062SGeert Uytterhoeven# SLAVE side ... listening to other SPI masters
12536c364062SGeert Uytterhoeven#
12546c364062SGeert Uytterhoeven
12556c364062SGeert Uytterhoevenconfig SPI_SLAVE
12566c364062SGeert Uytterhoeven	bool "SPI slave protocol handlers"
12576c364062SGeert Uytterhoeven	help
12586c364062SGeert Uytterhoeven	  If your system has a slave-capable SPI controller, you can enable
12596c364062SGeert Uytterhoeven	  slave protocol handlers.
12606c364062SGeert Uytterhoeven
12616c364062SGeert Uytterhoevenif SPI_SLAVE
12626c364062SGeert Uytterhoeven
126329f9ffa0SGeert Uytterhoevenconfig SPI_SLAVE_TIME
126429f9ffa0SGeert Uytterhoeven	tristate "SPI slave handler reporting boot up time"
126529f9ffa0SGeert Uytterhoeven	help
126629f9ffa0SGeert Uytterhoeven	  SPI slave handler responding with the time of reception of the last
126729f9ffa0SGeert Uytterhoeven	  SPI message.
126829f9ffa0SGeert Uytterhoeven
1269ce70e06cSGeert Uytterhoevenconfig SPI_SLAVE_SYSTEM_CONTROL
1270ce70e06cSGeert Uytterhoeven	tristate "SPI slave handler controlling system state"
1271ce70e06cSGeert Uytterhoeven	help
1272ce70e06cSGeert Uytterhoeven	  SPI slave handler to allow remote control of system reboot, power
1273ce70e06cSGeert Uytterhoeven	  off, halt, and suspend.
1274ce70e06cSGeert Uytterhoeven
12756c364062SGeert Uytterhoevenendif # SPI_SLAVE
12768ae12a0dSDavid Brownell
1277ddf75be4SLukas Wunnerconfig SPI_DYNAMIC
1278ddf75be4SLukas Wunner	def_bool ACPI || OF_DYNAMIC || SPI_SLAVE
1279ddf75be4SLukas Wunner
128079d8c7a8SAlessandro Guidoendif # SPI
1281