1 # SPDX-License-Identifier: GPL-2.0-only
2 menu "MediaTek pinctrl drivers"
3 depends on ARCH_MEDIATEK || COMPILE_TEST
6 tristate "MediaTek External Interrupt Support"
7 depends on PINCTRL_MTK || PINCTRL_MTK_MOORE || PINCTRL_MTK_PARIS || COMPILE_TEST
10 default y if PINCTRL_MTK || PINCTRL_MTK_MOORE
11 default PINCTRL_MTK_PARIS
17 select GENERIC_PINCONF
25 config PINCTRL_MTK_MOORE
28 select GENERIC_PINCONF
29 select GENERIC_PINCTRL_GROUPS
30 select GENERIC_PINMUX_FUNCTIONS
35 config PINCTRL_MTK_PARIS
39 select GENERIC_PINCONF
47 bool "Mediatek MT2701 pin control"
48 depends on MACH_MT7623 || MACH_MT2701 || COMPILE_TEST
54 bool "Mediatek MT7623 pin control with generic binding"
55 depends on MACH_MT7623 || COMPILE_TEST
58 select PINCTRL_MTK_MOORE
61 bool "Mediatek MT7629 pin control"
62 depends on MACH_MT7629 || COMPILE_TEST
65 select PINCTRL_MTK_MOORE
68 bool "Mediatek MT8135 pin control"
69 depends on MACH_MT8135 || COMPILE_TEST
75 bool "Mediatek MT8127 pin control"
76 depends on MACH_MT8127 || COMPILE_TEST
83 bool "MediaTek MT2712 pin control"
85 depends on ARM64 || COMPILE_TEST
86 default ARM64 && ARCH_MEDIATEK
90 tristate "Mediatek MT6765 pin control"
92 depends on ARM64 || COMPILE_TEST
93 default ARM64 && ARCH_MEDIATEK
94 select PINCTRL_MTK_PARIS
97 tristate "Mediatek MT6779 pin control"
99 depends on ARM64 || COMPILE_TEST
100 default ARM64 && ARCH_MEDIATEK
101 select PINCTRL_MTK_PARIS
103 Say yes here to support pin controller and gpio driver
104 on Mediatek MT6779 SoC.
105 In MTK platform, we support virtual gpio and use it to
106 map specific eint which doesn't have real gpio pin.
108 config PINCTRL_MT6797
109 bool "Mediatek MT6797 pin control"
111 depends on ARM64 || COMPILE_TEST
112 default ARM64 && ARCH_MEDIATEK
113 select PINCTRL_MTK_PARIS
115 config PINCTRL_MT7622
116 bool "MediaTek MT7622 pin control"
118 depends on ARM64 || COMPILE_TEST
119 default ARM64 && ARCH_MEDIATEK
120 select PINCTRL_MTK_MOORE
122 config PINCTRL_MT8173
123 bool "Mediatek MT8173 pin control"
125 depends on ARM64 || COMPILE_TEST
126 default ARM64 && ARCH_MEDIATEK
129 config PINCTRL_MT8183
130 bool "Mediatek MT8183 pin control"
132 depends on ARM64 || COMPILE_TEST
133 default ARM64 && ARCH_MEDIATEK
134 select PINCTRL_MTK_PARIS
136 config PINCTRL_MT8516
137 bool "Mediatek MT8516 pin control"
139 depends on ARM64 || COMPILE_TEST
140 default ARM64 && ARCH_MEDIATEK
144 config PINCTRL_MT6397
145 bool "Mediatek MT6397 pin control"
146 depends on MFD_MT6397 || COMPILE_TEST