Kconfig 7.6 KB

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