blob: 66db4ac5d169aa3a174c2a83a0579e98a232288f [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Sean Wange3fd24a2017-12-12 14:24:19 +08002menu "MediaTek pinctrl drivers"
3 depends on ARCH_MEDIATEK || COMPILE_TEST
Hongzhou Yanga6df4102015-01-21 13:28:15 +08004
Sean Wange46df232018-05-21 01:01:48 +08005config EINT_MTK
Light Hsieh8174a852020-04-08 04:08:16 +08006 tristate "MediaTek External Interrupt Support"
Olof Johansson7c680242018-11-01 19:57:28 -07007 depends on PINCTRL_MTK || PINCTRL_MTK_MOORE || PINCTRL_MTK_PARIS || COMPILE_TEST
Arnd Bergmann71a9d392018-10-08 17:57:43 +02008 select GPIOLIB
Sean Wange46df232018-05-21 01:01:48 +08009 select IRQ_DOMAIN
Light Hsieh8174a852020-04-08 04:08:16 +080010 default y if PINCTRL_MTK || PINCTRL_MTK_MOORE
11 default PINCTRL_MTK_PARIS
Sean Wange46df232018-05-21 01:01:48 +080012
Masahiro Yamada4a9e0062016-02-10 18:54:32 +090013config PINCTRL_MTK
Hongzhou Yanga6df4102015-01-21 13:28:15 +080014 bool
Linus Walleijb99e6fb2015-04-15 10:00:35 +020015 depends on OF
Hongzhou Yanga6df4102015-01-21 13:28:15 +080016 select PINMUX
17 select GENERIC_PINCONF
18 select GPIOLIB
Sean Wange46df232018-05-21 01:01:48 +080019 select EINT_MTK
Hongzhou Yanga6df4102015-01-21 13:28:15 +080020 select OF_GPIO
21
Light Hsieh8174a852020-04-08 04:08:16 +080022config PINCTRL_MTK_V2
23 tristate
24
Sean Wange78d57b2018-09-08 19:07:18 +080025config PINCTRL_MTK_MOORE
Ryder Leeb5af33d2018-12-13 10:27:50 +080026 bool
Sean Wange78d57b2018-09-08 19:07:18 +080027 depends on OF
28 select GENERIC_PINCONF
29 select GENERIC_PINCTRL_GROUPS
30 select GENERIC_PINMUX_FUNCTIONS
31 select GPIOLIB
32 select OF_GPIO
Light Hsieh8174a852020-04-08 04:08:16 +080033 select PINCTRL_MTK_V2
Sean Wange78d57b2018-09-08 19:07:18 +080034
Zhiyong Tao80525092018-09-08 19:07:33 +080035config PINCTRL_MTK_PARIS
Light Hsieh8174a852020-04-08 04:08:16 +080036 tristate
Zhiyong Tao80525092018-09-08 19:07:33 +080037 depends on OF
38 select PINMUX
39 select GENERIC_PINCONF
40 select GPIOLIB
41 select EINT_MTK
42 select OF_GPIO
Light Hsieh8174a852020-04-08 04:08:16 +080043 select PINCTRL_MTK_V2
Zhiyong Tao80525092018-09-08 19:07:33 +080044
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080045# For ARMv7 SoCs
Biao Huang148b95e2016-01-27 09:24:42 +080046config PINCTRL_MT2701
Jean Delvare79d62082017-01-25 10:32:09 +010047 bool "Mediatek MT2701 pin control"
Sean Wangceba4382017-05-01 15:54:34 +080048 depends on MACH_MT7623 || MACH_MT2701 || COMPILE_TEST
Biao Huang148b95e2016-01-27 09:24:42 +080049 depends on OF
50 default MACH_MT2701
Masahiro Yamada4a9e0062016-02-10 18:54:32 +090051 select PINCTRL_MTK
Biao Huang148b95e2016-01-27 09:24:42 +080052
Sean Wange7507f52018-09-08 19:07:28 +080053config PINCTRL_MT7623
54 bool "Mediatek MT7623 pin control with generic binding"
55 depends on MACH_MT7623 || COMPILE_TEST
Ryder Lee2d2d4782019-01-09 10:13:55 +080056 depends on OF
Ryder Leeb5af33d2018-12-13 10:27:50 +080057 default MACH_MT7623
58 select PINCTRL_MTK_MOORE
Sean Wange7507f52018-09-08 19:07:28 +080059
Ryder Leeb4467732018-11-12 09:45:05 +080060config PINCTRL_MT7629
61 bool "Mediatek MT7629 pin control"
62 depends on MACH_MT7629 || COMPILE_TEST
Ryder Lee2d2d4782019-01-09 10:13:55 +080063 depends on OF
Ryder Leeb5af33d2018-12-13 10:27:50 +080064 default MACH_MT7629
65 select PINCTRL_MTK_MOORE
Ryder Leeb4467732018-11-12 09:45:05 +080066
Hongzhou Yanga6df4102015-01-21 13:28:15 +080067config PINCTRL_MT8135
Jean Delvare79d62082017-01-25 10:32:09 +010068 bool "Mediatek MT8135 pin control"
69 depends on MACH_MT8135 || COMPILE_TEST
Linus Walleijb99e6fb2015-04-15 10:00:35 +020070 depends on OF
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080071 default MACH_MT8135
Masahiro Yamada4a9e0062016-02-10 18:54:32 +090072 select PINCTRL_MTK
Hongzhou Yanga6df4102015-01-21 13:28:15 +080073
Yingjoe Chen6acdee82015-05-18 20:01:32 -070074config PINCTRL_MT8127
Jean Delvare79d62082017-01-25 10:32:09 +010075 bool "Mediatek MT8127 pin control"
76 depends on MACH_MT8127 || COMPILE_TEST
Yingjoe Chen6acdee82015-05-18 20:01:32 -070077 depends on OF
78 default MACH_MT8127
Masahiro Yamada4a9e0062016-02-10 18:54:32 +090079 select PINCTRL_MTK
Yingjoe Chen6acdee82015-05-18 20:01:32 -070080
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080081# For ARMv8 SoCs
Zhiyong Tao86707102018-03-22 10:58:41 +080082config PINCTRL_MT2712
83 bool "MediaTek MT2712 pin control"
84 depends on OF
85 depends on ARM64 || COMPILE_TEST
86 default ARM64 && ARCH_MEDIATEK
87 select PINCTRL_MTK
88
ZH Chen477fece2018-09-21 12:07:37 +080089config PINCTRL_MT6765
Light Hsieh9c95f7c2020-04-08 04:08:17 +080090 tristate "Mediatek MT6765 pin control"
ZH Chen477fece2018-09-21 12:07:37 +080091 depends on OF
92 depends on ARM64 || COMPILE_TEST
93 default ARM64 && ARCH_MEDIATEK
94 select PINCTRL_MTK_PARIS
95
Hanks Chen920e4692020-07-23 19:19:54 +080096config PINCTRL_MT6779
97 tristate "Mediatek MT6779 pin control"
98 depends on OF
99 depends on ARM64 || COMPILE_TEST
100 default ARM64 && ARCH_MEDIATEK
101 select PINCTRL_MTK_PARIS
102 help
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.
107
Manivannan Sadhasivamf969b7a2018-11-07 23:18:44 +0530108config PINCTRL_MT6797
109 bool "Mediatek MT6797 pin control"
110 depends on OF
111 depends on ARM64 || COMPILE_TEST
112 default ARM64 && ARCH_MEDIATEK
113 select PINCTRL_MTK_PARIS
114
Sean Wangd6ed9352017-12-12 14:24:20 +0800115config PINCTRL_MT7622
116 bool "MediaTek MT7622 pin control"
Ryder Lee2d2d4782019-01-09 10:13:55 +0800117 depends on OF
Sean Wangd6ed9352017-12-12 14:24:20 +0800118 depends on ARM64 || COMPILE_TEST
Ryder Leeb5af33d2018-12-13 10:27:50 +0800119 default ARM64 && ARCH_MEDIATEK
120 select PINCTRL_MTK_MOORE
Sean Wangd6ed9352017-12-12 14:24:20 +0800121
Sam Shih360de672021-10-22 20:40:34 +0800122config PINCTRL_MT7986
123 bool "Mediatek MT7986 pin control"
124 depends on OF
125 depends on ARM64 || COMPILE_TEST
126 default ARM64 && ARCH_MEDIATEK
127 select PINCTRL_MTK_MOORE
128
Fabien Parent82d70622020-09-07 13:02:21 +0200129config PINCTRL_MT8167
130 bool "Mediatek MT8167 pin control"
131 depends on OF
132 depends on ARM64 || COMPILE_TEST
133 default ARM64 && ARCH_MEDIATEK
134 select PINCTRL_MTK
135
Hongzhou Yang30f010f2015-01-27 15:13:55 +0800136config PINCTRL_MT8173
Yingjoe Chen4a8ade12015-03-13 22:40:52 +0800137 bool "Mediatek MT8173 pin control"
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200138 depends on OF
Yingjoe Chen4a8ade12015-03-13 22:40:52 +0800139 depends on ARM64 || COMPILE_TEST
140 default ARM64 && ARCH_MEDIATEK
Masahiro Yamada4a9e0062016-02-10 18:54:32 +0900141 select PINCTRL_MTK
Hongzhou Yang30f010f2015-01-27 15:13:55 +0800142
Zhiyong Tao750cd152018-09-08 19:07:34 +0800143config PINCTRL_MT8183
144 bool "Mediatek MT8183 pin control"
145 depends on OF
146 depends on ARM64 || COMPILE_TEST
147 default ARM64 && ARCH_MEDIATEK
148 select PINCTRL_MTK_PARIS
149
Zhiyong Taod32f38f2020-08-17 08:17:02 +0800150config PINCTRL_MT8192
151 bool "Mediatek MT8192 pin control"
152 depends on OF
153 depends on ARM64 || COMPILE_TEST
154 default ARM64 && ARCH_MEDIATEK
155 select PINCTRL_MTK_PARIS
156
Zhiyong Tao6cf5e9e2021-04-13 13:57:00 +0800157config PINCTRL_MT8195
158 bool "Mediatek MT8195 pin control"
159 depends on OF
160 depends on ARM64 || COMPILE_TEST
161 select PINCTRL_MTK_PARIS
162
Fabien Parente94d8b62021-05-19 18:24:08 +0200163config PINCTRL_MT8365
164 bool "Mediatek MT8365 pin control"
165 depends on OF
166 depends on ARM64 || COMPILE_TEST
167 default ARM64 && ARCH_MEDIATEK
Linus Walleij375eede2021-06-07 08:56:20 +0200168 select PINCTRL_MTK
Fabien Parente94d8b62021-05-19 18:24:08 +0200169
Fabien Parent26466712019-04-16 10:33:05 +0200170config PINCTRL_MT8516
171 bool "Mediatek MT8516 pin control"
172 depends on OF
173 depends on ARM64 || COMPILE_TEST
174 default ARM64 && ARCH_MEDIATEK
175 select PINCTRL_MTK
176
Hongzhou Yangfc59e662015-05-18 23:11:17 -0700177# For PMIC
178config PINCTRL_MT6397
Jean Delvare79d62082017-01-25 10:32:09 +0100179 bool "Mediatek MT6397 pin control"
180 depends on MFD_MT6397 || COMPILE_TEST
Linus Walleija2202a42015-05-20 09:11:23 +0200181 depends on OF
Hongzhou Yangfc59e662015-05-18 23:11:17 -0700182 default MFD_MT6397
Masahiro Yamada4a9e0062016-02-10 18:54:32 +0900183 select PINCTRL_MTK
Hongzhou Yangfc59e662015-05-18 23:11:17 -0700184
Sean Wange3fd24a2017-12-12 14:24:19 +0800185endmenu