xref: /linux/drivers/spi/Kconfig (revision 8051effcbced8478119167b93b0e9554cb82d28e)
18ae12a0dSDavid Brownell#
28ae12a0dSDavid Brownell# SPI driver configuration
38ae12a0dSDavid Brownell#
48ae12a0dSDavid Brownell# NOTE:  the reason this doesn't show SPI slave support is mostly that
58ae12a0dSDavid Brownell# nobody's needed a slave side API yet.  The master-role API is not
68ae12a0dSDavid Brownell# fully appropriate there, so it'd need some thought to do well.
78ae12a0dSDavid Brownell#
879d8c7a8SAlessandro Guidomenuconfig SPI
98ae12a0dSDavid Brownell	bool "SPI support"
1079d8c7a8SAlessandro Guido	depends on HAS_IOMEM
118ae12a0dSDavid Brownell	help
128ae12a0dSDavid Brownell	  The "Serial Peripheral Interface" is a low level synchronous
138ae12a0dSDavid Brownell	  protocol.  Chips that support SPI can have data transfer rates
148ae12a0dSDavid Brownell	  up to several tens of Mbit/sec.  Chips are addressed with a
158ae12a0dSDavid Brownell	  controller and a chipselect.  Most SPI slaves don't support
168ae12a0dSDavid Brownell	  dynamic device discovery; some are even write-only or read-only.
178ae12a0dSDavid Brownell
183cb2fcccSMatt LaPlante	  SPI is widely used by microcontrollers to talk with sensors,
198ae12a0dSDavid Brownell	  eeprom and flash memory, codecs and various other controller
208ae12a0dSDavid Brownell	  chips, analog to digital (and d-to-a) converters, and more.
218ae12a0dSDavid Brownell	  MMC and SD cards can be accessed using SPI protocol; and for
228ae12a0dSDavid Brownell	  DataFlash cards used in MMC sockets, SPI must always be used.
238ae12a0dSDavid Brownell
248ae12a0dSDavid Brownell	  SPI is one of a family of similar protocols using a four wire
258ae12a0dSDavid Brownell	  interface (select, clock, data in, data out) including Microwire
268ae12a0dSDavid Brownell	  (half duplex), SSP, SSI, and PSP.  This driver framework should
278ae12a0dSDavid Brownell	  work with most such devices and controllers.
288ae12a0dSDavid Brownell
2979d8c7a8SAlessandro Guidoif SPI
3079d8c7a8SAlessandro Guido
318ae12a0dSDavid Brownellconfig SPI_DEBUG
328ae12a0dSDavid Brownell	boolean "Debug support for SPI drivers"
3379d8c7a8SAlessandro Guido	depends on DEBUG_KERNEL
348ae12a0dSDavid Brownell	help
358ae12a0dSDavid Brownell	  Say "yes" to enable debug messaging (like dev_dbg and pr_debug),
368ae12a0dSDavid Brownell	  sysfs, and debugfs support in SPI controller and protocol drivers.
378ae12a0dSDavid Brownell
388ae12a0dSDavid Brownell#
398ae12a0dSDavid Brownell# MASTER side ... talking to discrete SPI slave chips including microcontrollers
408ae12a0dSDavid Brownell#
418ae12a0dSDavid Brownell
428ae12a0dSDavid Brownellconfig SPI_MASTER
438ae12a0dSDavid Brownell#	boolean "SPI Master Support"
448ae12a0dSDavid Brownell	boolean
458ae12a0dSDavid Brownell	default SPI
468ae12a0dSDavid Brownell	help
478ae12a0dSDavid Brownell	  If your system has an master-capable SPI controller (which
488ae12a0dSDavid Brownell	  provides the clock and chipselect), you can enable that
498ae12a0dSDavid Brownell	  controller and the protocol drivers for the SPI slave chips
508ae12a0dSDavid Brownell	  that are connected.
518ae12a0dSDavid Brownell
526291fe2aSRobert P. J. Dayif SPI_MASTER
536291fe2aSRobert P. J. Day
548ae12a0dSDavid Brownellcomment "SPI Master Controller Drivers"
558ae12a0dSDavid Brownell
56754ce4f2SHaavard Skinnemoenconfig SPI_ATMEL
57754ce4f2SHaavard Skinnemoen	tristate "Atmel SPI Controller"
586291fe2aSRobert P. J. Day	depends on (ARCH_AT91 || AVR32)
59754ce4f2SHaavard Skinnemoen	help
60754ce4f2SHaavard Skinnemoen	  This selects a driver for the Atmel SPI Controller, present on
61754ce4f2SHaavard Skinnemoen	  many AT32 (AVR32) and AT91 (ARM) chips.
62754ce4f2SHaavard Skinnemoen
63a5f6abd4SWu, Bryanconfig SPI_BFIN
64a5f6abd4SWu, Bryan	tristate "SPI controller driver for ADI Blackfin5xx"
656291fe2aSRobert P. J. Day	depends on BLACKFIN
66a5f6abd4SWu, Bryan	help
67a5f6abd4SWu, Bryan	  This is the SPI controller master driver for Blackfin 5xx processor.
68a5f6abd4SWu, Bryan
6963bd2359SJan Nikitenkoconfig SPI_AU1550
7063bd2359SJan Nikitenko	tristate "Au1550/Au12x0 SPI Controller"
716291fe2aSRobert P. J. Day	depends on (SOC_AU1550 || SOC_AU1200) && EXPERIMENTAL
7263bd2359SJan Nikitenko	select SPI_BITBANG
7363bd2359SJan Nikitenko	help
7463bd2359SJan Nikitenko	  If you say yes to this option, support will be included for the
7563bd2359SJan Nikitenko	  Au1550 SPI controller (may also work with Au1200,Au1210,Au1250).
7663bd2359SJan Nikitenko
7763bd2359SJan Nikitenko	  This driver can also be built as a module.  If so, the module
7863bd2359SJan Nikitenko	  will be called au1550_spi.
7963bd2359SJan Nikitenko
809904f22aSDavid Brownellconfig SPI_BITBANG
81d29389deSDavid Brownell	tristate "Utilities for Bitbanging SPI masters"
829904f22aSDavid Brownell	help
839904f22aSDavid Brownell	  With a few GPIO pins, your system can bitbang the SPI protocol.
849904f22aSDavid Brownell	  Select this to get SPI support through I/O pins (GPIO, parallel
859904f22aSDavid Brownell	  port, etc).  Or, some systems' SPI master controller drivers use
869904f22aSDavid Brownell	  this code to manage the per-word or per-transfer accesses to the
879904f22aSDavid Brownell	  hardware shift registers.
889904f22aSDavid Brownell
899904f22aSDavid Brownell	  This is library code, and is automatically selected by drivers that
909904f22aSDavid Brownell	  need it.  You only need to select this explicitly to support driver
919904f22aSDavid Brownell	  modules that aren't part of this kernel tree.
928ae12a0dSDavid Brownell
937111763dSDavid Brownellconfig SPI_BUTTERFLY
947111763dSDavid Brownell	tristate "Parallel port adapter for AVR Butterfly (DEVELOPMENT)"
956291fe2aSRobert P. J. Day	depends on PARPORT
967111763dSDavid Brownell	select SPI_BITBANG
977111763dSDavid Brownell	help
987111763dSDavid Brownell	  This uses a custom parallel port cable to connect to an AVR
997111763dSDavid Brownell	  Butterfly <http://www.atmel.com/products/avr/butterfly>, an
1007111763dSDavid Brownell	  inexpensive battery powered microcontroller evaluation board.
1017111763dSDavid Brownell	  This same cable can be used to flash new firmware.
1027111763dSDavid Brownell
103d29389deSDavid Brownellconfig SPI_GPIO
104d29389deSDavid Brownell	tristate "GPIO-based bitbanging SPI Master"
105d29389deSDavid Brownell	depends on GENERIC_GPIO
106d29389deSDavid Brownell	select SPI_BITBANG
107d29389deSDavid Brownell	help
108d29389deSDavid Brownell	  This simple GPIO bitbanging SPI master uses the arch-neutral GPIO
109d29389deSDavid Brownell	  interface to manage MOSI, MISO, SCK, and chipselect signals.  SPI
110d29389deSDavid Brownell	  slaves connected to a bus using this driver are configured as usual,
111d29389deSDavid Brownell	  except that the spi_board_info.controller_data holds the GPIO number
112d29389deSDavid Brownell	  for the chipselect used by this controller driver.
113d29389deSDavid Brownell
114d29389deSDavid Brownell	  Note that this driver often won't achieve even 1 Mbit/sec speeds,
115d29389deSDavid Brownell	  making it unusually slow for SPI.  If your platform can inline
116d29389deSDavid Brownell	  GPIO operations, you should be able to leverage that for better
117d29389deSDavid Brownell	  speed with a custom version of this driver; see the source code.
118d29389deSDavid Brownell
119b5f3294fSSascha Hauerconfig SPI_IMX
120b5f3294fSSascha Hauer	tristate "Freescale i.MX SPI controllers"
121b5f3294fSSascha Hauer	depends on ARCH_MXC
122b5f3294fSSascha Hauer	select SPI_BITBANG
123b5f3294fSSascha Hauer	help
124b5f3294fSSascha Hauer	  This enables using the Freescale i.MX SPI controllers in master
125b5f3294fSSascha Hauer	  mode.
126b5f3294fSSascha Hauer
12778961a57SKaiwan N Billimoriaconfig SPI_LM70_LLP
12878961a57SKaiwan N Billimoria	tristate "Parallel port adapter for LM70 eval board (DEVELOPMENT)"
1296291fe2aSRobert P. J. Day	depends on PARPORT && EXPERIMENTAL
13078961a57SKaiwan N Billimoria	select SPI_BITBANG
13178961a57SKaiwan N Billimoria	help
13278961a57SKaiwan N Billimoria	  This driver supports the NS LM70 LLP Evaluation Board,
13378961a57SKaiwan N Billimoria	  which interfaces to an LM70 temperature sensor using
13478961a57SKaiwan N Billimoria	  a parallel port.
13578961a57SKaiwan N Billimoria
13642bbb709SGrant Likelyconfig SPI_MPC52xx
13742bbb709SGrant Likely	tristate "Freescale MPC52xx SPI (non-PSC) controller support"
13842bbb709SGrant Likely	depends on PPC_MPC52xx && SPI
13942bbb709SGrant Likely	select SPI_MASTER_OF
14042bbb709SGrant Likely	help
14142bbb709SGrant Likely	  This drivers supports the MPC52xx SPI controller in master SPI
14242bbb709SGrant Likely	  mode.
14342bbb709SGrant Likely
14400b8fd23SDragos Carpconfig SPI_MPC52xx_PSC
14500b8fd23SDragos Carp	tristate "Freescale MPC52xx PSC SPI controller"
1466291fe2aSRobert P. J. Day	depends on PPC_MPC52xx && EXPERIMENTAL
14700b8fd23SDragos Carp	help
14800b8fd23SDragos Carp	  This enables using the Freescale MPC52xx Programmable Serial
14900b8fd23SDragos Carp	  Controller in master SPI mode.
15000b8fd23SDragos Carp
151575c5807SAnton Vorontsovconfig SPI_MPC8xxx
1529e04b333SAnton Vorontsov	tristate "Freescale MPC8xxx SPI controller"
1539e04b333SAnton Vorontsov	depends on FSL_SOC
154ccf06998SKumar Gala	help
1559e04b333SAnton Vorontsov	  This enables using the Freescale MPC8xxx SPI controllers in master
1569e04b333SAnton Vorontsov	  mode.
157ccf06998SKumar Gala
1589e04b333SAnton Vorontsov	  This driver uses a simple set of shift registers for data (opposed
1599e04b333SAnton Vorontsov	  to the CPM based descriptor model).
160ccf06998SKumar Gala
161fdb3c18dSDavid Brownellconfig SPI_OMAP_UWIRE
162fdb3c18dSDavid Brownell	tristate "OMAP1 MicroWire"
1636291fe2aSRobert P. J. Day	depends on ARCH_OMAP1
164fdb3c18dSDavid Brownell	select SPI_BITBANG
165fdb3c18dSDavid Brownell	help
166fdb3c18dSDavid Brownell	  This hooks up to the MicroWire controller on OMAP1 chips.
167fdb3c18dSDavid Brownell
168ccdc7bf9SSamuel Ortizconfig SPI_OMAP24XX
169ccc7baedSGirish	tristate "McSPI driver for OMAP24xx/OMAP34xx"
1706291fe2aSRobert P. J. Day	depends on ARCH_OMAP24XX || ARCH_OMAP34XX
171ccdc7bf9SSamuel Ortiz	help
172ccc7baedSGirish	  SPI master controller for OMAP24xx/OMAP34xx Multichannel SPI
173ccdc7bf9SSamuel Ortiz	  (McSPI) modules.
17469c202afSAndrea Paterniani
17560cadec9SShadi Ammouriconfig SPI_ORION
17660cadec9SShadi Ammouri	tristate "Orion SPI master (EXPERIMENTAL)"
17760cadec9SShadi Ammouri	depends on PLAT_ORION && EXPERIMENTAL
17860cadec9SShadi Ammouri	help
17960cadec9SShadi Ammouri	  This enables using the SPI master controller on the Orion chips.
18060cadec9SShadi Ammouri
181b43d65f7SLinus Walleijconfig SPI_PL022
182b43d65f7SLinus Walleij	tristate "ARM AMBA PL022 SSP controller (EXPERIMENTAL)"
183b43d65f7SLinus Walleij	depends on ARM_AMBA && EXPERIMENTAL
184b43d65f7SLinus Walleij	default y if MACH_U300
185f33b29eeSlinus.walleij@stericsson.com	default y if ARCH_REALVIEW
186f33b29eeSlinus.walleij@stericsson.com	default y if INTEGRATOR_IMPD1
187f33b29eeSlinus.walleij@stericsson.com	default y if ARCH_VERSATILE
188b43d65f7SLinus Walleij	help
189b43d65f7SLinus Walleij	  This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
190b43d65f7SLinus Walleij	  controller. If you have an embedded system with an AMBA(R)
191b43d65f7SLinus Walleij	  bus and a PL022 controller, say Y or M here.
192b43d65f7SLinus Walleij
19344dab88eSSteven A. Falcoconfig SPI_PPC4xx
19444dab88eSSteven A. Falco	tristate "PPC4xx SPI Controller"
19544dab88eSSteven A. Falco	depends on PPC32 && 4xx && SPI_MASTER
19644dab88eSSteven A. Falco	select SPI_BITBANG
19744dab88eSSteven A. Falco	help
19844dab88eSSteven A. Falco	  This selects a driver for the PPC4xx SPI Controller.
19944dab88eSSteven A. Falco
200e0c9905eSStephen Streetconfig SPI_PXA2XX
201e0c9905eSStephen Street	tristate "PXA2xx SSP SPI master"
2026291fe2aSRobert P. J. Day	depends on ARCH_PXA && EXPERIMENTAL
2032f1a74e5Seric miao	select PXA_SSP
204e0c9905eSStephen Street	help
205e0c9905eSStephen Street	  This enables using a PXA2xx SSP port as a SPI master controller.
206e0c9905eSStephen Street	  The driver can be configured to use any SSP port and additional
207e0c9905eSStephen Street	  documentation can be found a Documentation/spi/pxa2xx.
208e0c9905eSStephen Street
20985abfaa7SDavid Brownellconfig SPI_S3C24XX
21085abfaa7SDavid Brownell	tristate "Samsung S3C24XX series SPI"
2116291fe2aSRobert P. J. Day	depends on ARCH_S3C2410 && EXPERIMENTAL
212da0abc27SDavid Brownell	select SPI_BITBANG
21385abfaa7SDavid Brownell	help
21485abfaa7SDavid Brownell	  SPI driver for Samsung S3C24XX series ARM SoCs
21585abfaa7SDavid Brownell
2161fc7547dSBen Dooksconfig SPI_S3C24XX_GPIO
2171fc7547dSBen Dooks	tristate "Samsung S3C24XX series SPI by GPIO"
2186291fe2aSRobert P. J. Day	depends on ARCH_S3C2410 && EXPERIMENTAL
219da0abc27SDavid Brownell	select SPI_BITBANG
2201fc7547dSBen Dooks	help
2211fc7547dSBen Dooks	  SPI driver for Samsung S3C24XX series ARM SoCs using
2221fc7547dSBen Dooks	  GPIO lines to provide the SPI bus. This can be used where
2231fc7547dSBen Dooks	  the inbuilt hardware cannot provide the transfer mode, or
2241fc7547dSBen Dooks	  where the board is using non hardware connected pins.
225ae918c02SAndrei Konovalov
226*8051effcSMagnus Dammconfig SPI_SH_MSIOF
227*8051effcSMagnus Damm	tristate "SuperH MSIOF SPI controller"
228*8051effcSMagnus Damm	depends on SUPERH && HAVE_CLK
229*8051effcSMagnus Damm	select SPI_BITBANG
230*8051effcSMagnus Damm	help
231*8051effcSMagnus Damm	  SPI driver for SuperH MSIOF blocks.
232*8051effcSMagnus Damm
23337e46640SMagnus Dammconfig SPI_SH_SCI
23437e46640SMagnus Damm	tristate "SuperH SCI SPI controller"
2356291fe2aSRobert P. J. Day	depends on SUPERH
23637e46640SMagnus Damm	select SPI_BITBANG
23737e46640SMagnus Damm	help
23837e46640SMagnus Damm	  SPI driver for SuperH SCI blocks.
23937e46640SMagnus Damm
2400644c486Sdmitry pervushinconfig SPI_STMP3XXX
2410644c486Sdmitry pervushin	tristate "Freescale STMP37xx/378x SPI/SSP controller"
2420644c486Sdmitry pervushin	depends on ARCH_STMP3XXX && SPI_MASTER
2430644c486Sdmitry pervushin	help
2440644c486Sdmitry pervushin	  SPI driver for Freescale STMP37xx/378x SoC SSP interface
2450644c486Sdmitry pervushin
246f2cac67dSAtsushi Nemotoconfig SPI_TXX9
247f2cac67dSAtsushi Nemoto	tristate "Toshiba TXx9 SPI controller"
2486291fe2aSRobert P. J. Day	depends on GENERIC_GPIO && CPU_TX49XX
249f2cac67dSAtsushi Nemoto	help
250f2cac67dSAtsushi Nemoto	  SPI driver for Toshiba TXx9 MIPS SoCs
251f2cac67dSAtsushi Nemoto
252ae918c02SAndrei Konovalovconfig SPI_XILINX
253c9da2e12SRichard Röjfors	tristate "Xilinx SPI controller common module"
25486fc5935SRichard Röjfors	depends on HAS_IOMEM && EXPERIMENTAL
255ae918c02SAndrei Konovalov	select SPI_BITBANG
256d5af91a1SRichard Röjfors	select SPI_XILINX_OF if (XILINX_VIRTEX || MICROBLAZE)
257ae918c02SAndrei Konovalov	help
258ae918c02SAndrei Konovalov	  This exposes the SPI controller IP from the Xilinx EDK.
259ae918c02SAndrei Konovalov
260ae918c02SAndrei Konovalov	  See the "OPB Serial Peripheral Interface (SPI) (v1.00e)"
261ae918c02SAndrei Konovalov	  Product Specification document (DS464) for hardware details.
262ae918c02SAndrei Konovalov
263c9da2e12SRichard Röjfors	  Or for the DS570, see "XPS Serial Peripheral Interface (SPI) (v2.00b)"
264c9da2e12SRichard Röjfors
265d5af91a1SRichard Röjforsconfig SPI_XILINX_OF
266d5af91a1SRichard Röjfors	tristate "Xilinx SPI controller OF device"
267d5af91a1SRichard Röjfors	depends on SPI_XILINX && (XILINX_VIRTEX || MICROBLAZE)
268d5af91a1SRichard Röjfors	help
269d5af91a1SRichard Röjfors	  This is the OF driver for the SPI controller IP from the Xilinx EDK.
270d5af91a1SRichard Röjfors
27177166934SRichard Röjforsconfig SPI_XILINX_PLTFM
27277166934SRichard Röjfors	tristate "Xilinx SPI controller platform device"
27377166934SRichard Röjfors	depends on SPI_XILINX
27477166934SRichard Röjfors	help
27577166934SRichard Röjfors	  This is the platform driver for the SPI controller IP
27677166934SRichard Röjfors	  from the Xilinx EDK.
27777166934SRichard Röjfors
2788ae12a0dSDavid Brownell#
2798ae12a0dSDavid Brownell# Add new SPI master controllers in alphabetical order above this line
2808ae12a0dSDavid Brownell#
2818ae12a0dSDavid Brownell
2828ae12a0dSDavid Brownell#
2838ae12a0dSDavid Brownell# There are lots of SPI device types, with sensors and memory
2848ae12a0dSDavid Brownell# being probably the most widely used ones.
2858ae12a0dSDavid Brownell#
2868ae12a0dSDavid Brownellcomment "SPI Protocol Masters"
2878ae12a0dSDavid Brownell
288814a8d50SAndrea Paternianiconfig SPI_SPIDEV
289814a8d50SAndrea Paterniani	tristate "User mode SPI device driver support"
2906291fe2aSRobert P. J. Day	depends on EXPERIMENTAL
291814a8d50SAndrea Paterniani	help
292814a8d50SAndrea Paterniani	  This supports user mode SPI protocol drivers.
293814a8d50SAndrea Paterniani
294814a8d50SAndrea Paterniani	  Note that this application programming interface is EXPERIMENTAL
295814a8d50SAndrea Paterniani	  and hence SUBJECT TO CHANGE WITHOUT NOTICE while it stabilizes.
296814a8d50SAndrea Paterniani
297447aef1aSBen Dooksconfig SPI_TLE62X0
298447aef1aSBen Dooks	tristate "Infineon TLE62X0 (for power switching)"
2996291fe2aSRobert P. J. Day	depends on SYSFS
300447aef1aSBen Dooks	help
301447aef1aSBen Dooks	  SPI driver for Infineon TLE62X0 series line driver chips,
302447aef1aSBen Dooks	  such as the TLE6220, TLE6230 and TLE6240.  This provides a
303447aef1aSBen Dooks	  sysfs interface, with each line presented as a kind of GPIO
304447aef1aSBen Dooks	  exposing both switch control and diagnostic feedback.
305447aef1aSBen Dooks
3068ae12a0dSDavid Brownell#
3078ae12a0dSDavid Brownell# Add new SPI protocol masters in alphabetical order above this line
3088ae12a0dSDavid Brownell#
3098ae12a0dSDavid Brownell
3106291fe2aSRobert P. J. Dayendif # SPI_MASTER
3116291fe2aSRobert P. J. Day
3128ae12a0dSDavid Brownell# (slave support would go here)
3138ae12a0dSDavid Brownell
31479d8c7a8SAlessandro Guidoendif # SPI
315