Kconfig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  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_SUPPORT
  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_SUPPORT
  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 ALTERA_PIO
  44. bool "Altera PIO driver"
  45. depends on DM_GPIO
  46. help
  47. Select this to enable PIO for Altera devices. Please find
  48. details on the "Embedded Peripherals IP User Guide" of Altera.
  49. config BCM6345_GPIO
  50. bool "BCM6345 GPIO driver"
  51. depends on DM_GPIO && (ARCH_BMIPS || ARCH_BCM6858 || ARCH_BCM63158)
  52. help
  53. This driver supports the GPIO banks on BCM6345 SoCs.
  54. config DWAPB_GPIO
  55. bool "DWAPB GPIO driver"
  56. depends on DM && DM_GPIO
  57. default n
  58. help
  59. Support for the Designware APB GPIO driver.
  60. config AT91_GPIO
  61. bool "AT91 PIO GPIO driver"
  62. depends on DM_GPIO
  63. default n
  64. help
  65. Say yes here to select AT91 PIO GPIO driver. AT91 PIO
  66. controller manages up to 32 fully programmable input/output
  67. lines. Each I/O line may be dedicated as a general-purpose
  68. I/O or be assigned to a function of an embedded peripheral.
  69. The assignment to a function of an embedded peripheral is
  70. the responsibility of AT91 Pinctrl driver. This driver is
  71. responsible for the general-purpose I/O.
  72. config ATMEL_PIO4
  73. bool "ATMEL PIO4 driver"
  74. depends on DM_GPIO
  75. default n
  76. help
  77. Say yes here to support the Atmel PIO4 driver.
  78. The PIO4 is new version of Atmel PIO controller, which manages
  79. up to 128 fully programmable input/output lines. Each I/O line
  80. may be dedicated as a general purpose I/O or be assigned to
  81. a function of an embedded peripheral.
  82. config DA8XX_GPIO
  83. bool "DA8xx GPIO Driver"
  84. help
  85. This driver supports the DA8xx GPIO controller
  86. config INTEL_BROADWELL_GPIO
  87. bool "Intel Broadwell GPIO driver"
  88. depends on DM
  89. help
  90. This driver supports Broadwell U devices which have an expanded
  91. GPIO feature set. The difference is large enough to merit a separate
  92. driver from the common Intel ICH6 driver. It supports a total of
  93. 95 GPIOs which can be configured from the device tree.
  94. config INTEL_ICH6_GPIO
  95. bool "Intel ICH6 compatible legacy GPIO driver"
  96. depends on DM_GPIO
  97. help
  98. Say yes here to select Intel ICH6 compatible legacy GPIO driver.
  99. config IMX_RGPIO2P
  100. bool "i.MX7ULP RGPIO2P driver"
  101. depends on DM
  102. default n
  103. help
  104. This driver supports i.MX7ULP Rapid GPIO2P controller.
  105. config HSDK_CREG_GPIO
  106. bool "HSDK CREG GPIO griver"
  107. depends on DM_GPIO
  108. default n
  109. help
  110. This driver supports CREG GPIOs on Synopsys HSDK SOC.
  111. config LPC32XX_GPIO
  112. bool "LPC32XX GPIO driver"
  113. depends on DM
  114. default n
  115. help
  116. Support for the LPC32XX GPIO driver.
  117. config MSCC_SGPIO
  118. bool "Microsemi Serial GPIO driver"
  119. depends on DM_GPIO && SOC_VCOREIII
  120. help
  121. Support for the VCoreIII SoC serial GPIO device. By using a
  122. serial interface, the SIO controller significantly extends
  123. the number of available GPIOs with a minimum number of
  124. additional pins on the device. The primary purpose of the
  125. SIO controller is to connect control signals from SFP
  126. modules and to act as an LED controller.
  127. config MSM_GPIO
  128. bool "Qualcomm GPIO driver"
  129. depends on DM_GPIO
  130. default n
  131. help
  132. Support GPIO controllers on Qualcomm Snapdragon family of SoCs.
  133. This controller have single bank (default name "soc"), every
  134. gpio has it's own set of registers.
  135. Only simple GPIO operations are supported (get/set, change of
  136. direction and checking pin function).
  137. Supported devices:
  138. - APQ8016
  139. - MSM8916
  140. config MXC_GPIO
  141. bool "Freescale/NXP MXC GPIO driver"
  142. help
  143. Support GPIO controllers on various i.MX platforms
  144. config MXS_GPIO
  145. bool "Freescale/NXP MXS GPIO driver"
  146. help
  147. Support GPIO controllers on i.MX23 and i.MX28 platforms
  148. config OMAP_GPIO
  149. bool "TI OMAP GPIO driver"
  150. depends on ARCH_OMAP2PLUS
  151. default y
  152. help
  153. Support GPIO controllers on the TI OMAP3/4/5 and related (such as
  154. AM335x/AM43xx/AM57xx/DRA7xx/etc) families of SoCs.
  155. config CMD_PCA953X
  156. bool "Enable the pca953x command"
  157. help
  158. Deprecated: This should be converted to driver model.
  159. This command provides access to a pca953x GPIO device using the
  160. legacy GPIO interface. Several subcommands are provided which mirror
  161. the standard 'gpio' command. It should use that instead.
  162. config PM8916_GPIO
  163. bool "Qualcomm PM8916 PMIC GPIO/keypad driver"
  164. depends on DM_GPIO && PMIC_PM8916
  165. help
  166. Support for GPIO pins and power/reset buttons found on
  167. Qualcomm PM8916 PMIC.
  168. Default name for GPIO bank is "pm8916".
  169. Power and reset buttons are placed in "pm8916_key" bank and
  170. have gpio numbers 0 and 1 respectively.
  171. config PCF8575_GPIO
  172. bool "PCF8575 I2C GPIO Expander driver"
  173. depends on DM_GPIO && DM_I2C
  174. help
  175. Support for PCF8575 I2C 16-bit GPIO expander. Most of these
  176. chips are from NXP and TI.
  177. config RCAR_GPIO
  178. bool "Renesas RCar GPIO driver"
  179. depends on DM_GPIO && ARCH_RMOBILE
  180. help
  181. This driver supports the GPIO banks on Renesas RCar SoCs.
  182. config RZA1_GPIO
  183. bool "Renesas RZ/A1 GPIO driver"
  184. depends on DM_GPIO && RZA1
  185. help
  186. This driver supports the GPIO banks on Renesas RZ/A1 R7S72100 SoCs.
  187. config ROCKCHIP_GPIO
  188. bool "Rockchip GPIO driver"
  189. depends on DM_GPIO
  190. help
  191. Support GPIO access on Rockchip SoCs. The GPIOs are arranged into
  192. a number of banks (different for each SoC type) each with 32 GPIOs.
  193. The GPIOs for a device are defined in the device tree with one node
  194. for each bank.
  195. config SANDBOX_GPIO
  196. bool "Enable sandbox GPIO driver"
  197. depends on SANDBOX && DM && DM_GPIO
  198. help
  199. This driver supports some simulated GPIOs which can be adjusted
  200. using 'back door' functions like sandbox_gpio_set_value(). Then the
  201. GPIOs can be inspected through the normal get_get_value()
  202. interface. The purpose of this is to allow GPIOs to be used as
  203. normal in sandbox, perhaps with test code actually driving the
  204. behaviour of those GPIOs.
  205. config SANDBOX_GPIO_COUNT
  206. int "Number of sandbox GPIOs"
  207. depends on SANDBOX_GPIO
  208. default 128
  209. help
  210. The sandbox driver can support any number of GPIOs. Generally these
  211. are specified using the device tree. But you can also have a number
  212. of 'anonymous' GPIOs that do not belong to any device or bank.
  213. Select a suitable value depending on your needs.
  214. config SUNXI_GPIO
  215. bool "Allwinner GPIO driver"
  216. depends on ARCH_SUNXI
  217. help
  218. Support the GPIO device in Allwinner SoCs.
  219. config XILINX_GPIO
  220. bool "Xilinx GPIO driver"
  221. depends on DM_GPIO
  222. help
  223. This config enable the Xilinx GPIO driver for Microblaze.
  224. config CMD_TCA642X
  225. bool "tca642x - Command to access tca642x state"
  226. help
  227. DEPRECATED - This needs conversion to driver model
  228. This provides a way to looking at the pin state of this device.
  229. This mirrors the 'gpio' command and that should be used in preference
  230. to custom code.
  231. config TEGRA_GPIO
  232. bool "Tegra20..210 GPIO driver"
  233. depends on DM_GPIO
  234. help
  235. Support for the GPIO controller contained in NVIDIA Tegra20 through
  236. Tegra210.
  237. config TEGRA186_GPIO
  238. bool "Tegra186 GPIO driver"
  239. depends on DM_GPIO
  240. help
  241. Support for the GPIO controller contained in NVIDIA Tegra186. This
  242. covers both the "main" and "AON" controller instances, even though
  243. they have slightly different register layout.
  244. config GPIO_UNIPHIER
  245. bool "UniPhier GPIO"
  246. depends on ARCH_UNIPHIER
  247. help
  248. Say yes here to support UniPhier GPIOs.
  249. config VYBRID_GPIO
  250. bool "Vybrid GPIO driver"
  251. depends on DM
  252. default n
  253. help
  254. Say yes here to support Vybrid vf610 GPIOs.
  255. config PIC32_GPIO
  256. bool "Microchip PIC32 GPIO driver"
  257. depends on DM_GPIO && MACH_PIC32
  258. default y
  259. help
  260. Say yes here to support Microchip PIC32 GPIOs.
  261. config STM32_GPIO
  262. bool "ST STM32 GPIO driver"
  263. depends on DM_GPIO && (STM32 || ARCH_STM32MP)
  264. default y
  265. help
  266. Device model driver support for STM32 GPIO controller. It should be
  267. usable on many stm32 families like stm32f4/f7/h7 and stm32mp1.
  268. Tested on STM32F7.
  269. config SIFIVE_GPIO
  270. bool "SiFive GPIO driver"
  271. depends on DM_GPIO
  272. help
  273. Device model driver for GPIO controller present in SiFive FU540 SoC. This
  274. driver enables GPIO interface on HiFive Unleashed A00 board.
  275. config MVEBU_GPIO
  276. bool "Marvell MVEBU GPIO driver"
  277. depends on DM_GPIO && ARCH_MVEBU
  278. default y
  279. help
  280. Say yes here to support Marvell MVEBU (Armada XP/38x) GPIOs.
  281. config ZYNQ_GPIO
  282. bool "Zynq GPIO driver"
  283. depends on DM_GPIO && (ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL)
  284. default y
  285. help
  286. Supports GPIO access on Zynq SoC.
  287. config DM_74X164
  288. bool "74x164 serial-in/parallel-out 8-bits shift register"
  289. depends on DM_GPIO
  290. help
  291. Driver for 74x164 compatible serial-in/parallel-out 8-outputs
  292. shift registers, such as 74lv165, 74hc595.
  293. This driver can be used to provide access to more gpio outputs.
  294. config DM_PCA953X
  295. bool "PCA95[357]x, PCA9698, TCA64xx, and MAX7310 I/O ports"
  296. depends on DM_GPIO
  297. help
  298. Say yes here to provide access to several register-oriented
  299. SMBus I/O expanders, made mostly by NXP or TI. Compatible
  300. models include:
  301. 4 bits: pca9536, pca9537
  302. 8 bits: max7310, max7315, pca6107, pca9534, pca9538, pca9554,
  303. pca9556, pca9557, pca9574, tca6408, xra1202
  304. 16 bits: max7312, max7313, pca9535, pca9539, pca9555, pca9575,
  305. tca6416
  306. 24 bits: tca6424
  307. 40 bits: pca9505, pca9698
  308. Now, max 24 bits chips and PCA953X compatible chips are
  309. supported
  310. config SPL_DM_PCA953X
  311. bool "PCA95[357]x, PCA9698, TCA64xx, and MAX7310 I/O ports in SPL"
  312. depends on DM_GPIO
  313. help
  314. Say yes here to provide access to several register-oriented
  315. SMBus I/O expanders, made mostly by NXP or TI. Compatible
  316. models include:
  317. 4 bits: pca9536, pca9537
  318. 8 bits: max7310, max7315, pca6107, pca9534, pca9538, pca9554,
  319. pca9556, pca9557, pca9574, tca6408, xra1202
  320. 16 bits: max7312, max7313, pca9535, pca9539, pca9555, pca9575,
  321. tca6416
  322. 24 bits: tca6424
  323. 40 bits: pca9505, pca9698
  324. Now, max 24 bits chips and PCA953X compatible chips are
  325. supported
  326. config MPC8XXX_GPIO
  327. bool "Freescale MPC8XXX GPIO driver"
  328. depends on DM_GPIO
  329. help
  330. This driver supports the built-in GPIO controller of MPC8XXX CPUs.
  331. Each GPIO bank is identified by its own entry in the device tree,
  332. i.e.
  333. gpio-controller@fc00 {
  334. #gpio-cells = <2>;
  335. compatible = "fsl,pq3-gpio";
  336. reg = <0xfc00 0x100>
  337. }
  338. By default, each bank is assumed to have 32 GPIOs, but the ngpios
  339. setting is honored, so the number of GPIOs for each bank is
  340. configurable to match the actual GPIO count of the SoC (e.g. the
  341. 32/32/23 banks of the P1022 SoC).
  342. Aside from the standard functions of input/output mode, and output
  343. value setting, the open-drain feature, which can configure individual
  344. GPIOs to work as open-drain outputs, is supported.
  345. config MT7621_GPIO
  346. bool "MediaTek MT7621 GPIO driver"
  347. depends on DM_GPIO && SOC_MT7628
  348. default y
  349. help
  350. Say yes here to support MediaTek MT7621 compatible GPIOs.
  351. endmenu