Kconfig 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  1. #
  2. # GPIO infrastructure and drivers
  3. #
  4. menu "GPIO Support"
  5. config DM_GPIO
  6. bool "Enable Driver Model for GPIO drivers"
  7. depends on DM
  8. help
  9. Enable driver model for GPIO access. The standard GPIO
  10. interface (gpio_get_value(), etc.) is then implemented by
  11. the GPIO uclass. Drivers provide methods to query the
  12. particular GPIOs that they provide. The uclass interface
  13. is defined in include/asm-generic/gpio.h.
  14. config SPL_DM_GPIO
  15. bool "Enable Driver Model for GPIO drivers in SPL"
  16. depends on DM_GPIO && SPL_DM && SPL_GPIO
  17. default y
  18. help
  19. Enable driver model for GPIO access in SPL. The standard GPIO
  20. interface (gpio_get_value(), etc.) is then implemented by
  21. the GPIO uclass. Drivers provide methods to query the
  22. particular GPIOs that they provide. The uclass interface
  23. is defined in include/asm-generic/gpio.h.
  24. config TPL_DM_GPIO
  25. bool "Enable Driver Model for GPIO drivers in TPL"
  26. depends on DM_GPIO && TPL_DM && TPL_GPIO
  27. default y
  28. help
  29. Enable driver model for GPIO access in TPL. The standard GPIO
  30. interface (gpio_get_value(), etc.) is then implemented by
  31. the GPIO uclass. Drivers provide methods to query the
  32. particular GPIOs that they provide. The uclass interface
  33. is defined in include/asm-generic/gpio.h.
  34. config GPIO_HOG
  35. bool "Enable GPIO hog support"
  36. depends on DM_GPIO
  37. default n
  38. help
  39. Enable gpio hog support
  40. The GPIO chip may contain GPIO hog definitions. GPIO hogging
  41. is a mechanism providing automatic GPIO request and config-
  42. uration as part of the gpio-controller's driver probe function.
  43. config DM_GPIO_LOOKUP_LABEL
  44. bool "Enable searching for gpio labelnames"
  45. depends on DM_GPIO
  46. help
  47. This option enables searching for gpio names in
  48. the defined gpio labels, if the search for the
  49. gpio bank name failed. This makes sense if you use
  50. different gpios on different hardware versions
  51. for the same functionality in board code.
  52. config SPL_DM_GPIO_LOOKUP_LABEL
  53. bool "Enable searching for gpio labelnames"
  54. depends on DM_GPIO && SPL_DM && SPL_GPIO
  55. help
  56. This option enables searching for gpio names in
  57. the defined gpio labels, if the search for the
  58. gpio bank name failed. This makes sense if you use
  59. different gpios on different hardware versions
  60. for the same functionality in board code.
  61. config ALTERA_PIO
  62. bool "Altera PIO driver"
  63. depends on DM_GPIO
  64. help
  65. Select this to enable PIO for Altera devices. Please find
  66. details on the "Embedded Peripherals IP User Guide" of Altera.
  67. config BCM6345_GPIO
  68. bool "BCM6345 GPIO driver"
  69. depends on DM_GPIO && (ARCH_BMIPS || ARCH_BCM68360 || \
  70. ARCH_BCM6858 || ARCH_BCM63158)
  71. help
  72. This driver supports the GPIO banks on BCM6345 SoCs.
  73. config CORTINA_GPIO
  74. bool "Cortina-Access GPIO driver"
  75. depends on DM_GPIO && CORTINA_PLATFORM
  76. help
  77. Enable support for the GPIO controller in Cortina CAxxxx SoCs.
  78. This driver supports all CPU ISA variants supported by Cortina
  79. Access CAxxxx SoCs.
  80. config DWAPB_GPIO
  81. bool "DWAPB GPIO driver"
  82. depends on DM && DM_GPIO
  83. default n
  84. help
  85. Support for the Designware APB GPIO driver.
  86. config AT91_GPIO
  87. bool "AT91 PIO GPIO driver"
  88. default n
  89. help
  90. Say yes here to select AT91 PIO GPIO driver. AT91 PIO
  91. controller manages up to 32 fully programmable input/output
  92. lines. Each I/O line may be dedicated as a general-purpose
  93. I/O or be assigned to a function of an embedded peripheral.
  94. The assignment to a function of an embedded peripheral is
  95. the responsibility of AT91 Pinctrl driver. This driver is
  96. responsible for the general-purpose I/O.
  97. config ATMEL_PIO4
  98. bool "ATMEL PIO4 driver"
  99. depends on DM_GPIO
  100. default n
  101. help
  102. Say yes here to support the Atmel PIO4 driver.
  103. The PIO4 is new version of Atmel PIO controller, which manages
  104. up to 128 fully programmable input/output lines. Each I/O line
  105. may be dedicated as a general purpose I/O or be assigned to
  106. a function of an embedded peripheral.
  107. config DA8XX_GPIO
  108. bool "DA8xx GPIO Driver"
  109. help
  110. This driver supports the DA8xx GPIO controller
  111. config INTEL_BROADWELL_GPIO
  112. bool "Intel Broadwell GPIO driver"
  113. depends on DM
  114. help
  115. This driver supports Broadwell U devices which have an expanded
  116. GPIO feature set. The difference is large enough to merit a separate
  117. driver from the common Intel ICH6 driver. It supports a total of
  118. 95 GPIOs which can be configured from the device tree.
  119. config INTEL_GPIO
  120. bool "Intel generic GPIO driver"
  121. depends on DM_GPIO
  122. help
  123. Say yes here to select Intel generic GPIO driver. This controller
  124. supports recent chips (e.g. Apollo Lake). It permits basic GPIO
  125. control including setting pins to input/output. It makes use of its
  126. parent pinctrl driver to actually effect changes.
  127. config INTEL_ICH6_GPIO
  128. bool "Intel ICH6 compatible legacy GPIO driver"
  129. depends on DM_GPIO
  130. help
  131. Say yes here to select Intel ICH6 compatible legacy GPIO driver.
  132. config IMX_RGPIO2P
  133. bool "i.MX7ULP RGPIO2P driver"
  134. depends on DM
  135. default n
  136. help
  137. This driver supports i.MX7ULP Rapid GPIO2P controller.
  138. config IPROC_GPIO
  139. bool "Broadcom iProc GPIO driver(without pinconf)"
  140. default n
  141. help
  142. The Broadcom iProc based SoCs- Cygnus, NS2, NS3, NSP and Stingray,
  143. use the same GPIO Controller IP hence this driver could be used
  144. for all.
  145. The Broadcom iProc based SoCs have multiple GPIO controllers and only
  146. the always-ON GPIO controller (CRMU/AON) is supported by this driver.
  147. config HSDK_CREG_GPIO
  148. bool "HSDK CREG GPIO griver"
  149. depends on DM_GPIO
  150. default n
  151. help
  152. This driver supports CREG GPIOs on Synopsys HSDK SOC.
  153. config LPC32XX_GPIO
  154. bool "LPC32XX GPIO driver"
  155. depends on DM
  156. default n
  157. help
  158. Support for the LPC32XX GPIO driver.
  159. config MCP230XX_GPIO
  160. bool "MCP230XX GPIO driver"
  161. depends on DM
  162. help
  163. Support for Microchip's MCP230XX I2C connected GPIO devices.
  164. The following chips are supported:
  165. - MCP23008
  166. - MCP23017
  167. - MCP23018
  168. config MSCC_SGPIO
  169. bool "Microsemi Serial GPIO driver"
  170. depends on DM_GPIO && SOC_VCOREIII
  171. help
  172. Support for the VCoreIII SoC serial GPIO device. By using a
  173. serial interface, the SIO controller significantly extends
  174. the number of available GPIOs with a minimum number of
  175. additional pins on the device. The primary purpose of the
  176. SIO controller is to connect control signals from SFP
  177. modules and to act as an LED controller.
  178. config MSM_GPIO
  179. bool "Qualcomm GPIO driver"
  180. depends on DM_GPIO
  181. default n
  182. help
  183. Support GPIO controllers on Qualcomm Snapdragon family of SoCs.
  184. This controller have single bank (default name "soc"), every
  185. gpio has it's own set of registers.
  186. Only simple GPIO operations are supported (get/set, change of
  187. direction and checking pin function).
  188. Supported devices:
  189. - APQ8016
  190. - MSM8916
  191. config MXC_GPIO
  192. bool "Freescale/NXP MXC GPIO driver"
  193. help
  194. Support GPIO controllers on various i.MX platforms
  195. config MXS_GPIO
  196. bool "Freescale/NXP MXS GPIO driver"
  197. help
  198. Support GPIO controllers on i.MX23 and i.MX28 platforms
  199. config OMAP_GPIO
  200. bool "TI OMAP GPIO driver"
  201. depends on ARCH_OMAP2PLUS
  202. default y
  203. help
  204. Support GPIO controllers on the TI OMAP3/4/5 and related (such as
  205. AM335x/AM43xx/AM57xx/DRA7xx/etc) families of SoCs.
  206. config CMD_PCA953X
  207. bool "Enable the pca953x command"
  208. help
  209. Deprecated: This should be converted to driver model.
  210. This command provides access to a pca953x GPIO device using the
  211. legacy GPIO interface. Several subcommands are provided which mirror
  212. the standard 'gpio' command. It should use that instead.
  213. config PM8916_GPIO
  214. bool "Qualcomm PM8916 PMIC GPIO/keypad driver"
  215. depends on DM_GPIO && PMIC_PM8916
  216. help
  217. Support for GPIO pins and power/reset buttons found on
  218. Qualcomm PM8916 PMIC.
  219. Default name for GPIO bank is "pm8916".
  220. Power and reset buttons are placed in "pm8916_key" bank and
  221. have gpio numbers 0 and 1 respectively.
  222. config PCF8575_GPIO
  223. bool "PCF8575 I2C GPIO Expander driver"
  224. depends on DM_GPIO && DM_I2C
  225. help
  226. Support for PCF8575 I2C 16-bit GPIO expander. Most of these
  227. chips are from NXP and TI.
  228. config RCAR_GPIO
  229. bool "Renesas RCar GPIO driver"
  230. depends on DM_GPIO && ARCH_RMOBILE
  231. help
  232. This driver supports the GPIO banks on Renesas RCar SoCs.
  233. config RZA1_GPIO
  234. bool "Renesas RZ/A1 GPIO driver"
  235. depends on DM_GPIO && RZA1
  236. help
  237. This driver supports the GPIO banks on Renesas RZ/A1 R7S72100 SoCs.
  238. config ROCKCHIP_GPIO
  239. bool "Rockchip GPIO driver"
  240. depends on DM_GPIO
  241. help
  242. Support GPIO access on Rockchip SoCs. The GPIOs are arranged into
  243. a number of banks (different for each SoC type) each with 32 GPIOs.
  244. The GPIOs for a device are defined in the device tree with one node
  245. for each bank.
  246. config SANDBOX_GPIO
  247. bool "Enable sandbox GPIO driver"
  248. depends on SANDBOX && DM && DM_GPIO
  249. help
  250. This driver supports some simulated GPIOs which can be adjusted
  251. using 'back door' functions like sandbox_gpio_set_value(). Then the
  252. GPIOs can be inspected through the normal get_get_value()
  253. interface. The purpose of this is to allow GPIOs to be used as
  254. normal in sandbox, perhaps with test code actually driving the
  255. behaviour of those GPIOs.
  256. config SANDBOX_GPIO_COUNT
  257. int "Number of sandbox GPIOs"
  258. depends on SANDBOX_GPIO
  259. default 128
  260. help
  261. The sandbox driver can support any number of GPIOs. Generally these
  262. are specified using the device tree. But you can also have a number
  263. of 'anonymous' GPIOs that do not belong to any device or bank.
  264. Select a suitable value depending on your needs.
  265. config SUNXI_GPIO
  266. bool "Allwinner GPIO driver"
  267. depends on ARCH_SUNXI
  268. help
  269. Support the GPIO device in Allwinner SoCs.
  270. config XILINX_GPIO
  271. bool "Xilinx GPIO driver"
  272. depends on DM_GPIO
  273. help
  274. This config enable the Xilinx GPIO driver for Microblaze.
  275. config CMD_TCA642X
  276. bool "tca642x - Command to access tca642x state"
  277. help
  278. DEPRECATED - This needs conversion to driver model
  279. This provides a way to looking at the pin state of this device.
  280. This mirrors the 'gpio' command and that should be used in preference
  281. to custom code.
  282. config TEGRA_GPIO
  283. bool "Tegra20..210 GPIO driver"
  284. depends on DM_GPIO
  285. help
  286. Support for the GPIO controller contained in NVIDIA Tegra20 through
  287. Tegra210.
  288. config TEGRA186_GPIO
  289. bool "Tegra186 GPIO driver"
  290. depends on DM_GPIO
  291. help
  292. Support for the GPIO controller contained in NVIDIA Tegra186. This
  293. covers both the "main" and "AON" controller instances, even though
  294. they have slightly different register layout.
  295. config GPIO_UNIPHIER
  296. bool "UniPhier GPIO"
  297. depends on ARCH_UNIPHIER
  298. help
  299. Say yes here to support UniPhier GPIOs.
  300. config VYBRID_GPIO
  301. bool "Vybrid GPIO driver"
  302. depends on DM
  303. default n
  304. help
  305. Say yes here to support Vybrid vf610 GPIOs.
  306. config PIC32_GPIO
  307. bool "Microchip PIC32 GPIO driver"
  308. depends on DM_GPIO && MACH_PIC32
  309. default y
  310. help
  311. Say yes here to support Microchip PIC32 GPIOs.
  312. config OCTEON_GPIO
  313. bool "Octeon II/III/TX/TX2 GPIO driver"
  314. depends on DM_GPIO && PCI && (ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2)
  315. default y
  316. help
  317. Add support for the Marvell Octeon GPIO driver. This is used with
  318. various Octeon parts such as Octeon II/III and OcteonTX/TX2.
  319. Octeon II/III has 32 GPIOs (count defined via DT) and OcteonTX/TX2
  320. has 64 GPIOs (count defined via internal register).
  321. config STM32_GPIO
  322. bool "ST STM32 GPIO driver"
  323. depends on DM_GPIO && (ARCH_STM32 || ARCH_STM32MP)
  324. default y
  325. help
  326. Device model driver support for STM32 GPIO controller. It should be
  327. usable on many stm32 families like stm32f4/f7/h7 and stm32mp1.
  328. Tested on STM32F7.
  329. config SIFIVE_GPIO
  330. bool "SiFive GPIO driver"
  331. depends on DM_GPIO
  332. help
  333. Device model driver for GPIO controller present in SiFive FU540 SoC. This
  334. driver enables GPIO interface on HiFive Unleashed A00 board.
  335. config STARFIVE_GPIO
  336. bool "StarFive GPIO driver"
  337. depends on DM_GPIO
  338. help
  339. Device model driver for GPIO controller present in StarFive JH7110 SoC.
  340. config MVEBU_GPIO
  341. bool "Marvell MVEBU GPIO driver"
  342. depends on DM_GPIO && (ARCH_MVEBU || ARCH_KIRKWOOD)
  343. default y
  344. help
  345. Say yes here to support Marvell MVEBU (Armada XP/38x) GPIOs.
  346. config ZYNQ_GPIO
  347. bool "Zynq GPIO driver"
  348. depends on DM_GPIO
  349. default y if ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
  350. help
  351. Supports GPIO access on Zynq SoC.
  352. config DM_74X164
  353. bool "74x164 serial-in/parallel-out 8-bits shift register"
  354. depends on DM_GPIO
  355. help
  356. Driver for 74x164 compatible serial-in/parallel-out 8-outputs
  357. shift registers, such as 74lv165, 74hc595.
  358. This driver can be used to provide access to more gpio outputs.
  359. config DM_PCA953X
  360. bool "PCA95[357]x, PCA9698, TCA64xx, and MAX7310 I/O ports"
  361. depends on DM_GPIO && DM_I2C
  362. help
  363. Say yes here to provide access to several register-oriented
  364. SMBus I/O expanders, made mostly by NXP or TI. Compatible
  365. models include:
  366. 4 bits: pca9536, pca9537
  367. 8 bits: max7310, max7315, pca6107, pca9534, pca9538, pca9554,
  368. pca9556, pca9557, pca9574, tca6408, xra1202
  369. 16 bits: max7312, max7313, pca9535, pca9539, pca9555, pca9575,
  370. tca6416
  371. 24 bits: tca6424
  372. 40 bits: pca9505, pca9698
  373. Now, max 24 bits chips and PCA953X compatible chips are
  374. supported
  375. config SPL_DM_PCA953X
  376. bool "PCA95[357]x, PCA9698, TCA64xx, and MAX7310 I/O ports in SPL"
  377. depends on DM_GPIO
  378. help
  379. Say yes here to provide access to several register-oriented
  380. SMBus I/O expanders, made mostly by NXP or TI. Compatible
  381. models include:
  382. 4 bits: pca9536, pca9537
  383. 8 bits: max7310, max7315, pca6107, pca9534, pca9538, pca9554,
  384. pca9556, pca9557, pca9574, tca6408, xra1202
  385. 16 bits: max7312, max7313, pca9535, pca9539, pca9555, pca9575,
  386. tca6416
  387. 24 bits: tca6424
  388. 40 bits: pca9505, pca9698
  389. Now, max 24 bits chips and PCA953X compatible chips are
  390. supported
  391. config MPC8XXX_GPIO
  392. bool "Freescale MPC8XXX GPIO driver"
  393. depends on DM_GPIO
  394. help
  395. This driver supports the built-in GPIO controller of MPC8XXX CPUs.
  396. Each GPIO bank is identified by its own entry in the device tree,
  397. i.e.
  398. gpio-controller@fc00 {
  399. #gpio-cells = <2>;
  400. compatible = "fsl,pq3-gpio";
  401. reg = <0xfc00 0x100>
  402. }
  403. By default, each bank is assumed to have 32 GPIOs, but the ngpios
  404. setting is honored, so the number of GPIOs for each bank is
  405. configurable to match the actual GPIO count of the SoC (e.g. the
  406. 32/32/23 banks of the P1022 SoC).
  407. Aside from the standard functions of input/output mode, and output
  408. value setting, the open-drain feature, which can configure individual
  409. GPIOs to work as open-drain outputs, is supported.
  410. config MPC83XX_SPISEL_BOOT
  411. bool "Freescale MPC83XX SPISEL_BOOT driver"
  412. depends on DM_GPIO && ARCH_MPC830X
  413. help
  414. GPIO driver to set/clear dedicated SPISEL_BOOT output on MPC83XX.
  415. This pin is typically used as spi chip select to a spi nor flash.
  416. config MT7620_GPIO
  417. bool "MediaTek MT7620 GPIO driver"
  418. depends on DM_GPIO && SOC_MT7620
  419. default y
  420. help
  421. Device model driver for GPIO controller present in MediaTek MT7620
  422. and earlier SoCs.
  423. config MT7621_GPIO
  424. bool "MediaTek MT7621 GPIO driver"
  425. depends on DM_GPIO && SOC_MT7628
  426. default y
  427. help
  428. Say yes here to support MediaTek MT7621 compatible GPIOs.
  429. config NX_GPIO
  430. bool "Nexell GPIO driver"
  431. depends on DM_GPIO
  432. help
  433. Support GPIO access on Nexell SoCs. The GPIOs are arranged into
  434. a number of banks (different for each SoC type) each with 32 GPIOs.
  435. The GPIOs for a device are defined in the device tree with one node
  436. for each bank.
  437. config NOMADIK_GPIO
  438. bool "Nomadik GPIO driver"
  439. depends on DM_GPIO
  440. help
  441. Support GPIO access on ST-Ericsson Ux500 SoCs. The GPIOs are arranged
  442. into a number of banks each with 32 GPIOs. The GPIOs for a device are
  443. defined in the device tree with one node for each bank.
  444. endmenu