Kconfig 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menu "MediaTek pinctrl drivers"
  3. depends on ARCH_MEDIATEK || ARCH_AIROHA || RALINK || 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. config PINCTRL_MTK_V2
  19. tristate
  20. config PINCTRL_MTK_MTMIPS
  21. bool
  22. depends on RALINK
  23. select PINMUX
  24. select GENERIC_PINCONF
  25. config PINCTRL_MTK_MOORE
  26. bool
  27. depends on OF
  28. select GENERIC_PINCONF
  29. select GENERIC_PINCTRL_GROUPS
  30. select GENERIC_PINMUX_FUNCTIONS
  31. select GPIOLIB
  32. select EINT_MTK
  33. select PINCTRL_MTK_V2
  34. config PINCTRL_MTK_PARIS
  35. tristate
  36. depends on OF
  37. select PINMUX
  38. select GENERIC_PINCONF
  39. select GPIOLIB
  40. select EINT_MTK
  41. select PINCTRL_MTK_V2
  42. # For MIPS SoCs
  43. config PINCTRL_MT7620
  44. bool "MediaTek MT7620 pin control"
  45. depends on SOC_MT7620 || COMPILE_TEST
  46. depends on RALINK
  47. default SOC_MT7620
  48. select PINCTRL_MTK_MTMIPS
  49. config PINCTRL_MT7621
  50. bool "MediaTek MT7621 pin control"
  51. depends on SOC_MT7621 || COMPILE_TEST
  52. depends on RALINK
  53. default SOC_MT7621
  54. select PINCTRL_MTK_MTMIPS
  55. config PINCTRL_MT76X8
  56. bool "MediaTek MT76X8 pin control"
  57. depends on SOC_MT7620 || COMPILE_TEST
  58. depends on RALINK
  59. default SOC_MT7620
  60. select PINCTRL_MTK_MTMIPS
  61. config PINCTRL_RT2880
  62. bool "Ralink RT2880 pin control"
  63. depends on SOC_RT288X || COMPILE_TEST
  64. depends on RALINK
  65. default SOC_RT288X
  66. select PINCTRL_MTK_MTMIPS
  67. config PINCTRL_RT305X
  68. bool "Ralink RT305X pin control"
  69. depends on SOC_RT305X || COMPILE_TEST
  70. depends on RALINK
  71. default SOC_RT305X
  72. select PINCTRL_MTK_MTMIPS
  73. config PINCTRL_RT3883
  74. bool "Ralink RT3883 pin control"
  75. depends on SOC_RT3883 || COMPILE_TEST
  76. depends on RALINK
  77. default SOC_RT3883
  78. select PINCTRL_MTK_MTMIPS
  79. # For ARMv7 SoCs
  80. config PINCTRL_MT2701
  81. bool "MediaTek MT2701 pin control"
  82. depends on MACH_MT7623 || MACH_MT2701 || COMPILE_TEST
  83. depends on OF
  84. default MACH_MT2701
  85. select PINCTRL_MTK
  86. config PINCTRL_MT7623
  87. bool "MediaTek MT7623 pin control with generic binding"
  88. depends on MACH_MT7623 || COMPILE_TEST
  89. depends on OF
  90. default MACH_MT7623
  91. select PINCTRL_MTK_MOORE
  92. config PINCTRL_MT7629
  93. bool "MediaTek MT7629 pin control"
  94. depends on MACH_MT7629 || COMPILE_TEST
  95. depends on OF
  96. default MACH_MT7629
  97. select PINCTRL_MTK_MOORE
  98. config PINCTRL_MT8135
  99. bool "MediaTek MT8135 pin control"
  100. depends on MACH_MT8135 || COMPILE_TEST
  101. depends on OF
  102. default MACH_MT8135
  103. select PINCTRL_MTK
  104. config PINCTRL_MT8127
  105. bool "MediaTek MT8127 pin control"
  106. depends on MACH_MT8127 || COMPILE_TEST
  107. depends on OF
  108. default MACH_MT8127
  109. select PINCTRL_MTK
  110. # For ARMv8 SoCs
  111. config PINCTRL_AIROHA
  112. tristate "Airoha EN7581 pin control"
  113. depends on OF
  114. depends on ARM64 || COMPILE_TEST
  115. select PINMUX
  116. select GENERIC_PINCONF
  117. select GENERIC_PINCTRL_GROUPS
  118. select GENERIC_PINMUX_FUNCTIONS
  119. select GPIOLIB
  120. select GPIOLIB_IRQCHIP
  121. select REGMAP_MMIO
  122. help
  123. Say yes here to support pin controller and gpio driver
  124. on Airoha EN7581 SoC.
  125. config PINCTRL_MT2712
  126. bool "MediaTek MT2712 pin control"
  127. depends on OF
  128. depends on ARM64 || COMPILE_TEST
  129. default ARM64 && ARCH_MEDIATEK
  130. select PINCTRL_MTK
  131. config PINCTRL_MT6765
  132. tristate "MediaTek MT6765 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_MT6779
  138. tristate "MediaTek MT6779 pin control"
  139. depends on OF
  140. depends on ARM64 || COMPILE_TEST
  141. default ARM64 && ARCH_MEDIATEK
  142. select PINCTRL_MTK_PARIS
  143. help
  144. Say yes here to support pin controller and gpio driver
  145. on MediaTek MT6779 SoC.
  146. In MTK platform, we support virtual gpio and use it to
  147. map specific eint which doesn't have real gpio pin.
  148. config PINCTRL_MT6795
  149. bool "MediaTek MT6795 pin control"
  150. depends on OF
  151. depends on ARM64 || COMPILE_TEST
  152. default ARM64 && ARCH_MEDIATEK
  153. select PINCTRL_MTK_PARIS
  154. config PINCTRL_MT6797
  155. bool "MediaTek MT6797 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_MT6878
  161. bool "MediaTek MT6878 pin control"
  162. depends on OF
  163. depends on ARM64 || COMPILE_TEST
  164. default ARM64 && ARCH_MEDIATEK
  165. select PINCTRL_MTK_PARIS
  166. help
  167. Say yes here to support pin controller and gpio driver
  168. on the MediaTek MT6878 SoC.
  169. config PINCTRL_MT6893
  170. bool "MediaTek Dimensity MT6893 pin control"
  171. depends on OF
  172. depends on ARM64 || COMPILE_TEST
  173. default ARM64 && ARCH_MEDIATEK
  174. select PINCTRL_MTK_PARIS
  175. help
  176. Say yes here to support pin controller and gpio driver
  177. on the MediaTek Dimensity 1200 MT6893 Smartphone SoC.
  178. config PINCTRL_MT7622
  179. bool "MediaTek MT7622 pin control"
  180. depends on OF
  181. depends on ARM64 || COMPILE_TEST
  182. default ARM64 && ARCH_MEDIATEK
  183. select PINCTRL_MTK_MOORE
  184. config PINCTRL_MT7981
  185. bool "MediaTek MT7981 pin control"
  186. depends on OF
  187. depends on ARM64 || COMPILE_TEST
  188. default ARM64 && ARCH_MEDIATEK
  189. select PINCTRL_MTK_MOORE
  190. config PINCTRL_MT7986
  191. bool "MediaTek MT7986 pin control"
  192. depends on OF
  193. depends on ARM64 || COMPILE_TEST
  194. default ARM64 && ARCH_MEDIATEK
  195. select PINCTRL_MTK_MOORE
  196. config PINCTRL_MT7988
  197. bool "Mediatek MT7988 pin control"
  198. depends on OF
  199. depends on ARM64 || COMPILE_TEST
  200. default ARM64 && ARCH_MEDIATEK
  201. select PINCTRL_MTK_MOORE
  202. config PINCTRL_MT8167
  203. bool "MediaTek MT8167 pin control"
  204. depends on OF
  205. depends on ARM64 || COMPILE_TEST
  206. default ARM64 && ARCH_MEDIATEK
  207. select PINCTRL_MTK
  208. config PINCTRL_MT8173
  209. bool "MediaTek MT8173 pin control"
  210. depends on OF
  211. depends on ARM64 || COMPILE_TEST
  212. default ARM64 && ARCH_MEDIATEK
  213. select PINCTRL_MTK
  214. config PINCTRL_MT8183
  215. bool "MediaTek MT8183 pin control"
  216. depends on OF
  217. depends on ARM64 || COMPILE_TEST
  218. default ARM64 && ARCH_MEDIATEK
  219. select PINCTRL_MTK_PARIS
  220. config PINCTRL_MT8186
  221. bool "MediaTek MT8186 pin control"
  222. depends on OF
  223. depends on ARM64 || COMPILE_TEST
  224. default ARM64 && ARCH_MEDIATEK
  225. select PINCTRL_MTK_PARIS
  226. config PINCTRL_MT8188
  227. bool "MediaTek MT8188 pin control"
  228. depends on OF
  229. depends on ARM64 || COMPILE_TEST
  230. default ARM64 && ARCH_MEDIATEK
  231. select PINCTRL_MTK_PARIS
  232. help
  233. Say yes here to support pin controller and gpio driver
  234. on MediaTek MT8188 SoC.
  235. In MTK platform, we support virtual gpio and use it to
  236. map specific eint which doesn't have real gpio pin.
  237. config PINCTRL_MT8189
  238. bool "MediaTek MT8189 pin control"
  239. depends on OF
  240. depends on ARM64 || COMPILE_TEST
  241. default ARM64 && ARCH_MEDIATEK
  242. select PINCTRL_MTK_PARIS
  243. help
  244. Say yes here to support pin controller and gpio driver
  245. on MediaTek MT8189 SoC.
  246. In MTK platform, we support virtual gpio and use it to
  247. map specific eint which doesn't have real gpio pin.
  248. config PINCTRL_MT8192
  249. bool "MediaTek MT8192 pin control"
  250. depends on OF
  251. depends on ARM64 || COMPILE_TEST
  252. default ARM64 && ARCH_MEDIATEK
  253. select PINCTRL_MTK_PARIS
  254. config PINCTRL_MT8195
  255. bool "MediaTek MT8195 pin control"
  256. depends on OF
  257. depends on ARM64 || COMPILE_TEST
  258. default ARM64 && ARCH_MEDIATEK
  259. select PINCTRL_MTK_PARIS
  260. config PINCTRL_MT8196
  261. bool "MediaTek MT8196 pin control"
  262. depends on OF
  263. depends on ARM64 || COMPILE_TEST
  264. default ARM64 && ARCH_MEDIATEK
  265. select PINCTRL_MTK_PARIS
  266. help
  267. Say yes here to support pin controller and gpio driver
  268. on MediaTek MT8196 SoC.
  269. In MTK platform, we support virtual gpio and use it to
  270. map specific eint which doesn't have real gpio pin.
  271. config PINCTRL_MT8365
  272. bool "MediaTek MT8365 pin control"
  273. depends on OF
  274. depends on ARM64 || COMPILE_TEST
  275. default ARM64 && ARCH_MEDIATEK
  276. select PINCTRL_MTK
  277. config PINCTRL_MT8516
  278. bool "MediaTek MT8516 pin control"
  279. depends on OF
  280. depends on ARM64 || COMPILE_TEST
  281. default ARM64 && ARCH_MEDIATEK
  282. select PINCTRL_MTK
  283. # For PMIC
  284. config PINCTRL_MT6397
  285. bool "MediaTek MT6397 pin control"
  286. depends on MFD_MT6397 || COMPILE_TEST
  287. depends on OF
  288. default MFD_MT6397
  289. select PINCTRL_MTK
  290. endmenu