Kconfig 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menu "MediaTek pinctrl drivers"
  3. depends on ARCH_MEDIATEK || COMPILE_TEST
  4. config EINT_MTK
  5. tristate "MediaTek External Interrupt Support"
  6. depends on PINCTRL_MTK || PINCTRL_MTK_MOORE || PINCTRL_MTK_PARIS || COMPILE_TEST
  7. select GPIOLIB
  8. select IRQ_DOMAIN
  9. default y if PINCTRL_MTK || PINCTRL_MTK_MOORE
  10. default PINCTRL_MTK_PARIS
  11. config PINCTRL_MTK
  12. bool
  13. depends on OF
  14. select PINMUX
  15. select GENERIC_PINCONF
  16. select GPIOLIB
  17. select EINT_MTK
  18. select OF_GPIO
  19. config PINCTRL_MTK_V2
  20. tristate
  21. config PINCTRL_MTK_MOORE
  22. bool
  23. depends on OF
  24. select GENERIC_PINCONF
  25. select GENERIC_PINCTRL_GROUPS
  26. select GENERIC_PINMUX_FUNCTIONS
  27. select GPIOLIB
  28. select OF_GPIO
  29. select EINT_MTK
  30. select PINCTRL_MTK_V2
  31. config PINCTRL_MTK_PARIS
  32. tristate
  33. depends on OF
  34. select PINMUX
  35. select GENERIC_PINCONF
  36. select GPIOLIB
  37. select EINT_MTK
  38. select OF_GPIO
  39. select PINCTRL_MTK_V2
  40. # For ARMv7 SoCs
  41. config PINCTRL_MT2701
  42. bool "Mediatek MT2701 pin control"
  43. depends on MACH_MT7623 || MACH_MT2701 || COMPILE_TEST
  44. depends on OF
  45. default MACH_MT2701
  46. select PINCTRL_MTK
  47. config PINCTRL_MT7623
  48. bool "Mediatek MT7623 pin control with generic binding"
  49. depends on MACH_MT7623 || COMPILE_TEST
  50. depends on OF
  51. default MACH_MT7623
  52. select PINCTRL_MTK_MOORE
  53. config PINCTRL_MT7629
  54. bool "Mediatek MT7629 pin control"
  55. depends on MACH_MT7629 || COMPILE_TEST
  56. depends on OF
  57. default MACH_MT7629
  58. select PINCTRL_MTK_MOORE
  59. config PINCTRL_MT8135
  60. bool "Mediatek MT8135 pin control"
  61. depends on MACH_MT8135 || COMPILE_TEST
  62. depends on OF
  63. default MACH_MT8135
  64. select PINCTRL_MTK
  65. config PINCTRL_MT8127
  66. bool "Mediatek MT8127 pin control"
  67. depends on MACH_MT8127 || COMPILE_TEST
  68. depends on OF
  69. default MACH_MT8127
  70. select PINCTRL_MTK
  71. # For ARMv8 SoCs
  72. config PINCTRL_MT2712
  73. bool "MediaTek MT2712 pin control"
  74. depends on OF
  75. depends on ARM64 || COMPILE_TEST
  76. default ARM64 && ARCH_MEDIATEK
  77. select PINCTRL_MTK
  78. config PINCTRL_MT6765
  79. tristate "Mediatek MT6765 pin control"
  80. depends on OF
  81. depends on ARM64 || COMPILE_TEST
  82. default ARM64 && ARCH_MEDIATEK
  83. select PINCTRL_MTK_PARIS
  84. config PINCTRL_MT6779
  85. tristate "Mediatek MT6779 pin control"
  86. depends on OF
  87. depends on ARM64 || COMPILE_TEST
  88. default ARM64 && ARCH_MEDIATEK
  89. select PINCTRL_MTK_PARIS
  90. help
  91. Say yes here to support pin controller and gpio driver
  92. on Mediatek MT6779 SoC.
  93. In MTK platform, we support virtual gpio and use it to
  94. map specific eint which doesn't have real gpio pin.
  95. config PINCTRL_MT6795
  96. bool "Mediatek MT6795 pin control"
  97. depends on OF
  98. depends on ARM64 || COMPILE_TEST
  99. default ARM64 && ARCH_MEDIATEK
  100. select PINCTRL_MTK_PARIS
  101. config PINCTRL_MT6797
  102. bool "Mediatek MT6797 pin control"
  103. depends on OF
  104. depends on ARM64 || COMPILE_TEST
  105. default ARM64 && ARCH_MEDIATEK
  106. select PINCTRL_MTK_PARIS
  107. config PINCTRL_MT7622
  108. bool "MediaTek MT7622 pin control"
  109. depends on OF
  110. depends on ARM64 || COMPILE_TEST
  111. default ARM64 && ARCH_MEDIATEK
  112. select PINCTRL_MTK_MOORE
  113. config PINCTRL_MT7986
  114. bool "Mediatek MT7986 pin control"
  115. depends on OF
  116. depends on ARM64 || COMPILE_TEST
  117. default ARM64 && ARCH_MEDIATEK
  118. select PINCTRL_MTK_MOORE
  119. config PINCTRL_MT8167
  120. bool "Mediatek MT8167 pin control"
  121. depends on OF
  122. depends on ARM64 || COMPILE_TEST
  123. default ARM64 && ARCH_MEDIATEK
  124. select PINCTRL_MTK
  125. config PINCTRL_MT8173
  126. bool "Mediatek MT8173 pin control"
  127. depends on OF
  128. depends on ARM64 || COMPILE_TEST
  129. default ARM64 && ARCH_MEDIATEK
  130. select PINCTRL_MTK
  131. config PINCTRL_MT8183
  132. bool "Mediatek MT8183 pin control"
  133. depends on OF
  134. depends on ARM64 || COMPILE_TEST
  135. default ARM64 && ARCH_MEDIATEK
  136. select PINCTRL_MTK_PARIS
  137. config PINCTRL_MT8186
  138. bool "Mediatek MT8186 pin control"
  139. depends on OF
  140. depends on ARM64 || COMPILE_TEST
  141. default ARM64 && ARCH_MEDIATEK
  142. select PINCTRL_MTK_PARIS
  143. config PINCTRL_MT8188
  144. bool "MediaTek MT8188 pin control"
  145. depends on OF
  146. depends on ARM64 || COMPILE_TEST
  147. default ARM64 && ARCH_MEDIATEK
  148. select PINCTRL_MTK_PARIS
  149. help
  150. Say yes here to support pin controller and gpio driver
  151. on MediaTek MT8188 SoC.
  152. In MTK platform, we support virtual gpio and use it to
  153. map specific eint which doesn't have real gpio pin.
  154. config PINCTRL_MT8192
  155. bool "Mediatek MT8192 pin control"
  156. depends on OF
  157. depends on ARM64 || COMPILE_TEST
  158. default ARM64 && ARCH_MEDIATEK
  159. select PINCTRL_MTK_PARIS
  160. config PINCTRL_MT8195
  161. bool "Mediatek MT8195 pin control"
  162. depends on OF
  163. depends on ARM64 || COMPILE_TEST
  164. default ARM64 && ARCH_MEDIATEK
  165. select PINCTRL_MTK_PARIS
  166. config PINCTRL_MT8365
  167. bool "Mediatek MT8365 pin control"
  168. depends on OF
  169. depends on ARM64 || COMPILE_TEST
  170. default ARM64 && ARCH_MEDIATEK
  171. select PINCTRL_MTK
  172. config PINCTRL_MT8516
  173. bool "Mediatek MT8516 pin control"
  174. depends on OF
  175. depends on ARM64 || COMPILE_TEST
  176. default ARM64 && ARCH_MEDIATEK
  177. select PINCTRL_MTK
  178. # For PMIC
  179. config PINCTRL_MT6397
  180. bool "Mediatek MT6397 pin control"
  181. depends on MFD_MT6397 || COMPILE_TEST
  182. depends on OF
  183. default MFD_MT6397
  184. select PINCTRL_MTK
  185. endmenu