Kconfig 8.8 KB

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