Kconfig 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # GPIO infrastructure and drivers
  4. #
  5. config ARCH_HAVE_CUSTOM_GPIO_H
  6. bool
  7. help
  8. Selecting this config option from the architecture Kconfig allows
  9. the architecture to provide a custom asm/gpio.h implementation
  10. overriding the default implementations. New uses of this are
  11. strongly discouraged.
  12. menuconfig GPIOLIB
  13. bool "GPIO Support"
  14. help
  15. This enables GPIO support through the generic GPIO library.
  16. You only need to enable this if you also want to enable
  17. one or more of the GPIO drivers below.
  18. If unsure, say N.
  19. if GPIOLIB
  20. config GPIOLIB_FASTPATH_LIMIT
  21. int "Maximum number of GPIOs for fast path"
  22. range 32 512
  23. default 512
  24. help
  25. This adjusts the point at which certain APIs will switch from
  26. using a stack allocated buffer to a dynamically allocated buffer.
  27. You shouldn't need to change this unless you really need to
  28. optimize either stack space or performance. Change this carefully
  29. since setting an incorrect value could cause stack corruption.
  30. config OF_GPIO
  31. def_bool y
  32. depends on OF
  33. depends on HAS_IOMEM
  34. config GPIO_ACPI
  35. def_bool y
  36. depends on ACPI
  37. config GPIOLIB_IRQCHIP
  38. select IRQ_DOMAIN
  39. bool
  40. config DEBUG_GPIO
  41. bool "Debug GPIO calls"
  42. depends on DEBUG_KERNEL
  43. help
  44. Say Y here to add some extra checks and diagnostics to GPIO calls.
  45. These checks help ensure that GPIOs have been properly initialized
  46. before they are used, and that sleeping calls are not made from
  47. non-sleeping contexts. They can make bitbanged serial protocols
  48. slower. The diagnostics help catch the type of setup errors
  49. that are most common when setting up new platforms or boards.
  50. config GPIO_SYSFS
  51. bool "/sys/class/gpio/... (sysfs interface)" if EXPERT
  52. depends on SYSFS
  53. select GPIO_CDEV # We need to encourage the new ABI
  54. help
  55. Say Y here to add the legacy sysfs interface for GPIOs.
  56. This ABI is deprecated. If you want to use GPIO from userspace,
  57. use the character device /dev/gpiochipN with the appropriate
  58. ioctl() operations instead.
  59. config GPIO_CDEV
  60. bool
  61. prompt "Character device (/dev/gpiochipN) support" if EXPERT
  62. default y
  63. help
  64. Say Y here to add the character device /dev/gpiochipN interface
  65. for GPIOs. The character device allows userspace to control GPIOs
  66. using ioctl() operations.
  67. Only say N if you are sure that the GPIO character device is not
  68. required.
  69. If unsure, say Y.
  70. config GPIO_CDEV_V1
  71. bool "Support GPIO ABI Version 1"
  72. default y
  73. depends on GPIO_CDEV
  74. help
  75. Say Y here to support version 1 of the GPIO CDEV ABI.
  76. This ABI version is deprecated.
  77. Please use the latest ABI for new developments.
  78. If unsure, say Y.
  79. config GPIO_GENERIC
  80. depends on HAS_IOMEM # Only for IOMEM drivers
  81. tristate
  82. config GPIO_REGMAP
  83. select REGMAP
  84. tristate
  85. # put drivers in the right section, in alphabetical order
  86. # This symbol is selected by both I2C and SPI expanders
  87. config GPIO_MAX730X
  88. tristate
  89. menu "Memory mapped GPIO drivers"
  90. depends on HAS_IOMEM
  91. config GPIO_74XX_MMIO
  92. tristate "GPIO driver for 74xx-ICs with MMIO access"
  93. depends on OF_GPIO
  94. select GPIO_GENERIC
  95. help
  96. Say yes here to support GPIO functionality for 74xx-compatible ICs
  97. with MMIO access. Compatible models include:
  98. 1 bit: 741G125 (Input), 741G74 (Output)
  99. 2 bits: 742G125 (Input), 7474 (Output)
  100. 4 bits: 74125 (Input), 74175 (Output)
  101. 6 bits: 74365 (Input), 74174 (Output)
  102. 8 bits: 74244 (Input), 74273 (Output)
  103. 16 bits: 741624 (Input), 7416374 (Output)
  104. config GPIO_ALTERA
  105. tristate "Altera GPIO"
  106. depends on OF_GPIO
  107. select GPIOLIB_IRQCHIP
  108. help
  109. Say Y or M here to build support for the Altera PIO device.
  110. If driver is built as a module it will be called gpio-altera.
  111. config GPIO_AMDPT
  112. tristate "AMD Promontory GPIO support"
  113. depends on ACPI
  114. select GPIO_GENERIC
  115. help
  116. Driver for GPIO functionality on Promontory IOHub.
  117. Requires ACPI ASL code to enumerate as a platform device.
  118. config GPIO_ASPEED
  119. tristate "Aspeed GPIO support"
  120. depends on (ARCH_ASPEED || COMPILE_TEST) && OF_GPIO
  121. select GPIOLIB_IRQCHIP
  122. help
  123. Say Y here to support Aspeed AST2400 and AST2500 GPIO controllers.
  124. config GPIO_ASPEED_SGPIO
  125. bool "Aspeed SGPIO support"
  126. depends on (ARCH_ASPEED || COMPILE_TEST) && OF_GPIO
  127. select GPIO_GENERIC
  128. select GPIOLIB_IRQCHIP
  129. help
  130. Say Y here to support Aspeed AST2500 SGPIO functionality.
  131. config GPIO_ATH79
  132. tristate "Atheros AR71XX/AR724X/AR913X GPIO support"
  133. default y if ATH79
  134. depends on ATH79 || COMPILE_TEST
  135. select GPIO_GENERIC
  136. select GPIOLIB_IRQCHIP
  137. help
  138. Select this option to enable GPIO driver for
  139. Atheros AR71XX/AR724X/AR913X SoC devices.
  140. config GPIO_RASPBERRYPI_EXP
  141. tristate "Raspberry Pi 3 GPIO Expander"
  142. default RASPBERRYPI_FIRMWARE
  143. depends on OF_GPIO
  144. # Make sure not 'y' when RASPBERRYPI_FIRMWARE is 'm'. This can only
  145. # happen when COMPILE_TEST=y, hence the added !RASPBERRYPI_FIRMWARE.
  146. depends on (ARCH_BCM2835 && RASPBERRYPI_FIRMWARE) || (COMPILE_TEST && !RASPBERRYPI_FIRMWARE)
  147. help
  148. Turn on GPIO support for the expander on Raspberry Pi 3 boards, using
  149. the firmware mailbox to communicate with VideoCore on BCM283x chips.
  150. config GPIO_BCM_KONA
  151. bool "Broadcom Kona GPIO"
  152. depends on OF_GPIO && (ARCH_BCM_MOBILE || COMPILE_TEST)
  153. help
  154. Turn on GPIO support for Broadcom "Kona" chips.
  155. config GPIO_BCM_XGS_IPROC
  156. tristate "BRCM XGS iProc GPIO support"
  157. depends on OF_GPIO && (ARCH_BCM_IPROC || COMPILE_TEST)
  158. select GPIO_GENERIC
  159. select GPIOLIB_IRQCHIP
  160. default ARCH_BCM_IPROC
  161. help
  162. Say yes here to enable GPIO support for Broadcom XGS iProc SoCs.
  163. config GPIO_BRCMSTB
  164. tristate "BRCMSTB GPIO support"
  165. default y if (ARCH_BRCMSTB || BMIPS_GENERIC)
  166. depends on OF_GPIO && (ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST)
  167. select GPIO_GENERIC
  168. select IRQ_DOMAIN
  169. help
  170. Say yes here to enable GPIO support for Broadcom STB (BCM7XXX) SoCs.
  171. config GPIO_CADENCE
  172. tristate "Cadence GPIO support"
  173. depends on OF_GPIO
  174. select GPIO_GENERIC
  175. select GPIOLIB_IRQCHIP
  176. help
  177. Say yes here to enable support for Cadence GPIO controller.
  178. config GPIO_CLPS711X
  179. tristate "CLPS711X GPIO support"
  180. depends on ARCH_CLPS711X || COMPILE_TEST
  181. select GPIO_GENERIC
  182. help
  183. Say yes here to support GPIO on CLPS711X SoCs.
  184. config GPIO_DAVINCI
  185. bool "TI Davinci/Keystone GPIO support"
  186. default y if ARCH_DAVINCI
  187. depends on (ARM || ARM64) && (ARCH_DAVINCI || ARCH_KEYSTONE || ARCH_K3)
  188. help
  189. Say yes here to enable GPIO support for TI Davinci/Keystone SoCs.
  190. config GPIO_DWAPB
  191. tristate "Synopsys DesignWare APB GPIO driver"
  192. select GPIO_GENERIC
  193. select GPIOLIB_IRQCHIP
  194. help
  195. Say Y or M here to build support for the Synopsys DesignWare APB
  196. GPIO block.
  197. config GPIO_EIC_SPRD
  198. tristate "Spreadtrum EIC support"
  199. depends on ARCH_SPRD || COMPILE_TEST
  200. depends on OF_GPIO
  201. select GPIOLIB_IRQCHIP
  202. help
  203. Say yes here to support Spreadtrum EIC device.
  204. config GPIO_EM
  205. tristate "Emma Mobile GPIO"
  206. depends on (ARCH_EMEV2 || COMPILE_TEST) && OF_GPIO
  207. help
  208. Say yes here to support GPIO on Renesas Emma Mobile SoCs.
  209. config GPIO_EN7523
  210. tristate "Airoha GPIO support"
  211. depends on ARCH_AIROHA
  212. default ARCH_AIROHA
  213. select GPIO_GENERIC
  214. select GPIOLIB_IRQCHIP
  215. help
  216. Say Y or M here to support the GPIO controller block on the
  217. Airoha EN7523 SoC. It supports two banks of 32 GPIOs.
  218. config GPIO_EP93XX
  219. def_bool y
  220. depends on ARCH_EP93XX
  221. select GPIO_GENERIC
  222. select GPIOLIB_IRQCHIP
  223. config GPIO_EXAR
  224. tristate "Support for GPIO pins on XR17V352/354/358"
  225. depends on SERIAL_8250_EXAR
  226. select REGMAP_MMIO
  227. help
  228. Selecting this option will enable handling of GPIO pins present
  229. on Exar XR17V352/354/358 chips.
  230. config GPIO_GE_FPGA
  231. bool "GE FPGA based GPIO"
  232. depends on GE_FPGA
  233. select GPIO_GENERIC
  234. help
  235. Support for common GPIO functionality provided on some GE Single Board
  236. Computers.
  237. This driver provides basic support (configure as input or output, read
  238. and write pin state) for GPIO implemented in a number of GE single
  239. board computers.
  240. config GPIO_FTGPIO010
  241. bool "Faraday FTGPIO010 GPIO"
  242. depends on OF_GPIO
  243. select GPIO_GENERIC
  244. select GPIOLIB_IRQCHIP
  245. default (ARCH_GEMINI || ARCH_MOXART)
  246. help
  247. Support for common GPIOs from the Faraday FTGPIO010 IP core, found in
  248. Cortina systems Gemini platforms, Moxa ART and others.
  249. config GPIO_GENERIC_PLATFORM
  250. tristate "Generic memory-mapped GPIO controller support (MMIO platform device)"
  251. select GPIO_GENERIC
  252. help
  253. Say yes here to support basic platform_device memory-mapped GPIO controllers.
  254. config GPIO_GRGPIO
  255. tristate "Aeroflex Gaisler GRGPIO support"
  256. depends on OF_GPIO
  257. select GPIO_GENERIC
  258. select IRQ_DOMAIN
  259. help
  260. Select this to support Aeroflex Gaisler GRGPIO cores from the GRLIB
  261. VHDL IP core library.
  262. config GPIO_HISI
  263. tristate "HiSilicon GPIO controller driver"
  264. depends on (ARM64 && ACPI) || COMPILE_TEST
  265. select GPIO_GENERIC
  266. select GPIOLIB_IRQCHIP
  267. help
  268. Say Y or M here to build support for the HiSilicon GPIO controller
  269. driver GPIO block.
  270. This GPIO controller supports double-edge interrupt and multi-core
  271. concurrent access.
  272. config GPIO_HLWD
  273. tristate "Nintendo Wii (Hollywood) GPIO"
  274. depends on OF_GPIO
  275. select GPIO_GENERIC
  276. select GPIOLIB_IRQCHIP
  277. help
  278. Select this to support the GPIO controller of the Nintendo Wii.
  279. If unsure, say N.
  280. config GPIO_ICH
  281. tristate "Intel ICH GPIO"
  282. depends on X86
  283. depends on LPC_ICH
  284. help
  285. Say yes here to support the GPIO functionality of a number of Intel
  286. ICH-based chipsets. Currently supported devices: ICH6, ICH7, ICH8
  287. ICH9, ICH10, Series 5/3400 (e.g. Ibex Peak), Series 6/C200 (e.g.
  288. Cougar Point), NM10 (Tiger Point), and 3100 (Whitmore Lake).
  289. If unsure, say N.
  290. config GPIO_IMX_SCU
  291. def_bool y
  292. depends on IMX_SCU
  293. config GPIO_IOP
  294. tristate "Intel IOP GPIO"
  295. depends on ARCH_IOP32X || COMPILE_TEST
  296. select GPIO_GENERIC
  297. help
  298. Say yes here to support the GPIO functionality of a number of Intel
  299. IOP32X or IOP33X series of chips.
  300. If unsure, say N.
  301. config GPIO_IXP4XX
  302. bool "Intel IXP4xx GPIO"
  303. depends on ARCH_IXP4XX
  304. depends on OF
  305. select GPIO_GENERIC
  306. select GPIOLIB_IRQCHIP
  307. select IRQ_DOMAIN_HIERARCHY
  308. help
  309. Say yes here to support the GPIO functionality of a number of Intel
  310. IXP4xx series of chips.
  311. If unsure, say N.
  312. config GPIO_LOGICVC
  313. tristate "Xylon LogiCVC GPIO support"
  314. depends on MFD_SYSCON && OF
  315. help
  316. Say yes here to support GPIO functionality of the Xylon LogiCVC
  317. programmable logic block.
  318. config GPIO_LOONGSON
  319. bool "Loongson-2/3 GPIO support"
  320. depends on CPU_LOONGSON2EF || CPU_LOONGSON64
  321. help
  322. Driver for GPIO functionality on Loongson-2F/3A/3B processors.
  323. config GPIO_LPC18XX
  324. tristate "NXP LPC18XX/43XX GPIO support"
  325. default y if ARCH_LPC18XX
  326. depends on OF_GPIO && (ARCH_LPC18XX || COMPILE_TEST)
  327. select IRQ_DOMAIN_HIERARCHY
  328. help
  329. Select this option to enable GPIO driver for
  330. NXP LPC18XX/43XX devices.
  331. config GPIO_LPC32XX
  332. tristate "NXP LPC32XX GPIO support"
  333. depends on OF_GPIO && (ARCH_LPC32XX || COMPILE_TEST)
  334. help
  335. Select this option to enable GPIO driver for
  336. NXP LPC32XX devices.
  337. config GPIO_MB86S7X
  338. tristate "GPIO support for Fujitsu MB86S7x Platforms"
  339. help
  340. Say yes here to support the GPIO controller in Fujitsu MB86S70 SoCs.
  341. config GPIO_MENZ127
  342. tristate "MEN 16Z127 GPIO support"
  343. depends on MCB
  344. select GPIO_GENERIC
  345. help
  346. Say yes here to support the MEN 16Z127 GPIO Controller.
  347. config GPIO_MM_LANTIQ
  348. bool "Lantiq Memory mapped GPIOs"
  349. depends on LANTIQ && SOC_XWAY
  350. help
  351. This enables support for memory mapped GPIOs on the External Bus Unit
  352. (EBU) found on Lantiq SoCs. The GPIOs are output only as they are
  353. created by attaching a 16-bit latch to the bus.
  354. config GPIO_MPC5200
  355. def_bool y
  356. depends on PPC_MPC52xx
  357. config GPIO_MPC8XXX
  358. bool "MPC512x/MPC8xxx/QorIQ GPIO support"
  359. depends on PPC_MPC512x || PPC_MPC831x || PPC_MPC834x || PPC_MPC837x || \
  360. FSL_SOC_BOOKE || PPC_86xx || ARCH_LAYERSCAPE || ARM || \
  361. COMPILE_TEST
  362. select GPIO_GENERIC
  363. select IRQ_DOMAIN
  364. help
  365. Say Y here if you're going to use hardware that connects to the
  366. MPC512x/831x/834x/837x/8572/8610/QorIQ GPIOs.
  367. config GPIO_MT7621
  368. bool "Mediatek MT7621 GPIO Support"
  369. depends on SOC_MT7620 || SOC_MT7621 || COMPILE_TEST
  370. depends on OF_GPIO
  371. select GPIO_GENERIC
  372. select GPIOLIB_IRQCHIP
  373. help
  374. Say yes here to support the Mediatek MT7621 SoC GPIO device.
  375. config GPIO_MVEBU
  376. def_bool y
  377. depends on PLAT_ORION || ARCH_MVEBU
  378. depends on OF_GPIO
  379. select GENERIC_IRQ_CHIP
  380. select REGMAP_MMIO
  381. config GPIO_MXC
  382. tristate "i.MX GPIO support"
  383. depends on ARCH_MXC || COMPILE_TEST
  384. select GPIO_GENERIC
  385. select GENERIC_IRQ_CHIP
  386. config GPIO_MXS
  387. bool "Freescale MXS GPIO support" if COMPILE_TEST
  388. depends on ARCH_MXS || COMPILE_TEST
  389. default y if ARCH_MXS
  390. select GPIO_GENERIC
  391. select GENERIC_IRQ_CHIP
  392. config GPIO_OCTEON
  393. tristate "Cavium OCTEON GPIO"
  394. depends on CAVIUM_OCTEON_SOC
  395. default y
  396. help
  397. Say yes here to support the on-chip GPIO lines on the OCTEON
  398. family of SOCs.
  399. config GPIO_OMAP
  400. tristate "TI OMAP GPIO support" if ARCH_OMAP2PLUS || COMPILE_TEST
  401. default y if ARCH_OMAP
  402. depends on ARM
  403. select GENERIC_IRQ_CHIP
  404. select GPIOLIB_IRQCHIP
  405. help
  406. Say yes here to enable GPIO support for TI OMAP SoCs.
  407. config GPIO_PL061
  408. tristate "PrimeCell PL061 GPIO support"
  409. depends on ARM_AMBA
  410. select IRQ_DOMAIN
  411. select GPIOLIB_IRQCHIP
  412. help
  413. Say yes here to support the PrimeCell PL061 GPIO device.
  414. config GPIO_PMIC_EIC_SPRD
  415. tristate "Spreadtrum PMIC EIC support"
  416. depends on MFD_SC27XX_PMIC || COMPILE_TEST
  417. depends on OF_GPIO
  418. select GPIOLIB_IRQCHIP
  419. help
  420. Say yes here to support Spreadtrum PMIC EIC device.
  421. config GPIO_PXA
  422. bool "PXA GPIO support"
  423. depends on ARCH_PXA || ARCH_MMP || COMPILE_TEST
  424. help
  425. Say yes here to support the PXA GPIO device.
  426. config GPIO_RCAR
  427. tristate "Renesas R-Car and RZ/G GPIO support"
  428. depends on ARCH_RENESAS || COMPILE_TEST
  429. select GPIOLIB_IRQCHIP
  430. help
  431. Say yes here to support GPIO on Renesas R-Car or RZ/G SoCs.
  432. config GPIO_RDA
  433. bool "RDA Micro GPIO controller support"
  434. depends on ARCH_RDA || COMPILE_TEST
  435. depends on OF_GPIO
  436. select GPIO_GENERIC
  437. select GPIOLIB_IRQCHIP
  438. help
  439. Say Y here to support RDA Micro GPIO controller.
  440. config GPIO_REALTEK_OTTO
  441. tristate "Realtek Otto GPIO support"
  442. depends on MACH_REALTEK_RTL
  443. default MACH_REALTEK_RTL
  444. select GPIO_GENERIC
  445. select GPIOLIB_IRQCHIP
  446. help
  447. The GPIO controller on the Otto MIPS platform supports up to two
  448. banks of 32 GPIOs, with edge triggered interrupts. The 32 GPIOs
  449. are grouped in four 8-bit wide ports.
  450. When built as a module, the module will be called realtek_otto_gpio.
  451. config GPIO_REG
  452. bool
  453. help
  454. A 32-bit single register GPIO fixed in/out implementation. This
  455. can be used to represent any register as a set of GPIO signals.
  456. config GPIO_ROCKCHIP
  457. tristate "Rockchip GPIO support"
  458. depends on ARCH_ROCKCHIP || COMPILE_TEST
  459. select GENERIC_IRQ_CHIP
  460. select GPIOLIB_IRQCHIP
  461. default ARCH_ROCKCHIP
  462. help
  463. Say yes here to support GPIO on Rockchip SoCs.
  464. config GPIO_SAMA5D2_PIOBU
  465. tristate "SAMA5D2 PIOBU GPIO support"
  466. depends on MFD_SYSCON
  467. depends on OF_GPIO
  468. depends on ARCH_AT91 || COMPILE_TEST
  469. select GPIO_SYSCON
  470. help
  471. Say yes here to use the PIOBU pins as GPIOs.
  472. PIOBU pins on the SAMA5D2 can be used as GPIOs.
  473. The difference from regular GPIOs is that they
  474. maintain their value during backup/self-refresh.
  475. config GPIO_SIFIVE
  476. bool "SiFive GPIO support"
  477. depends on OF_GPIO
  478. select IRQ_DOMAIN_HIERARCHY
  479. select GPIO_GENERIC
  480. select GPIOLIB_IRQCHIP
  481. select REGMAP_MMIO
  482. help
  483. Say yes here to support the GPIO device on SiFive SoCs.
  484. config GPIO_SIOX
  485. tristate "SIOX GPIO support"
  486. depends on SIOX
  487. select GPIOLIB_IRQCHIP
  488. help
  489. Say yes here to support SIOX I/O devices. These are units connected
  490. via a SIOX bus and have a number of fixed-direction I/O lines.
  491. config GPIO_SNPS_CREG
  492. bool "Synopsys GPIO via CREG (Control REGisters) driver"
  493. depends on ARC || COMPILE_TEST
  494. depends on OF_GPIO
  495. help
  496. This driver supports GPIOs via CREG on various Synopsys SoCs.
  497. This is a single-register MMIO GPIO driver for complex cases
  498. where only several fields in register belong to GPIO lines and
  499. each GPIO line owns a field with different length and on/off value.
  500. config GPIO_SPEAR_SPICS
  501. bool "ST SPEAr13xx SPI Chip Select as GPIO support"
  502. depends on PLAT_SPEAR
  503. select GENERIC_IRQ_CHIP
  504. help
  505. Say yes here to support ST SPEAr SPI Chip Select as GPIO device.
  506. config GPIO_SPRD
  507. tristate "Spreadtrum GPIO support"
  508. depends on ARCH_SPRD || COMPILE_TEST
  509. depends on OF_GPIO
  510. select GPIOLIB_IRQCHIP
  511. help
  512. Say yes here to support Spreadtrum GPIO device.
  513. config GPIO_STA2X11
  514. bool "STA2x11/ConneXt GPIO support"
  515. depends on MFD_STA2X11
  516. select GENERIC_IRQ_CHIP
  517. help
  518. Say yes here to support the STA2x11/ConneXt GPIO device.
  519. The GPIO module has 128 GPIO pins with alternate functions.
  520. config GPIO_STP_XWAY
  521. bool "XWAY STP GPIOs"
  522. depends on SOC_XWAY || COMPILE_TEST
  523. depends on OF_GPIO
  524. help
  525. This enables support for the Serial To Parallel (STP) unit found on
  526. XWAY SoC. The STP allows the SoC to drive a shift registers cascade,
  527. that can be up to 24 bits. This peripheral is aimed at driving LEDs.
  528. Some of the GPIOs/LEDs can be auto updated by the SoC with DSL and
  529. phy status.
  530. config GPIO_SYSCON
  531. tristate "GPIO based on SYSCON"
  532. depends on MFD_SYSCON && OF
  533. help
  534. Say yes here to support GPIO functionality though SYSCON driver.
  535. config GPIO_TB10X
  536. bool
  537. select GPIO_GENERIC
  538. select GENERIC_IRQ_CHIP
  539. select OF_GPIO
  540. config GPIO_TEGRA
  541. tristate "NVIDIA Tegra GPIO support"
  542. default ARCH_TEGRA
  543. depends on ARCH_TEGRA || COMPILE_TEST
  544. depends on OF_GPIO
  545. select GPIOLIB_IRQCHIP
  546. select IRQ_DOMAIN_HIERARCHY
  547. help
  548. Say yes here to support GPIO pins on NVIDIA Tegra SoCs.
  549. config GPIO_TEGRA186
  550. tristate "NVIDIA Tegra186 GPIO support"
  551. default ARCH_TEGRA_186_SOC || ARCH_TEGRA_194_SOC
  552. depends on ARCH_TEGRA_186_SOC || ARCH_TEGRA_194_SOC || COMPILE_TEST
  553. depends on OF_GPIO
  554. select GPIOLIB_IRQCHIP
  555. select IRQ_DOMAIN_HIERARCHY
  556. help
  557. Say yes here to support GPIO pins on NVIDIA Tegra186 SoCs.
  558. config GPIO_TS4800
  559. tristate "TS-4800 DIO blocks and compatibles"
  560. depends on OF_GPIO
  561. depends on SOC_IMX51 || COMPILE_TEST
  562. select GPIO_GENERIC
  563. help
  564. This driver support TS-4800 FPGA GPIO controllers.
  565. config GPIO_THUNDERX
  566. tristate "Cavium ThunderX/OCTEON-TX GPIO"
  567. depends on ARCH_THUNDER || (64BIT && COMPILE_TEST)
  568. depends on PCI_MSI
  569. select GPIOLIB_IRQCHIP
  570. select IRQ_DOMAIN_HIERARCHY
  571. select IRQ_FASTEOI_HIERARCHY_HANDLERS
  572. help
  573. Say yes here to support the on-chip GPIO lines on the ThunderX
  574. and OCTEON-TX families of SoCs.
  575. config GPIO_UNIPHIER
  576. tristate "UniPhier GPIO support"
  577. depends on ARCH_UNIPHIER || COMPILE_TEST
  578. depends on OF_GPIO
  579. select IRQ_DOMAIN_HIERARCHY
  580. help
  581. Say yes here to support UniPhier GPIOs.
  582. config GPIO_VF610
  583. def_bool y
  584. depends on ARCH_MXC
  585. select GPIOLIB_IRQCHIP
  586. help
  587. Say yes here to support i.MX or Vybrid vf610 GPIOs.
  588. config GPIO_VISCONTI
  589. tristate "Toshiba Visconti GPIO support"
  590. depends on ARCH_VISCONTI || COMPILE_TEST
  591. depends on OF_GPIO
  592. select GPIOLIB_IRQCHIP
  593. select GPIO_GENERIC
  594. select IRQ_DOMAIN_HIERARCHY
  595. help
  596. Say yes here to support GPIO on Tohisba Visconti.
  597. config GPIO_VX855
  598. tristate "VIA VX855/VX875 GPIO"
  599. depends on (X86 || COMPILE_TEST) && PCI
  600. select MFD_CORE
  601. select MFD_VX855
  602. help
  603. Support access to the VX855/VX875 GPIO lines through the GPIO library.
  604. This driver provides common support for accessing the device.
  605. Additional drivers must be enabled in order to use the
  606. functionality of the device.
  607. config GPIO_WCD934X
  608. tristate "Qualcomm Technologies Inc WCD9340/WCD9341 GPIO controller driver"
  609. depends on MFD_WCD934X && OF_GPIO
  610. help
  611. This driver is to support GPIO block found on the Qualcomm Technologies
  612. Inc WCD9340/WCD9341 Audio Codec.
  613. config GPIO_XGENE
  614. bool "APM X-Gene GPIO controller support"
  615. depends on ARM64 && OF_GPIO
  616. help
  617. This driver is to support the GPIO block within the APM X-Gene SoC
  618. platform's generic flash controller. The GPIO pins are muxed with
  619. the generic flash controller's address and data pins. Say yes
  620. here to enable the GFC GPIO functionality.
  621. config GPIO_XGENE_SB
  622. tristate "APM X-Gene GPIO standby controller support"
  623. depends on (ARCH_XGENE || COMPILE_TEST)
  624. select GPIO_GENERIC
  625. select GPIOLIB_IRQCHIP
  626. select IRQ_DOMAIN_HIERARCHY
  627. help
  628. This driver supports the GPIO block within the APM X-Gene
  629. Standby Domain. Say yes here to enable the GPIO functionality.
  630. config GPIO_XILINX
  631. tristate "Xilinx GPIO support"
  632. select GPIOLIB_IRQCHIP
  633. depends on OF_GPIO
  634. help
  635. Say yes here to support the Xilinx FPGA GPIO device.
  636. config GPIO_XLP
  637. tristate "Cavium ThunderX2 GPIO support"
  638. depends on ARCH_THUNDER2 || COMPILE_TEST
  639. select GPIOLIB_IRQCHIP
  640. help
  641. This driver provides support for GPIO interface on Cavium's ThunderX2
  642. CN99XX SoCs (Originally from Netlogic XLP).
  643. If unsure, say N.
  644. config GPIO_XTENSA
  645. bool "Xtensa GPIO32 support"
  646. depends on XTENSA
  647. depends on HAVE_XTENSA_GPIO32
  648. depends on !SMP
  649. help
  650. Say yes here to support the Xtensa internal GPIO32 IMPWIRE (input)
  651. and EXPSTATE (output) ports.
  652. config GPIO_ZEVIO
  653. bool "LSI ZEVIO SoC memory mapped GPIOs"
  654. depends on ARM && OF_GPIO
  655. help
  656. Say yes here to support the GPIO controller in LSI ZEVIO SoCs.
  657. config GPIO_ZYNQ
  658. tristate "Xilinx Zynq GPIO support"
  659. depends on ARCH_ZYNQ || ARCH_ZYNQMP
  660. select GPIOLIB_IRQCHIP
  661. help
  662. Say yes here to support Xilinx Zynq GPIO controller.
  663. config GPIO_ZYNQMP_MODEPIN
  664. tristate "ZynqMP ps-mode pin GPIO configuration driver"
  665. depends on ZYNQMP_FIRMWARE
  666. default ZYNQMP_FIRMWARE
  667. help
  668. Say yes here to support the ZynqMP ps-mode pin GPIO configuration
  669. driver.
  670. This ps-mode pin GPIO driver is based on GPIO framework. PS_MODE
  671. is 4-bits boot mode pins. It sets and gets the status of
  672. the ps-mode pin. Every pin can be configured as input/output.
  673. config GPIO_LOONGSON1
  674. tristate "Loongson1 GPIO support"
  675. depends on MACH_LOONGSON32
  676. select GPIO_GENERIC
  677. help
  678. Say Y or M here to support GPIO on Loongson1 SoCs.
  679. config GPIO_AMD_FCH
  680. tristate "GPIO support for AMD Fusion Controller Hub (G-series SOCs)"
  681. help
  682. This option enables driver for GPIO on AMD's Fusion Controller Hub,
  683. as found on G-series SOCs (e.g. GX-412TC).
  684. Note: This driver doesn't register itself automatically, as it
  685. needs to be provided with platform-specific configuration.
  686. (See e.g. CONFIG_PCENGINES_APU2.)
  687. config GPIO_MSC313
  688. bool "MStar MSC313 GPIO support"
  689. depends on ARCH_MSTARV7
  690. default ARCH_MSTARV7
  691. select GPIOLIB_IRQCHIP
  692. select IRQ_DOMAIN_HIERARCHY
  693. help
  694. Say Y here to support the main GPIO block on MStar/SigmaStar
  695. ARMv7-based SoCs.
  696. config GPIO_IDT3243X
  697. tristate "IDT 79RC3243X GPIO support"
  698. depends on MIKROTIK_RB532 || COMPILE_TEST
  699. select GPIO_GENERIC
  700. select GPIOLIB_IRQCHIP
  701. help
  702. Select this option to enable GPIO driver for
  703. IDT 79RC3243X-based devices like Mikrotik RB532.
  704. To compile this driver as a module, choose M here: the module will
  705. be called gpio-idt3243x.
  706. endmenu
  707. menu "Port-mapped I/O GPIO drivers"
  708. depends on X86 # Unconditional I/O space access
  709. config GPIO_I8255
  710. tristate
  711. help
  712. Enables support for the i8255 interface library functions. The i8255
  713. interface library provides functions to facilitate communication with
  714. interfaces compatible with the venerable Intel 8255 Programmable
  715. Peripheral Interface (PPI). The Intel 8255 PPI chip was first released
  716. in the early 1970s but compatible interfaces are nowadays typically
  717. found embedded in larger VLSI processing chips and FPGA components.
  718. If built as a module its name will be gpio-i8255.
  719. config GPIO_104_DIO_48E
  720. tristate "ACCES 104-DIO-48E GPIO support"
  721. depends on PC104
  722. select ISA_BUS_API
  723. select GPIOLIB_IRQCHIP
  724. select GPIO_I8255
  725. help
  726. Enables GPIO support for the ACCES 104-DIO-48E series (104-DIO-48E,
  727. 104-DIO-24E). The base port addresses for the devices may be
  728. configured via the base module parameter. The interrupt line numbers
  729. for the devices may be configured via the irq module parameter.
  730. config GPIO_104_IDIO_16
  731. tristate "ACCES 104-IDIO-16 GPIO support"
  732. depends on PC104
  733. select ISA_BUS_API
  734. select GPIOLIB_IRQCHIP
  735. help
  736. Enables GPIO support for the ACCES 104-IDIO-16 family (104-IDIO-16,
  737. 104-IDIO-16E, 104-IDO-16, 104-IDIO-8, 104-IDIO-8E, 104-IDO-8). The
  738. base port addresses for the devices may be configured via the base
  739. module parameter. The interrupt line numbers for the devices may be
  740. configured via the irq module parameter.
  741. config GPIO_104_IDI_48
  742. tristate "ACCES 104-IDI-48 GPIO support"
  743. depends on PC104
  744. select ISA_BUS_API
  745. select GPIOLIB_IRQCHIP
  746. select GPIO_I8255
  747. help
  748. Enables GPIO support for the ACCES 104-IDI-48 family (104-IDI-48A,
  749. 104-IDI-48AC, 104-IDI-48B, 104-IDI-48BC). The base port addresses for
  750. the devices may be configured via the base module parameter. The
  751. interrupt line numbers for the devices may be configured via the irq
  752. module parameter.
  753. config GPIO_F7188X
  754. tristate "Fintek and Nuvoton Super-I/O GPIO support"
  755. help
  756. This option enables support for GPIOs found on Fintek Super-I/O
  757. chips F71869, F71869A, F71882FG, F71889F and F81866.
  758. As well as Nuvoton Super-I/O chip NCT6126D.
  759. To compile this driver as a module, choose M here: the module will
  760. be called f7188x-gpio.
  761. config GPIO_GPIO_MM
  762. tristate "Diamond Systems GPIO-MM GPIO support"
  763. depends on PC104
  764. select ISA_BUS_API
  765. select GPIO_I8255
  766. help
  767. Enables GPIO support for the Diamond Systems GPIO-MM and GPIO-MM-12.
  768. The Diamond Systems GPIO-MM device features 48 lines of digital I/O
  769. via the emulation of dual 82C55A PPI chips. This driver provides GPIO
  770. support for these 48 channels of digital I/O.
  771. The base port addresses for the devices may be configured via the base
  772. array module parameter.
  773. config GPIO_IT87
  774. tristate "IT87xx GPIO support"
  775. help
  776. Say yes here to support GPIO functionality of IT87xx Super I/O chips.
  777. This driver is tested with ITE IT8728 and IT8732 Super I/O chips, and
  778. supports the IT8761E, IT8613, IT8620E, and IT8628E Super I/O chips as
  779. well.
  780. To compile this driver as a module, choose M here: the module will
  781. be called gpio_it87.
  782. config GPIO_SCH
  783. tristate "Intel SCH/TunnelCreek/Centerton/Quark X1000 GPIO"
  784. depends on (X86 || COMPILE_TEST) && ACPI
  785. depends on LPC_SCH
  786. select GPIOLIB_IRQCHIP
  787. help
  788. Say yes here to support GPIO interface on Intel Poulsbo SCH,
  789. Intel Tunnel Creek processor, Intel Centerton processor or
  790. Intel Quark X1000 SoC.
  791. The Intel SCH contains a total of 14 GPIO pins. Ten GPIOs are
  792. powered by the core power rail and are turned off during sleep
  793. modes (S3 and higher). The remaining four GPIOs are powered by
  794. the Intel SCH suspend power supply. These GPIOs remain
  795. active during S3. The suspend-powered GPIOs can be used to wake the
  796. system from the Suspend-to-RAM state.
  797. The Intel Tunnel Creek processor has 5 GPIOs powered by the
  798. core power rail and 9 from suspend power supply.
  799. The Intel Centerton processor has a total of 30 GPIO pins.
  800. Twenty-one are powered by the core power rail and 9 from the
  801. suspend power supply.
  802. The Intel Quark X1000 SoC has 2 GPIOs powered by the core
  803. power well and 6 from the suspend power well.
  804. config GPIO_SCH311X
  805. tristate "SMSC SCH311x SuperI/O GPIO"
  806. help
  807. Driver to enable the GPIOs found on SMSC SMSC SCH3112, SCH3114 and
  808. SCH3116 "Super I/O" chipsets.
  809. To compile this driver as a module, choose M here: the module will
  810. be called gpio-sch311x.
  811. config GPIO_TS5500
  812. tristate "TS-5500 DIO blocks and compatibles"
  813. depends on TS5500 || COMPILE_TEST
  814. help
  815. This driver supports Digital I/O exposed by pin blocks found on some
  816. Technologic Systems platforms. It includes, but is not limited to, 3
  817. blocks of the TS-5500: DIO1, DIO2 and the LCD port, and the TS-5600
  818. LCD port.
  819. config GPIO_WINBOND
  820. tristate "Winbond Super I/O GPIO support"
  821. select ISA_BUS_API
  822. help
  823. This option enables support for GPIOs found on Winbond Super I/O
  824. chips.
  825. Currently, only W83627UHG (also known as Nuvoton NCT6627UD) is
  826. supported.
  827. You will need to provide a module parameter "gpios", or a
  828. boot-time parameter "gpio_winbond.gpios" with a bitmask of GPIO
  829. ports to enable (bit 0 is GPIO1, bit 1 is GPIO2, etc.).
  830. To compile this driver as a module, choose M here: the module will
  831. be called gpio-winbond.
  832. config GPIO_WS16C48
  833. tristate "WinSystems WS16C48 GPIO support"
  834. select ISA_BUS_API
  835. select GPIOLIB_IRQCHIP
  836. help
  837. Enables GPIO support for the WinSystems WS16C48. The base port
  838. addresses for the devices may be configured via the base module
  839. parameter. The interrupt line numbers for the devices may be
  840. configured via the irq module parameter.
  841. endmenu
  842. menu "I2C GPIO expanders"
  843. depends on I2C
  844. config GPIO_ADNP
  845. tristate "Avionic Design N-bit GPIO expander"
  846. depends on OF_GPIO
  847. select GPIOLIB_IRQCHIP
  848. help
  849. This option enables support for N GPIOs found on Avionic Design
  850. I2C GPIO expanders. The register space will be extended by powers
  851. of two, so the controller will need to accommodate for that. For
  852. example: if a controller provides 48 pins, 6 registers will be
  853. enough to represent all pins, but the driver will assume a
  854. register layout for 64 pins (8 registers).
  855. config GPIO_GW_PLD
  856. tristate "Gateworks PLD GPIO Expander"
  857. depends on OF_GPIO
  858. help
  859. Say yes here to provide access to the Gateworks I2C PLD GPIO
  860. Expander. This is used at least on the Cambria GW2358-4.
  861. config GPIO_MAX7300
  862. tristate "Maxim MAX7300 GPIO expander"
  863. select GPIO_MAX730X
  864. help
  865. GPIO driver for Maxim MAX7300 I2C-based GPIO expander.
  866. config GPIO_MAX732X
  867. tristate "MAX7319, MAX7320-7327 I2C Port Expanders"
  868. help
  869. Say yes here to support the MAX7319, MAX7320-7327 series of I2C
  870. Port Expanders. Each IO port on these chips has a fixed role of
  871. Input (designated by 'I'), Push-Pull Output ('O'), or Open-Drain
  872. Input and Output (designed by 'P'). The combinations are listed
  873. below:
  874. 8 bits: max7319 (8I), max7320 (8O), max7321 (8P),
  875. max7322 (4I4O), max7323 (4P4O)
  876. 16 bits: max7324 (8I8O), max7325 (8P8O),
  877. max7326 (4I12O), max7327 (4P12O)
  878. Board setup code must specify the model to use, and the start
  879. number for these GPIOs.
  880. config GPIO_MAX732X_IRQ
  881. bool "Interrupt controller support for MAX732x"
  882. depends on GPIO_MAX732X=y
  883. select GPIOLIB_IRQCHIP
  884. help
  885. Say yes here to enable the max732x to be used as an interrupt
  886. controller. It requires the driver to be built in the kernel.
  887. config GPIO_PCA953X
  888. tristate "PCA95[357]x, PCA9698, TCA64xx, and MAX7310 I/O ports"
  889. select REGMAP_I2C
  890. help
  891. Say yes here to provide access to several register-oriented
  892. SMBus I/O expanders, made mostly by NXP or TI. Compatible
  893. models include:
  894. 4 bits: pca9536, pca9537
  895. 8 bits: max7310, max7315, pca6107, pca9534, pca9538, pca9554,
  896. pca9556, pca9557, pca9574, tca6408, tca9554, xra1202
  897. 16 bits: max7312, max7313, pca9535, pca9539, pca9555, pca9575,
  898. tca6416
  899. 24 bits: tca6424
  900. 40 bits: pca9505, pca9698
  901. config GPIO_PCA953X_IRQ
  902. bool "Interrupt controller support for PCA953x"
  903. depends on GPIO_PCA953X
  904. select GPIOLIB_IRQCHIP
  905. help
  906. Say yes here to enable the pca953x to be used as an interrupt
  907. controller.
  908. config GPIO_PCA9570
  909. tristate "PCA9570 4-Bit I2C GPO expander"
  910. help
  911. Say yes here to enable the GPO driver for the NXP PCA9570 chip.
  912. To compile this driver as a module, choose M here: the module will
  913. be called gpio-pca9570.
  914. config GPIO_PCF857X
  915. tristate "PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders"
  916. select GPIOLIB_IRQCHIP
  917. select IRQ_DOMAIN
  918. help
  919. Say yes here to provide access to most "quasi-bidirectional" I2C
  920. GPIO expanders used for additional digital outputs or inputs.
  921. Most of these parts are from NXP, though TI is a second source for
  922. some of them. Compatible models include:
  923. 8 bits: pcf8574, pcf8574a, pca8574, pca8574a,
  924. pca9670, pca9672, pca9674, pca9674a,
  925. max7328, max7329
  926. 16 bits: pcf8575, pcf8575c, pca8575,
  927. pca9671, pca9673, pca9675
  928. Your board setup code will need to declare the expanders in
  929. use, and assign numbers to the GPIOs they expose. Those GPIOs
  930. can then be used from drivers and other kernel code, just like
  931. other GPIOs, but only accessible from task contexts.
  932. This driver provides an in-kernel interface to those GPIOs using
  933. platform-neutral GPIO calls.
  934. config GPIO_TPIC2810
  935. tristate "TPIC2810 8-Bit I2C GPO expander"
  936. help
  937. Say yes here to enable the GPO driver for the TI TPIC2810 chip.
  938. To compile this driver as a module, choose M here: the module will
  939. be called gpio-tpic2810.
  940. config GPIO_TS4900
  941. tristate "Technologic Systems FPGA I2C GPIO"
  942. depends on SOC_IMX6 || COMPILE_TEST
  943. select REGMAP_I2C
  944. help
  945. Say yes here to enabled the GPIO driver for Technologic's FPGA core.
  946. Series supported include TS-4100, TS-4900, TS-7970 and TS-7990.
  947. endmenu
  948. menu "MFD GPIO expanders"
  949. config GPIO_ADP5520
  950. tristate "GPIO Support for ADP5520 PMIC"
  951. depends on PMIC_ADP5520
  952. help
  953. This option enables support for on-chip GPIO found
  954. on Analog Devices ADP5520 PMICs.
  955. config GPIO_ALTERA_A10SR
  956. tristate "Altera Arria10 System Resource GPIO"
  957. depends on MFD_ALTERA_A10SR
  958. help
  959. Driver for Arria10 Development Kit GPIO expansion which
  960. includes reads of pushbuttons and DIP switches as well
  961. as writes to LEDs.
  962. config GPIO_ARIZONA
  963. tristate "Wolfson Microelectronics Arizona class devices"
  964. depends on MFD_ARIZONA
  965. help
  966. Support for GPIOs on Wolfson Arizona class devices.
  967. config GPIO_BD71815
  968. tristate "ROHM BD71815 PMIC GPIO support"
  969. depends on MFD_ROHM_BD71828
  970. help
  971. Support for GPO(s) on ROHM BD71815 PMIC. There are two GPOs
  972. available on the ROHM PMIC.
  973. This driver can also be built as a module. If so, the module
  974. will be called gpio-bd71815.
  975. config GPIO_BD71828
  976. tristate "ROHM BD71828 GPIO support"
  977. depends on MFD_ROHM_BD71828
  978. help
  979. Support for GPIOs on ROHM BD71828 PMIC. There are three GPIOs
  980. available on the ROHM PMIC in total. The GPIOs are limited to
  981. outputs only and pins must be configured to GPIO outputs by
  982. OTP. Enable this only if you want to use these pins as outputs.
  983. This driver can also be built as a module. If so, the module
  984. will be called gpio-bd71828.
  985. config GPIO_BD9571MWV
  986. tristate "ROHM BD9571 GPIO support"
  987. depends on MFD_BD9571MWV
  988. help
  989. Support for GPIOs on ROHM BD9571 PMIC. There are two GPIOs
  990. available on the ROHM PMIC in total, both of which can also
  991. generate interrupts.
  992. This driver can also be built as a module. If so, the module
  993. will be called gpio-bd9571mwv.
  994. config GPIO_CRYSTAL_COVE
  995. tristate "GPIO support for Crystal Cove PMIC"
  996. depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC
  997. select GPIOLIB_IRQCHIP
  998. help
  999. Support for GPIO pins on Crystal Cove PMIC.
  1000. Say Yes if you have a Intel SoC-based tablet with Crystal Cove PMIC
  1001. inside.
  1002. This driver can also be built as a module. If so, the module will be
  1003. called gpio-crystalcove.
  1004. config GPIO_CS5535
  1005. tristate "AMD CS5535/CS5536 GPIO support"
  1006. depends on X86 || MIPS || COMPILE_TEST
  1007. depends on MFD_CS5535
  1008. help
  1009. The AMD CS5535 and CS5536 southbridges support 28 GPIO pins that
  1010. can be used for quite a number of things. The CS5535/6 is found on
  1011. AMD Geode and Lemote Yeeloong devices.
  1012. If unsure, say N.
  1013. config GPIO_DA9052
  1014. tristate "Dialog DA9052 GPIO"
  1015. depends on PMIC_DA9052
  1016. help
  1017. Say yes here to enable the GPIO driver for the DA9052 chip.
  1018. config GPIO_DA9055
  1019. tristate "Dialog Semiconductor DA9055 GPIO"
  1020. depends on MFD_DA9055
  1021. help
  1022. Say yes here to enable the GPIO driver for the DA9055 chip.
  1023. The Dialog DA9055 PMIC chip has 3 GPIO pins that can be
  1024. be controlled by this driver.
  1025. If driver is built as a module it will be called gpio-da9055.
  1026. config GPIO_DLN2
  1027. tristate "Diolan DLN2 GPIO support"
  1028. depends on MFD_DLN2
  1029. select GPIOLIB_IRQCHIP
  1030. help
  1031. Select this option to enable GPIO driver for the Diolan DLN2
  1032. board.
  1033. This driver can also be built as a module. If so, the module
  1034. will be called gpio-dln2.
  1035. config HTC_EGPIO
  1036. bool "HTC EGPIO support"
  1037. depends on ARM
  1038. help
  1039. This driver supports the CPLD egpio chip present on
  1040. several HTC phones. It provides basic support for input
  1041. pins, output pins, and IRQs.
  1042. config GPIO_JANZ_TTL
  1043. tristate "Janz VMOD-TTL Digital IO Module"
  1044. depends on MFD_JANZ_CMODIO
  1045. help
  1046. This enables support for the Janz VMOD-TTL Digital IO module.
  1047. This driver provides support for driving the pins in output
  1048. mode only. Input mode is not supported.
  1049. config GPIO_KEMPLD
  1050. tristate "Kontron ETX / COMexpress GPIO"
  1051. depends on MFD_KEMPLD
  1052. help
  1053. This enables support for the PLD GPIO interface on some Kontron ETX
  1054. and COMexpress (ETXexpress) modules.
  1055. This driver can also be built as a module. If so, the module will be
  1056. called gpio-kempld.
  1057. config GPIO_LP3943
  1058. tristate "TI/National Semiconductor LP3943 GPIO expander"
  1059. depends on MFD_LP3943
  1060. help
  1061. GPIO driver for LP3943 MFD.
  1062. LP3943 can be used as a GPIO expander which provides up to 16 GPIOs.
  1063. Open drain outputs are required for this usage.
  1064. config GPIO_LP873X
  1065. tristate "TI LP873X GPO"
  1066. depends on MFD_TI_LP873X
  1067. help
  1068. This driver supports the GPO on TI Lp873x PMICs. 2 GPOs are present
  1069. on LP873X PMICs.
  1070. This driver can also be built as a module. If so, the module will be
  1071. called gpio-lp873x.
  1072. config GPIO_LP87565
  1073. tristate "TI LP87565 GPIO"
  1074. depends on MFD_TI_LP87565
  1075. help
  1076. This driver supports the GPIO on TI Lp873565 PMICs. 3 GPIOs are present
  1077. on LP87565 PMICs.
  1078. This driver can also be built as a module. If so, the module will be
  1079. called gpio-lp87565.
  1080. config GPIO_MADERA
  1081. tristate "Cirrus Logic Madera class codecs"
  1082. depends on PINCTRL_MADERA
  1083. help
  1084. Support for GPIOs on Cirrus Logic Madera class codecs.
  1085. config GPIO_MAX77620
  1086. tristate "GPIO support for PMIC MAX77620 and MAX20024"
  1087. depends on MFD_MAX77620
  1088. select GPIOLIB_IRQCHIP
  1089. help
  1090. GPIO driver for MAX77620 and MAX20024 PMIC from Maxim Semiconductor.
  1091. MAX77620 PMIC has 8 pins that can be configured as GPIOs. The
  1092. driver also provides interrupt support for each of the GPIOs.
  1093. Say yes here to enable the max77620 to be used as GPIO controller.
  1094. config GPIO_MAX77650
  1095. tristate "Maxim MAX77650/77651 GPIO support"
  1096. depends on MFD_MAX77650
  1097. help
  1098. GPIO driver for MAX77650/77651 PMIC from Maxim Semiconductor.
  1099. These chips have a single pin that can be configured as GPIO.
  1100. config GPIO_PALMAS
  1101. bool "TI PALMAS series PMICs GPIO"
  1102. depends on MFD_PALMAS
  1103. help
  1104. Select this option to enable GPIO driver for the TI PALMAS
  1105. series chip family.
  1106. config GPIO_RC5T583
  1107. bool "RICOH RC5T583 GPIO"
  1108. depends on MFD_RC5T583
  1109. help
  1110. Select this option to enable GPIO driver for the Ricoh RC5T583
  1111. chip family.
  1112. This driver provides the support for driving/reading the GPIO pins
  1113. of RC5T583 device through standard GPIO library.
  1114. config GPIO_SL28CPLD
  1115. tristate "Kontron sl28cpld GPIO support"
  1116. depends on MFD_SL28CPLD || COMPILE_TEST
  1117. select GPIO_REGMAP
  1118. select GPIOLIB_IRQCHIP
  1119. select REGMAP_IRQ
  1120. help
  1121. This enables support for the GPIOs found on the Kontron sl28 CPLD.
  1122. This driver can also be built as a module. If so, the module will be
  1123. called gpio-sl28cpld.
  1124. config GPIO_STMPE
  1125. bool "STMPE GPIOs"
  1126. depends on MFD_STMPE
  1127. depends on OF_GPIO
  1128. select GPIOLIB_IRQCHIP
  1129. help
  1130. This enables support for the GPIOs found on the STMPE I/O
  1131. Expanders.
  1132. config GPIO_TC3589X
  1133. bool "TC3589X GPIOs"
  1134. depends on MFD_TC3589X
  1135. depends on OF_GPIO
  1136. select GPIOLIB_IRQCHIP
  1137. help
  1138. This enables support for the GPIOs found on the TC3589X
  1139. I/O Expander.
  1140. config GPIO_TIMBERDALE
  1141. bool "Support for timberdale GPIO IP"
  1142. depends on MFD_TIMBERDALE
  1143. help
  1144. Add support for the GPIO IP in the timberdale FPGA.
  1145. config GPIO_TN48M_CPLD
  1146. tristate "Delta Networks TN48M switch CPLD GPIO driver"
  1147. depends on MFD_TN48M_CPLD
  1148. select GPIO_REGMAP
  1149. help
  1150. This enables support for the GPIOs found on the Delta
  1151. Networks TN48M switch Lattice CPLD. It provides 12 pins in total,
  1152. they are input-only or output-only type.
  1153. This driver can also be built as a module. If so, the
  1154. module will be called gpio-tn48m.
  1155. config GPIO_TPS65086
  1156. tristate "TI TPS65086 GPO"
  1157. depends on MFD_TPS65086
  1158. help
  1159. This driver supports the GPO on TI TPS65086x PMICs.
  1160. config GPIO_TPS65218
  1161. tristate "TPS65218 GPIO"
  1162. depends on MFD_TPS65218
  1163. help
  1164. Select this option to enable GPIO driver for the TPS65218
  1165. chip family.
  1166. config GPIO_TPS6586X
  1167. bool "TPS6586X GPIO"
  1168. depends on MFD_TPS6586X
  1169. help
  1170. Select this option to enable GPIO driver for the TPS6586X
  1171. chip family.
  1172. config GPIO_TPS65910
  1173. bool "TPS65910 GPIO"
  1174. depends on MFD_TPS65910
  1175. help
  1176. Select this option to enable GPIO driver for the TPS65910
  1177. chip family.
  1178. config GPIO_TPS65912
  1179. tristate "TI TPS65912 GPIO"
  1180. depends on MFD_TPS65912
  1181. help
  1182. This driver supports TPS65912 GPIO chip.
  1183. config GPIO_TPS68470
  1184. tristate "TPS68470 GPIO"
  1185. depends on INTEL_SKL_INT3472
  1186. help
  1187. Select this option to enable GPIO driver for the TPS68470
  1188. chip family.
  1189. There are 7 GPIOs and few sensor-related GPIOs supported
  1190. by the TPS68470. While the 7 GPIOs can be configured as
  1191. input or output as appropriate, the sensor related GPIOs
  1192. are "output only" GPIOs.
  1193. config GPIO_TQMX86
  1194. tristate "TQ-Systems QTMX86 GPIO"
  1195. depends on MFD_TQMX86 || COMPILE_TEST
  1196. depends on HAS_IOPORT_MAP
  1197. select GPIOLIB_IRQCHIP
  1198. help
  1199. This driver supports GPIO on the TQMX86 IO controller.
  1200. config GPIO_TWL4030
  1201. tristate "TWL4030, TWL5030, and TPS659x0 GPIOs"
  1202. depends on TWL4030_CORE
  1203. help
  1204. Say yes here to access the GPIO signals of various multi-function
  1205. power management chips from Texas Instruments.
  1206. config GPIO_TWL6040
  1207. tristate "TWL6040 GPO"
  1208. depends on TWL6040_CORE
  1209. help
  1210. Say yes here to access the GPO signals of twl6040
  1211. audio chip from Texas Instruments.
  1212. config GPIO_UCB1400
  1213. tristate "Philips UCB1400 GPIO"
  1214. depends on UCB1400_CORE
  1215. help
  1216. This enables support for the Philips UCB1400 GPIO pins.
  1217. The UCB1400 is an AC97 audio codec.
  1218. config GPIO_WHISKEY_COVE
  1219. tristate "GPIO support for Whiskey Cove PMIC"
  1220. depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC_BXTWC
  1221. select GPIOLIB_IRQCHIP
  1222. help
  1223. Support for GPIO pins on Whiskey Cove PMIC.
  1224. Say Yes if you have an Intel SoC-based tablet with Whiskey Cove PMIC
  1225. inside.
  1226. This driver can also be built as a module. If so, the module will be
  1227. called gpio-wcove.
  1228. config GPIO_WM831X
  1229. tristate "WM831x GPIOs"
  1230. depends on MFD_WM831X
  1231. help
  1232. Say yes here to access the GPIO signals of WM831x power management
  1233. chips from Wolfson Microelectronics.
  1234. config GPIO_WM8350
  1235. tristate "WM8350 GPIOs"
  1236. depends on MFD_WM8350
  1237. help
  1238. Say yes here to access the GPIO signals of WM8350 power management
  1239. chips from Wolfson Microelectronics.
  1240. config GPIO_WM8994
  1241. tristate "WM8994 GPIOs"
  1242. depends on MFD_WM8994
  1243. help
  1244. Say yes here to access the GPIO signals of WM8994 audio hub
  1245. CODECs from Wolfson Microelectronics.
  1246. endmenu
  1247. menu "PCI GPIO expanders"
  1248. depends on PCI
  1249. config GPIO_AMD8111
  1250. tristate "AMD 8111 GPIO driver"
  1251. depends on X86 || COMPILE_TEST
  1252. depends on HAS_IOPORT_MAP
  1253. help
  1254. The AMD 8111 southbridge contains 32 GPIO pins which can be used.
  1255. Note that usually system firmware/ACPI handles GPIO pins on their
  1256. own and users might easily break their systems with uncareful usage
  1257. of this driver!
  1258. If unsure, say N
  1259. config GPIO_BT8XX
  1260. tristate "BT8XX GPIO abuser"
  1261. depends on VIDEO_BT848=n
  1262. help
  1263. The BT8xx frame grabber chip has 24 GPIO pins that can be abused
  1264. as a cheap PCI GPIO card.
  1265. This chip can be found on Miro, Hauppauge and STB TV-cards.
  1266. The card needs to be physically altered for using it as a
  1267. GPIO card. For more information on how to build a GPIO card
  1268. from a BT8xx TV card, see the documentation file at
  1269. Documentation/driver-api/gpio/bt8xxgpio.rst
  1270. If unsure, say N.
  1271. config GPIO_MERRIFIELD
  1272. tristate "Intel Merrifield GPIO support"
  1273. depends on X86_INTEL_MID
  1274. select GPIOLIB_IRQCHIP
  1275. help
  1276. Say Y here to support Intel Merrifield GPIO.
  1277. config GPIO_MLXBF
  1278. tristate "Mellanox BlueField SoC GPIO"
  1279. depends on (MELLANOX_PLATFORM && ARM64 && ACPI) || (64BIT && COMPILE_TEST)
  1280. select GPIO_GENERIC
  1281. help
  1282. Say Y here if you want GPIO support on Mellanox BlueField SoC.
  1283. config GPIO_MLXBF2
  1284. tristate "Mellanox BlueField 2 SoC GPIO"
  1285. depends on (MELLANOX_PLATFORM && ARM64 && ACPI) || (64BIT && COMPILE_TEST)
  1286. select GPIO_GENERIC
  1287. help
  1288. Say Y here if you want GPIO support on Mellanox BlueField 2 SoC.
  1289. config GPIO_ML_IOH
  1290. tristate "OKI SEMICONDUCTOR ML7213 IOH GPIO support"
  1291. depends on X86 || COMPILE_TEST
  1292. select GENERIC_IRQ_CHIP
  1293. help
  1294. ML7213 is companion chip for Intel Atom E6xx series.
  1295. This driver can be used for OKI SEMICONDUCTOR ML7213 IOH (Input/Output
  1296. Hub) which is for IVI (In-Vehicle Infotainment) use.
  1297. This driver can access the IOH's GPIO device.
  1298. config GPIO_PCH
  1299. tristate "Intel EG20T PCH/LAPIS Semiconductor IOH (ML7223/ML7831) GPIO"
  1300. depends on X86_32 || MIPS || COMPILE_TEST
  1301. select GENERIC_IRQ_CHIP
  1302. help
  1303. This driver is for PCH (Platform Controller Hub) GPIO of Intel Topcliff,
  1304. which is an IOH (Input/Output Hub) for x86 embedded processor.
  1305. This driver can access PCH GPIO device.
  1306. This driver also can be used for LAPIS Semiconductor IOH (Input/
  1307. Output Hub), ML7223 and ML7831.
  1308. ML7223 IOH is for MP (Media Phone) use.
  1309. ML7831 IOH is for general purpose use.
  1310. ML7223/ML7831 is companion chip for Intel Atom E6xx series.
  1311. ML7223/ML7831 is completely compatible for Intel EG20T PCH.
  1312. config GPIO_PCI_IDIO_16
  1313. tristate "ACCES PCI-IDIO-16 GPIO support"
  1314. select GPIOLIB_IRQCHIP
  1315. help
  1316. Enables GPIO support for the ACCES PCI-IDIO-16. An interrupt is
  1317. generated when any of the inputs change state (low to high or high to
  1318. low). Input filter control is not supported by this driver, and the
  1319. input filters are deactivated by this driver.
  1320. config GPIO_PCIE_IDIO_24
  1321. tristate "ACCES PCIe-IDIO-24 GPIO support"
  1322. select GPIOLIB_IRQCHIP
  1323. help
  1324. Enables GPIO support for the ACCES PCIe-IDIO-24 family (PCIe-IDIO-24,
  1325. PCIe-IDI-24, PCIe-IDO-24, PCIe-IDIO-12). An interrupt is generated
  1326. when any of the inputs change state (low to high or high to low).
  1327. Input filter control is not supported by this driver, and the input
  1328. filters are deactivated by this driver.
  1329. config GPIO_RDC321X
  1330. tristate "RDC R-321x GPIO support"
  1331. select MFD_CORE
  1332. select MFD_RDC321X
  1333. help
  1334. Support for the RDC R321x SoC GPIOs over southbridge
  1335. PCI configuration space.
  1336. config GPIO_SODAVILLE
  1337. bool "Intel Sodaville GPIO support"
  1338. depends on X86 && OF
  1339. select GPIO_GENERIC
  1340. select GENERIC_IRQ_CHIP
  1341. help
  1342. Say Y here to support Intel Sodaville GPIO.
  1343. endmenu
  1344. menu "SPI GPIO expanders"
  1345. depends on SPI_MASTER
  1346. config GPIO_74X164
  1347. tristate "74x164 serial-in/parallel-out 8-bits shift register"
  1348. depends on OF_GPIO
  1349. help
  1350. Driver for 74x164 compatible serial-in/parallel-out 8-outputs
  1351. shift registers. This driver can be used to provide access
  1352. to more GPIO outputs.
  1353. config GPIO_MAX3191X
  1354. tristate "Maxim MAX3191x industrial serializer"
  1355. select CRC8
  1356. help
  1357. GPIO driver for Maxim MAX31910, MAX31911, MAX31912, MAX31913,
  1358. MAX31953 and MAX31963 industrial serializer, a daisy-chainable
  1359. chip to make 8 digital 24V inputs available via SPI. Supports
  1360. CRC checksums to guard against electromagnetic interference,
  1361. as well as undervoltage and overtemperature detection.
  1362. config GPIO_MAX7301
  1363. tristate "Maxim MAX7301 GPIO expander"
  1364. select GPIO_MAX730X
  1365. help
  1366. GPIO driver for Maxim MAX7301 SPI-based GPIO expander.
  1367. config GPIO_MC33880
  1368. tristate "Freescale MC33880 high-side/low-side switch"
  1369. help
  1370. SPI driver for Freescale MC33880 high-side/low-side switch.
  1371. This provides GPIO interface supporting inputs and outputs.
  1372. config GPIO_PISOSR
  1373. tristate "Generic parallel-in/serial-out shift register"
  1374. help
  1375. GPIO driver for SPI compatible parallel-in/serial-out shift
  1376. registers. These are input only devices.
  1377. config GPIO_XRA1403
  1378. tristate "EXAR XRA1403 16-bit GPIO expander"
  1379. select REGMAP_SPI
  1380. help
  1381. GPIO driver for EXAR XRA1403 16-bit SPI-based GPIO expander.
  1382. config GPIO_MOXTET
  1383. tristate "Turris Mox Moxtet bus GPIO expander"
  1384. depends on MOXTET
  1385. help
  1386. Say yes here if you are building for the Turris Mox router.
  1387. This is the driver needed for configuring the GPIOs via the Moxtet
  1388. bus. For example the Mox module with SFP cage needs this driver
  1389. so that phylink can use corresponding GPIOs.
  1390. endmenu
  1391. menu "USB GPIO expanders"
  1392. depends on USB
  1393. config GPIO_VIPERBOARD
  1394. tristate "Viperboard GPIO a & b support"
  1395. depends on MFD_VIPERBOARD
  1396. help
  1397. Say yes here to access the GPIO signals of Nano River
  1398. Technologies Viperboard. There are two GPIO chips on the
  1399. board: gpioa and gpiob.
  1400. See viperboard API specification and Nano
  1401. River Tech's viperboard.h for detailed meaning
  1402. of the module parameters.
  1403. endmenu
  1404. menu "Virtual GPIO drivers"
  1405. config GPIO_AGGREGATOR
  1406. tristate "GPIO Aggregator"
  1407. help
  1408. Say yes here to enable the GPIO Aggregator, which provides a way to
  1409. aggregate existing GPIO lines into a new virtual GPIO chip.
  1410. This can serve the following purposes:
  1411. - Assign permissions for a collection of GPIO lines to a user,
  1412. - Export a collection of GPIO lines to a virtual machine,
  1413. - Provide a generic driver for a GPIO-operated device in an
  1414. industrial control context, to be operated from userspace using
  1415. the GPIO chardev interface.
  1416. config GPIO_MOCKUP
  1417. tristate "GPIO Testing Driver"
  1418. select IRQ_SIM
  1419. help
  1420. This enables GPIO Testing driver, which provides a way to test GPIO
  1421. subsystem through sysfs (or char device) and debugfs.
  1422. User could use it through the script in
  1423. tools/testing/selftests/gpio/gpio-mockup.sh. Reference the usage in
  1424. it.
  1425. config GPIO_VIRTIO
  1426. tristate "VirtIO GPIO support"
  1427. depends on VIRTIO
  1428. select GPIOLIB_IRQCHIP
  1429. help
  1430. Say Y here to enable guest support for virtio-based GPIO controllers.
  1431. These virtual GPIOs can be routed to real GPIOs or attached to
  1432. simulators on the host (like QEMU).
  1433. config GPIO_SIM
  1434. tristate "GPIO Simulator Module"
  1435. select IRQ_SIM
  1436. select CONFIGFS_FS
  1437. help
  1438. This enables the GPIO simulator - a configfs-based GPIO testing
  1439. driver.
  1440. endmenu
  1441. endif