Kconfig 17 KB

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