Kconfig 9.1 KB

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