Kconfig 15 KB

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