xref: /linux/drivers/spi/Kconfig (revision 44dab88e7cc99d1d2caa9a8936e09d9a98a6761a)
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
11978961a57SKaiwan N Billimoriaconfig SPI_LM70_LLP
12078961a57SKaiwan N Billimoria	tristate "Parallel port adapter for LM70 eval board (DEVELOPMENT)"
1216291fe2aSRobert P. J. Day	depends on PARPORT && EXPERIMENTAL
12278961a57SKaiwan N Billimoria	select SPI_BITBANG
12378961a57SKaiwan N Billimoria	help
12478961a57SKaiwan N Billimoria	  This driver supports the NS LM70 LLP Evaluation Board,
12578961a57SKaiwan N Billimoria	  which interfaces to an LM70 temperature sensor using
12678961a57SKaiwan N Billimoria	  a parallel port.
12778961a57SKaiwan N Billimoria
12800b8fd23SDragos Carpconfig SPI_MPC52xx_PSC
12900b8fd23SDragos Carp	tristate "Freescale MPC52xx PSC SPI controller"
1306291fe2aSRobert P. J. Day	depends on PPC_MPC52xx && EXPERIMENTAL
13100b8fd23SDragos Carp	help
13200b8fd23SDragos Carp	  This enables using the Freescale MPC52xx Programmable Serial
13300b8fd23SDragos Carp	  Controller in master SPI mode.
13400b8fd23SDragos Carp
135575c5807SAnton Vorontsovconfig SPI_MPC8xxx
1369e04b333SAnton Vorontsov	tristate "Freescale MPC8xxx SPI controller"
1379e04b333SAnton Vorontsov	depends on FSL_SOC
138ccf06998SKumar Gala	help
1399e04b333SAnton Vorontsov	  This enables using the Freescale MPC8xxx SPI controllers in master
1409e04b333SAnton Vorontsov	  mode.
141ccf06998SKumar Gala
1429e04b333SAnton Vorontsov	  This driver uses a simple set of shift registers for data (opposed
1439e04b333SAnton Vorontsov	  to the CPM based descriptor model).
144ccf06998SKumar Gala
145fdb3c18dSDavid Brownellconfig SPI_OMAP_UWIRE
146fdb3c18dSDavid Brownell	tristate "OMAP1 MicroWire"
1476291fe2aSRobert P. J. Day	depends on ARCH_OMAP1
148fdb3c18dSDavid Brownell	select SPI_BITBANG
149fdb3c18dSDavid Brownell	help
150fdb3c18dSDavid Brownell	  This hooks up to the MicroWire controller on OMAP1 chips.
151fdb3c18dSDavid Brownell
152ccdc7bf9SSamuel Ortizconfig SPI_OMAP24XX
153ccc7baedSGirish	tristate "McSPI driver for OMAP24xx/OMAP34xx"
1546291fe2aSRobert P. J. Day	depends on ARCH_OMAP24XX || ARCH_OMAP34XX
155ccdc7bf9SSamuel Ortiz	help
156ccc7baedSGirish	  SPI master controller for OMAP24xx/OMAP34xx Multichannel SPI
157ccdc7bf9SSamuel Ortiz	  (McSPI) modules.
15869c202afSAndrea Paterniani
15960cadec9SShadi Ammouriconfig SPI_ORION
16060cadec9SShadi Ammouri	tristate "Orion SPI master (EXPERIMENTAL)"
16160cadec9SShadi Ammouri	depends on PLAT_ORION && EXPERIMENTAL
16260cadec9SShadi Ammouri	help
16360cadec9SShadi Ammouri	  This enables using the SPI master controller on the Orion chips.
16460cadec9SShadi Ammouri
165b43d65f7SLinus Walleijconfig SPI_PL022
166b43d65f7SLinus Walleij	tristate "ARM AMBA PL022 SSP controller (EXPERIMENTAL)"
167b43d65f7SLinus Walleij	depends on ARM_AMBA && EXPERIMENTAL
168b43d65f7SLinus Walleij	default y if MACH_U300
169b43d65f7SLinus Walleij	help
170b43d65f7SLinus Walleij	  This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
171b43d65f7SLinus Walleij	  controller. If you have an embedded system with an AMBA(R)
172b43d65f7SLinus Walleij	  bus and a PL022 controller, say Y or M here.
173b43d65f7SLinus Walleij
174*44dab88eSSteven A. Falcoconfig SPI_PPC4xx
175*44dab88eSSteven A. Falco	tristate "PPC4xx SPI Controller"
176*44dab88eSSteven A. Falco	depends on PPC32 && 4xx && SPI_MASTER
177*44dab88eSSteven A. Falco	select SPI_BITBANG
178*44dab88eSSteven A. Falco	help
179*44dab88eSSteven A. Falco	  This selects a driver for the PPC4xx SPI Controller.
180*44dab88eSSteven A. Falco
181e0c9905eSStephen Streetconfig SPI_PXA2XX
182e0c9905eSStephen Street	tristate "PXA2xx SSP SPI master"
1836291fe2aSRobert P. J. Day	depends on ARCH_PXA && EXPERIMENTAL
1842f1a74e5Seric miao	select PXA_SSP
185e0c9905eSStephen Street	help
186e0c9905eSStephen Street	  This enables using a PXA2xx SSP port as a SPI master controller.
187e0c9905eSStephen Street	  The driver can be configured to use any SSP port and additional
188e0c9905eSStephen Street	  documentation can be found a Documentation/spi/pxa2xx.
189e0c9905eSStephen Street
19085abfaa7SDavid Brownellconfig SPI_S3C24XX
19185abfaa7SDavid Brownell	tristate "Samsung S3C24XX series SPI"
1926291fe2aSRobert P. J. Day	depends on ARCH_S3C2410 && EXPERIMENTAL
193da0abc27SDavid Brownell	select SPI_BITBANG
19485abfaa7SDavid Brownell	help
19585abfaa7SDavid Brownell	  SPI driver for Samsung S3C24XX series ARM SoCs
19685abfaa7SDavid Brownell
1971fc7547dSBen Dooksconfig SPI_S3C24XX_GPIO
1981fc7547dSBen Dooks	tristate "Samsung S3C24XX series SPI by GPIO"
1996291fe2aSRobert P. J. Day	depends on ARCH_S3C2410 && EXPERIMENTAL
200da0abc27SDavid Brownell	select SPI_BITBANG
2011fc7547dSBen Dooks	help
2021fc7547dSBen Dooks	  SPI driver for Samsung S3C24XX series ARM SoCs using
2031fc7547dSBen Dooks	  GPIO lines to provide the SPI bus. This can be used where
2041fc7547dSBen Dooks	  the inbuilt hardware cannot provide the transfer mode, or
2051fc7547dSBen Dooks	  where the board is using non hardware connected pins.
206ae918c02SAndrei Konovalov
20737e46640SMagnus Dammconfig SPI_SH_SCI
20837e46640SMagnus Damm	tristate "SuperH SCI SPI controller"
2096291fe2aSRobert P. J. Day	depends on SUPERH
21037e46640SMagnus Damm	select SPI_BITBANG
21137e46640SMagnus Damm	help
21237e46640SMagnus Damm	  SPI driver for SuperH SCI blocks.
21337e46640SMagnus Damm
214f2cac67dSAtsushi Nemotoconfig SPI_TXX9
215f2cac67dSAtsushi Nemoto	tristate "Toshiba TXx9 SPI controller"
2166291fe2aSRobert P. J. Day	depends on GENERIC_GPIO && CPU_TX49XX
217f2cac67dSAtsushi Nemoto	help
218f2cac67dSAtsushi Nemoto	  SPI driver for Toshiba TXx9 MIPS SoCs
219f2cac67dSAtsushi Nemoto
220ae918c02SAndrei Konovalovconfig SPI_XILINX
221ae918c02SAndrei Konovalov	tristate "Xilinx SPI controller"
2226fa612b5SMichal Simek	depends on (XILINX_VIRTEX || MICROBLAZE) && EXPERIMENTAL
223ae918c02SAndrei Konovalov	select SPI_BITBANG
224ae918c02SAndrei Konovalov	help
225ae918c02SAndrei Konovalov	  This exposes the SPI controller IP from the Xilinx EDK.
226ae918c02SAndrei Konovalov
227ae918c02SAndrei Konovalov	  See the "OPB Serial Peripheral Interface (SPI) (v1.00e)"
228ae918c02SAndrei Konovalov	  Product Specification document (DS464) for hardware details.
229ae918c02SAndrei Konovalov
2308ae12a0dSDavid Brownell#
2318ae12a0dSDavid Brownell# Add new SPI master controllers in alphabetical order above this line
2328ae12a0dSDavid Brownell#
2338ae12a0dSDavid Brownell
2348ae12a0dSDavid Brownell#
2358ae12a0dSDavid Brownell# There are lots of SPI device types, with sensors and memory
2368ae12a0dSDavid Brownell# being probably the most widely used ones.
2378ae12a0dSDavid Brownell#
2388ae12a0dSDavid Brownellcomment "SPI Protocol Masters"
2398ae12a0dSDavid Brownell
240814a8d50SAndrea Paternianiconfig SPI_SPIDEV
241814a8d50SAndrea Paterniani	tristate "User mode SPI device driver support"
2426291fe2aSRobert P. J. Day	depends on EXPERIMENTAL
243814a8d50SAndrea Paterniani	help
244814a8d50SAndrea Paterniani	  This supports user mode SPI protocol drivers.
245814a8d50SAndrea Paterniani
246814a8d50SAndrea Paterniani	  Note that this application programming interface is EXPERIMENTAL
247814a8d50SAndrea Paterniani	  and hence SUBJECT TO CHANGE WITHOUT NOTICE while it stabilizes.
248814a8d50SAndrea Paterniani
249447aef1aSBen Dooksconfig SPI_TLE62X0
250447aef1aSBen Dooks	tristate "Infineon TLE62X0 (for power switching)"
2516291fe2aSRobert P. J. Day	depends on SYSFS
252447aef1aSBen Dooks	help
253447aef1aSBen Dooks	  SPI driver for Infineon TLE62X0 series line driver chips,
254447aef1aSBen Dooks	  such as the TLE6220, TLE6230 and TLE6240.  This provides a
255447aef1aSBen Dooks	  sysfs interface, with each line presented as a kind of GPIO
256447aef1aSBen Dooks	  exposing both switch control and diagnostic feedback.
257447aef1aSBen Dooks
2588ae12a0dSDavid Brownell#
2598ae12a0dSDavid Brownell# Add new SPI protocol masters in alphabetical order above this line
2608ae12a0dSDavid Brownell#
2618ae12a0dSDavid Brownell
2626291fe2aSRobert P. J. Dayendif # SPI_MASTER
2636291fe2aSRobert P. J. Day
2648ae12a0dSDavid Brownell# (slave support would go here)
2658ae12a0dSDavid Brownell
26679d8c7a8SAlessandro Guidoendif # SPI
267