blob: 551ac716b10c20d34145ce9f04745a613f86959e [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
90 bool "Mediatek MT6765 pin control"
91 depends on OF
92 depends on ARM64 || COMPILE_TEST
93 default ARM64 && ARCH_MEDIATEK
94 select PINCTRL_MTK_PARIS
95
Manivannan Sadhasivamf969b7a2018-11-07 23:18:44 +053096config PINCTRL_MT6797
97 bool "Mediatek MT6797 pin control"
98 depends on OF
99 depends on ARM64 || COMPILE_TEST
100 default ARM64 && ARCH_MEDIATEK
101 select PINCTRL_MTK_PARIS
102
Sean Wangd6ed9352017-12-12 14:24:20 +0800103config PINCTRL_MT7622
104 bool "MediaTek MT7622 pin control"
Ryder Lee2d2d4782019-01-09 10:13:55 +0800105 depends on OF
Sean Wangd6ed9352017-12-12 14:24:20 +0800106 depends on ARM64 || COMPILE_TEST
Ryder Leeb5af33d2018-12-13 10:27:50 +0800107 default ARM64 && ARCH_MEDIATEK
108 select PINCTRL_MTK_MOORE
Sean Wangd6ed9352017-12-12 14:24:20 +0800109
Hongzhou Yang30f010f2015-01-27 15:13:55 +0800110config PINCTRL_MT8173
Yingjoe Chen4a8ade12015-03-13 22:40:52 +0800111 bool "Mediatek MT8173 pin control"
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200112 depends on OF
Yingjoe Chen4a8ade12015-03-13 22:40:52 +0800113 depends on ARM64 || COMPILE_TEST
114 default ARM64 && ARCH_MEDIATEK
Masahiro Yamada4a9e0062016-02-10 18:54:32 +0900115 select PINCTRL_MTK
Hongzhou Yang30f010f2015-01-27 15:13:55 +0800116
Zhiyong Tao750cd152018-09-08 19:07:34 +0800117config PINCTRL_MT8183
118 bool "Mediatek MT8183 pin control"
119 depends on OF
120 depends on ARM64 || COMPILE_TEST
121 default ARM64 && ARCH_MEDIATEK
122 select PINCTRL_MTK_PARIS
123
Fabien Parent26466712019-04-16 10:33:05 +0200124config PINCTRL_MT8516
125 bool "Mediatek MT8516 pin control"
126 depends on OF
127 depends on ARM64 || COMPILE_TEST
128 default ARM64 && ARCH_MEDIATEK
129 select PINCTRL_MTK
130
Hongzhou Yangfc59e662015-05-18 23:11:17 -0700131# For PMIC
132config PINCTRL_MT6397
Jean Delvare79d62082017-01-25 10:32:09 +0100133 bool "Mediatek MT6397 pin control"
134 depends on MFD_MT6397 || COMPILE_TEST
Linus Walleija2202a42015-05-20 09:11:23 +0200135 depends on OF
Hongzhou Yangfc59e662015-05-18 23:11:17 -0700136 default MFD_MT6397
Masahiro Yamada4a9e0062016-02-10 18:54:32 +0900137 select PINCTRL_MTK
Hongzhou Yangfc59e662015-05-18 23:11:17 -0700138
Sean Wange3fd24a2017-12-12 14:24:19 +0800139endmenu