Kconfig 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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 DWAPB_GPIO
  21. bool "DWAPB GPIO driver"
  22. depends on DM && DM_GPIO
  23. default n
  24. help
  25. Support for the Designware APB GPIO driver.
  26. config ATMEL_PIO4
  27. bool "ATMEL PIO4 driver"
  28. depends on DM
  29. default n
  30. help
  31. Say yes here to support the Atmel PIO4 driver.
  32. The PIO4 is new version of Atmel PIO controller, which manages
  33. up to 128 fully programmable input/output lines. Each I/O line
  34. may be dedicated as a general purpose I/O or be assigned to
  35. a function of an embedded peripheral.
  36. config INTEL_BROADWELL_GPIO
  37. bool "Intel Broadwell GPIO driver"
  38. depends on DM
  39. help
  40. This driver supports Broadwell U devices which have an expanded
  41. GPIO feature set. The difference is large enough to merit a separate
  42. driver from the common Intel ICH6 driver. It supports a total of
  43. 95 GPIOs which can be configured from the device tree.
  44. config LPC32XX_GPIO
  45. bool "LPC32XX GPIO driver"
  46. depends on DM
  47. default n
  48. help
  49. Support for the LPC32XX GPIO driver.
  50. config MSM_GPIO
  51. bool "Qualcomm GPIO driver"
  52. depends on DM_GPIO
  53. default n
  54. help
  55. Support GPIO controllers on Qualcomm Snapdragon family of SoCs.
  56. This controller have single bank (default name "soc"), every
  57. gpio has it's own set of registers.
  58. Only simple GPIO operations are supported (get/set, change of
  59. direction and checking pin function).
  60. Supported devices:
  61. - APQ8016
  62. - MSM8916
  63. config PM8916_GPIO
  64. bool "Qualcomm PM8916 PMIC GPIO/keypad driver"
  65. depends on DM_GPIO && PMIC_PM8916
  66. help
  67. Support for GPIO pins and power/reset buttons found on
  68. Qualcomm PM8916 PMIC.
  69. Default name for GPIO bank is "pm8916".
  70. Power and reset buttons are placed in "pm8916_key" bank and
  71. have gpio numbers 0 and 1 respectively.
  72. config ROCKCHIP_GPIO
  73. bool "Rockchip GPIO driver"
  74. depends on DM_GPIO
  75. help
  76. Support GPIO access on Rockchip SoCs. The GPIOs are arranged into
  77. a number of banks (different for each SoC type) each with 32 GPIOs.
  78. The GPIOs for a device are defined in the device tree with one node
  79. for each bank.
  80. config SANDBOX_GPIO
  81. bool "Enable sandbox GPIO driver"
  82. depends on SANDBOX && DM && DM_GPIO
  83. help
  84. This driver supports some simulated GPIOs which can be adjusted
  85. using 'back door' functions like sandbox_gpio_set_value(). Then the
  86. GPIOs can be inspected through the normal get_get_value()
  87. interface. The purpose of this is to allow GPIOs to be used as
  88. normal in sandbox, perhaps with test code actually driving the
  89. behaviour of those GPIOs.
  90. config SANDBOX_GPIO_COUNT
  91. int "Number of sandbox GPIOs"
  92. depends on SANDBOX_GPIO
  93. default 128
  94. help
  95. The sandbox driver can support any number of GPIOs. Generally these
  96. are specified using the device tree. But you can also have a number
  97. of 'anonymous' GPIOs that do not belong to any device or bank.
  98. Select a suitable value depending on your needs.
  99. config GPIO_UNIPHIER
  100. bool "UniPhier GPIO"
  101. depends on ARCH_UNIPHIER
  102. help
  103. Say yes here to support UniPhier GPIOs.
  104. config VYBRID_GPIO
  105. bool "Vybrid GPIO driver"
  106. depends on DM
  107. default n
  108. help
  109. Say yes here to support Vybrid vf610 GPIOs.
  110. config PIC32_GPIO
  111. bool "Microchip PIC32 GPIO driver"
  112. depends on DM_GPIO && MACH_PIC32
  113. default y
  114. help
  115. Say yes here to support Microchip PIC32 GPIOs.
  116. config MVEBU_GPIO
  117. bool "Marvell MVEBU GPIO driver"
  118. depends on DM_GPIO && ARCH_MVEBU
  119. default y
  120. help
  121. Say yes here to support Marvell MVEBU (Armada XP/38x) GPIOs.
  122. config ZYNQ_GPIO
  123. bool "Zynq GPIO driver"
  124. depends on DM_GPIO && (ARCH_ZYNQ || ARCH_ZYNQMP)
  125. default y
  126. help
  127. Supports GPIO access on Zynq SoC.
  128. config DM_74X164
  129. bool "74x164 serial-in/parallel-out 8-bits shift register"
  130. depends on DM_GPIO
  131. help
  132. Driver for 74x164 compatible serial-in/parallel-out 8-outputs
  133. shift registers, such as 74lv165, 74hc595.
  134. This driver can be used to provide access to more gpio outputs.
  135. config DM_PCA953X
  136. bool "PCA95[357]x, PCA9698, TCA64xx, and MAX7310 I/O ports"
  137. depends on DM_GPIO
  138. help
  139. Say yes here to provide access to several register-oriented
  140. SMBus I/O expanders, made mostly by NXP or TI. Compatible
  141. models include:
  142. 4 bits: pca9536, pca9537
  143. 8 bits: max7310, max7315, pca6107, pca9534, pca9538, pca9554,
  144. pca9556, pca9557, pca9574, tca6408, xra1202
  145. 16 bits: max7312, max7313, pca9535, pca9539, pca9555, pca9575,
  146. tca6416
  147. 24 bits: tca6424
  148. 40 bits: pca9505, pca9698
  149. Now, max 24 bits chips and PCA953X compatible chips are
  150. supported
  151. endmenu