Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. #
  2. # GPIO infrastructure and drivers
  3. #
  4. config ARCH_WANT_OPTIONAL_GPIOLIB
  5. bool
  6. help
  7. Select this config option from the architecture Kconfig, if
  8. it is possible to use gpiolib on the architecture, but let the
  9. user decide whether to actually build it or not.
  10. Select this instead of ARCH_REQUIRE_GPIOLIB, if your architecture does
  11. not depend on GPIOs being available, but rather let the user
  12. decide whether he needs it or not.
  13. config ARCH_REQUIRE_GPIOLIB
  14. bool
  15. select GPIOLIB
  16. help
  17. Platforms select gpiolib if they use this infrastructure
  18. for all their GPIOs, usually starting with ones integrated
  19. into SOC processors.
  20. Selecting this from the architecture code will cause the gpiolib
  21. code to always get built in.
  22. menuconfig GPIOLIB
  23. bool "GPIO Support"
  24. depends on ARCH_WANT_OPTIONAL_GPIOLIB || ARCH_REQUIRE_GPIOLIB
  25. select GENERIC_GPIO
  26. help
  27. This enables GPIO support through the generic GPIO library.
  28. You only need to enable this, if you also want to enable
  29. one or more of the GPIO drivers below.
  30. If unsure, say N.
  31. if GPIOLIB
  32. config DEBUG_GPIO
  33. bool "Debug GPIO calls"
  34. depends on DEBUG_KERNEL
  35. help
  36. Say Y here to add some extra checks and diagnostics to GPIO calls.
  37. These checks help ensure that GPIOs have been properly initialized
  38. before they are used, and that sleeping calls are not made from
  39. non-sleeping contexts. They can make bitbanged serial protocols
  40. slower. The diagnostics help catch the type of setup errors
  41. that are most common when setting up new platforms or boards.
  42. config GPIO_SYSFS
  43. bool "/sys/class/gpio/... (sysfs interface)"
  44. depends on SYSFS && EXPERIMENTAL
  45. help
  46. Say Y here to add a sysfs interface for GPIOs.
  47. This is mostly useful to work around omissions in a system's
  48. kernel support. Those are common in custom and semicustom
  49. hardware assembled using standard kernels with a minimum of
  50. custom patches. In those cases, userspace code may import
  51. a given GPIO from the kernel, if no kernel driver requested it.
  52. Kernel drivers may also request that a particular GPIO be
  53. exported to userspace; this can be useful when debugging.
  54. config GPIO_GENERIC
  55. tristate
  56. # put drivers in the right section, in alphabetical order
  57. config GPIO_DA9052
  58. tristate "Dialog DA9052 GPIO"
  59. depends on PMIC_DA9052 && BROKEN
  60. help
  61. Say yes here to enable the GPIO driver for the DA9052 chip.
  62. config GPIO_MAX730X
  63. tristate
  64. comment "Memory mapped GPIO drivers:"
  65. config GPIO_GENERIC_PLATFORM
  66. tristate "Generic memory-mapped GPIO controller support (MMIO platform device)"
  67. select GPIO_GENERIC
  68. help
  69. Say yes here to support basic platform_device memory-mapped GPIO controllers.
  70. config GPIO_IT8761E
  71. tristate "IT8761E GPIO support"
  72. help
  73. Say yes here to support GPIO functionality of IT8761E super I/O chip.
  74. config GPIO_EP93XX
  75. def_bool y
  76. depends on ARCH_EP93XX
  77. select GPIO_GENERIC
  78. config GPIO_MPC5200
  79. def_bool y
  80. depends on PPC_MPC52xx
  81. config GPIO_MPC8XXX
  82. bool "MPC512x/MPC8xxx GPIO support"
  83. depends on PPC_MPC512x || PPC_MPC831x || PPC_MPC834x || PPC_MPC837x || \
  84. FSL_SOC_BOOKE || PPC_86xx
  85. help
  86. Say Y here if you're going to use hardware that connects to the
  87. MPC512x/831x/834x/837x/8572/8610 GPIOs.
  88. config GPIO_MSM_V1
  89. tristate "Qualcomm MSM GPIO v1"
  90. depends on GPIOLIB && ARCH_MSM
  91. help
  92. Say yes here to support the GPIO interface on ARM v6 based
  93. Qualcomm MSM chips. Most of the pins on the MSM can be
  94. selected for GPIO, and are controlled by this driver.
  95. config GPIO_MSM_V2
  96. tristate "Qualcomm MSM GPIO v2"
  97. depends on GPIOLIB && ARCH_MSM
  98. help
  99. Say yes here to support the GPIO interface on ARM v7 based
  100. Qualcomm MSM chips. Most of the pins on the MSM can be
  101. selected for GPIO, and are controlled by this driver.
  102. config GPIO_MXC
  103. def_bool y
  104. depends on ARCH_MXC
  105. select GPIO_GENERIC
  106. select GENERIC_IRQ_CHIP
  107. config GPIO_MXS
  108. def_bool y
  109. depends on ARCH_MXS
  110. select GPIO_GENERIC
  111. select GENERIC_IRQ_CHIP
  112. config GPIO_PL061
  113. bool "PrimeCell PL061 GPIO support"
  114. depends on ARM_AMBA
  115. select GENERIC_IRQ_CHIP
  116. help
  117. Say yes here to support the PrimeCell PL061 GPIO device
  118. config GPIO_PXA
  119. bool "PXA GPIO support"
  120. depends on ARCH_PXA || ARCH_MMP
  121. help
  122. Say yes here to support the PXA GPIO device
  123. config GPIO_XILINX
  124. bool "Xilinx GPIO support"
  125. depends on PPC_OF || MICROBLAZE
  126. help
  127. Say yes here to support the Xilinx FPGA GPIO device
  128. config GPIO_VR41XX
  129. tristate "NEC VR4100 series General-purpose I/O Uint support"
  130. depends on CPU_VR41XX
  131. help
  132. Say yes here to support the NEC VR4100 series General-purpose I/O Uint
  133. config GPIO_SCH
  134. tristate "Intel SCH/TunnelCreek GPIO"
  135. depends on PCI && X86
  136. select MFD_CORE
  137. select LPC_SCH
  138. help
  139. Say yes here to support GPIO interface on Intel Poulsbo SCH
  140. or Intel Tunnel Creek processor.
  141. The Intel SCH contains a total of 14 GPIO pins. Ten GPIOs are
  142. powered by the core power rail and are turned off during sleep
  143. modes (S3 and higher). The remaining four GPIOs are powered by
  144. the Intel SCH suspend power supply. These GPIOs remain
  145. active during S3. The suspend powered GPIOs can be used to wake the
  146. system from the Suspend-to-RAM state.
  147. The Intel Tunnel Creek processor has 5 GPIOs powered by the
  148. core power rail and 9 from suspend power supply.
  149. config GPIO_VX855
  150. tristate "VIA VX855/VX875 GPIO"
  151. depends on PCI
  152. select MFD_CORE
  153. select MFD_VX855
  154. help
  155. Support access to the VX855/VX875 GPIO lines through the gpio library.
  156. This driver provides common support for accessing the device,
  157. additional drivers must be enabled in order to use the
  158. functionality of the device.
  159. comment "I2C GPIO expanders:"
  160. config GPIO_MAX7300
  161. tristate "Maxim MAX7300 GPIO expander"
  162. depends on I2C
  163. select GPIO_MAX730X
  164. help
  165. GPIO driver for Maxim MAX7301 I2C-based GPIO expander.
  166. config GPIO_MAX732X
  167. tristate "MAX7319, MAX7320-7327 I2C Port Expanders"
  168. depends on I2C
  169. help
  170. Say yes here to support the MAX7319, MAX7320-7327 series of I2C
  171. Port Expanders. Each IO port on these chips has a fixed role of
  172. Input (designated by 'I'), Push-Pull Output ('O'), or Open-Drain
  173. Input and Output (designed by 'P'). The combinations are listed
  174. below:
  175. 8 bits: max7319 (8I), max7320 (8O), max7321 (8P),
  176. max7322 (4I4O), max7323 (4P4O)
  177. 16 bits: max7324 (8I8O), max7325 (8P8O),
  178. max7326 (4I12O), max7327 (4P12O)
  179. Board setup code must specify the model to use, and the start
  180. number for these GPIOs.
  181. config GPIO_MAX732X_IRQ
  182. bool "Interrupt controller support for MAX732x"
  183. depends on GPIO_MAX732X=y && GENERIC_HARDIRQS
  184. help
  185. Say yes here to enable the max732x to be used as an interrupt
  186. controller. It requires the driver to be built in the kernel.
  187. config GPIO_PCA953X
  188. tristate "PCA953x, PCA955x, TCA64xx, and MAX7310 I/O ports"
  189. depends on I2C
  190. help
  191. Say yes here to provide access to several register-oriented
  192. SMBus I/O expanders, made mostly by NXP or TI. Compatible
  193. models include:
  194. 4 bits: pca9536, pca9537
  195. 8 bits: max7310, pca9534, pca9538, pca9554, pca9557,
  196. tca6408
  197. 16 bits: pca9535, pca9539, pca9555, tca6416
  198. config GPIO_PCA953X_IRQ
  199. bool "Interrupt controller support for PCA953x"
  200. depends on GPIO_PCA953X=y
  201. help
  202. Say yes here to enable the pca953x to be used as an interrupt
  203. controller. It requires the driver to be built in the kernel.
  204. config GPIO_PCF857X
  205. tristate "PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders"
  206. depends on I2C
  207. help
  208. Say yes here to provide access to most "quasi-bidirectional" I2C
  209. GPIO expanders used for additional digital outputs or inputs.
  210. Most of these parts are from NXP, though TI is a second source for
  211. some of them. Compatible models include:
  212. 8 bits: pcf8574, pcf8574a, pca8574, pca8574a,
  213. pca9670, pca9672, pca9674, pca9674a,
  214. max7328, max7329
  215. 16 bits: pcf8575, pcf8575c, pca8575,
  216. pca9671, pca9673, pca9675
  217. Your board setup code will need to declare the expanders in
  218. use, and assign numbers to the GPIOs they expose. Those GPIOs
  219. can then be used from drivers and other kernel code, just like
  220. other GPIOs, but only accessible from task contexts.
  221. This driver provides an in-kernel interface to those GPIOs using
  222. platform-neutral GPIO calls.
  223. config GPIO_SX150X
  224. bool "Semtech SX150x I2C GPIO expander"
  225. depends on I2C=y
  226. default n
  227. help
  228. Say yes here to provide support for Semtech SX150-series I2C
  229. GPIO expanders. Compatible models include:
  230. 8 bits: sx1508q
  231. 16 bits: sx1509q
  232. config GPIO_STMPE
  233. bool "STMPE GPIOs"
  234. depends on MFD_STMPE
  235. help
  236. This enables support for the GPIOs found on the STMPE I/O
  237. Expanders.
  238. config GPIO_TC3589X
  239. bool "TC3589X GPIOs"
  240. depends on MFD_TC3589X
  241. help
  242. This enables support for the GPIOs found on the TC3589X
  243. I/O Expander.
  244. config GPIO_TPS65912
  245. tristate "TI TPS65912 GPIO"
  246. depends on (MFD_TPS65912_I2C || MFD_TPS65912_SPI)
  247. help
  248. This driver supports TPS65912 gpio chip
  249. config GPIO_TWL4030
  250. tristate "TWL4030, TWL5030, and TPS659x0 GPIOs"
  251. depends on TWL4030_CORE
  252. help
  253. Say yes here to access the GPIO signals of various multi-function
  254. power management chips from Texas Instruments.
  255. config GPIO_WM831X
  256. tristate "WM831x GPIOs"
  257. depends on MFD_WM831X
  258. help
  259. Say yes here to access the GPIO signals of WM831x power management
  260. chips from Wolfson Microelectronics.
  261. config GPIO_WM8350
  262. tristate "WM8350 GPIOs"
  263. depends on MFD_WM8350
  264. help
  265. Say yes here to access the GPIO signals of WM8350 power management
  266. chips from Wolfson Microelectronics.
  267. config GPIO_WM8994
  268. tristate "WM8994 GPIOs"
  269. depends on MFD_WM8994
  270. help
  271. Say yes here to access the GPIO signals of WM8994 audio hub
  272. CODECs from Wolfson Microelectronics.
  273. config GPIO_ADP5520
  274. tristate "GPIO Support for ADP5520 PMIC"
  275. depends on PMIC_ADP5520
  276. help
  277. This option enables support for on-chip GPIO found
  278. on Analog Devices ADP5520 PMICs.
  279. config GPIO_ADP5588
  280. tristate "ADP5588 I2C GPIO expander"
  281. depends on I2C
  282. help
  283. This option enables support for 18 GPIOs found
  284. on Analog Devices ADP5588 GPIO Expanders.
  285. config GPIO_ADP5588_IRQ
  286. bool "Interrupt controller support for ADP5588"
  287. depends on GPIO_ADP5588=y
  288. help
  289. Say yes here to enable the adp5588 to be used as an interrupt
  290. controller. It requires the driver to be built in the kernel.
  291. comment "PCI GPIO expanders:"
  292. config GPIO_CS5535
  293. tristate "AMD CS5535/CS5536 GPIO support"
  294. depends on PCI && X86 && MFD_CS5535
  295. help
  296. The AMD CS5535 and CS5536 southbridges support 28 GPIO pins that
  297. can be used for quite a number of things. The CS5535/6 is found on
  298. AMD Geode and Lemote Yeeloong devices.
  299. If unsure, say N.
  300. config GPIO_BT8XX
  301. tristate "BT8XX GPIO abuser"
  302. depends on PCI && VIDEO_BT848=n
  303. help
  304. The BT8xx frame grabber chip has 24 GPIO pins than can be abused
  305. as a cheap PCI GPIO card.
  306. This chip can be found on Miro, Hauppauge and STB TV-cards.
  307. The card needs to be physically altered for using it as a
  308. GPIO card. For more information on how to build a GPIO card
  309. from a BT8xx TV card, see the documentation file at
  310. Documentation/bt8xxgpio.txt
  311. If unsure, say N.
  312. config GPIO_LANGWELL
  313. bool "Intel Langwell/Penwell GPIO support"
  314. depends on PCI && X86
  315. help
  316. Say Y here to support Intel Langwell/Penwell GPIO.
  317. config GPIO_PCH
  318. tristate "Intel EG20T PCH/LAPIS Semiconductor IOH(ML7223/ML7831) GPIO"
  319. depends on PCI && X86
  320. select GENERIC_IRQ_CHIP
  321. help
  322. This driver is for PCH(Platform controller Hub) GPIO of Intel Topcliff
  323. which is an IOH(Input/Output Hub) for x86 embedded processor.
  324. This driver can access PCH GPIO device.
  325. This driver also can be used for LAPIS Semiconductor IOH(Input/
  326. Output Hub), ML7223 and ML7831.
  327. ML7223 IOH is for MP(Media Phone) use.
  328. ML7831 IOH is for general purpose use.
  329. ML7223/ML7831 is companion chip for Intel Atom E6xx series.
  330. ML7223/ML7831 is completely compatible for Intel EG20T PCH.
  331. config GPIO_ML_IOH
  332. tristate "OKI SEMICONDUCTOR ML7213 IOH GPIO support"
  333. depends on PCI
  334. select GENERIC_IRQ_CHIP
  335. help
  336. ML7213 is companion chip for Intel Atom E6xx series.
  337. This driver can be used for OKI SEMICONDUCTOR ML7213 IOH(Input/Output
  338. Hub) which is for IVI(In-Vehicle Infotainment) use.
  339. This driver can access the IOH's GPIO device.
  340. config GPIO_TIMBERDALE
  341. bool "Support for timberdale GPIO IP"
  342. depends on MFD_TIMBERDALE && HAS_IOMEM
  343. ---help---
  344. Add support for the GPIO IP in the timberdale FPGA.
  345. config GPIO_RDC321X
  346. tristate "RDC R-321x GPIO support"
  347. depends on PCI
  348. select MFD_CORE
  349. select MFD_RDC321X
  350. help
  351. Support for the RDC R321x SoC GPIOs over southbridge
  352. PCI configuration space.
  353. comment "SPI GPIO expanders:"
  354. config GPIO_MAX7301
  355. tristate "Maxim MAX7301 GPIO expander"
  356. depends on SPI_MASTER
  357. select GPIO_MAX730X
  358. help
  359. GPIO driver for Maxim MAX7301 SPI-based GPIO expander.
  360. config GPIO_MCP23S08
  361. tristate "Microchip MCP23xxx I/O expander"
  362. depends on SPI_MASTER || I2C
  363. help
  364. SPI/I2C driver for Microchip MCP23S08/MCP23S17/MCP23008/MCP23017
  365. I/O expanders.
  366. This provides a GPIO interface supporting inputs and outputs.
  367. config GPIO_MC33880
  368. tristate "Freescale MC33880 high-side/low-side switch"
  369. depends on SPI_MASTER
  370. help
  371. SPI driver for Freescale MC33880 high-side/low-side switch.
  372. This provides GPIO interface supporting inputs and outputs.
  373. config GPIO_74X164
  374. tristate "74x164 serial-in/parallel-out 8-bits shift register"
  375. depends on SPI_MASTER
  376. help
  377. Platform driver for 74x164 compatible serial-in/parallel-out
  378. 8-outputs shift registers. This driver can be used to provide access
  379. to more gpio outputs.
  380. comment "AC97 GPIO expanders:"
  381. config GPIO_UCB1400
  382. bool "Philips UCB1400 GPIO"
  383. depends on UCB1400_CORE
  384. help
  385. This enables support for the Philips UCB1400 GPIO pins.
  386. The UCB1400 is an AC97 audio codec.
  387. comment "MODULbus GPIO expanders:"
  388. config GPIO_JANZ_TTL
  389. tristate "Janz VMOD-TTL Digital IO Module"
  390. depends on MFD_JANZ_CMODIO
  391. help
  392. This enables support for the Janz VMOD-TTL Digital IO module.
  393. This driver provides support for driving the pins in output
  394. mode only. Input mode is not supported.
  395. config GPIO_AB8500
  396. bool "ST-Ericsson AB8500 Mixed Signal Circuit gpio functions"
  397. depends on AB8500_CORE && BROKEN
  398. help
  399. Select this to enable the AB8500 IC GPIO driver
  400. config GPIO_TPS65910
  401. bool "TPS65910 GPIO"
  402. depends on MFD_TPS65910
  403. help
  404. Select this option to enable GPIO driver for the TPS65910
  405. chip family.
  406. endif