blob: 9d142e1da56721933ea143549514b64fa2c36837 [file] [log] [blame]
Sean Wange3fd24a2017-12-12 14:24:19 +08001menu "MediaTek pinctrl drivers"
2 depends on ARCH_MEDIATEK || COMPILE_TEST
Hongzhou Yanga6df4102015-01-21 13:28:15 +08003
Sean Wange46df232018-05-21 01:01:48 +08004config EINT_MTK
5 bool "MediaTek External Interrupt Support"
Sean Wange78d57b2018-09-08 19:07:18 +08006 depends on PINCTRL_MTK || PINCTRL_MTK_MOORE || COMPILE_TEST
Arnd Bergmann71a9d392018-10-08 17:57:43 +02007 select GPIOLIB
Sean Wange46df232018-05-21 01:01:48 +08008 select IRQ_DOMAIN
9
Masahiro Yamada4a9e0062016-02-10 18:54:32 +090010config PINCTRL_MTK
Hongzhou Yanga6df4102015-01-21 13:28:15 +080011 bool
Linus Walleijb99e6fb2015-04-15 10:00:35 +020012 depends on OF
Hongzhou Yanga6df4102015-01-21 13:28:15 +080013 select PINMUX
14 select GENERIC_PINCONF
15 select GPIOLIB
Sean Wange46df232018-05-21 01:01:48 +080016 select EINT_MTK
Hongzhou Yanga6df4102015-01-21 13:28:15 +080017 select OF_GPIO
18
Sean Wange78d57b2018-09-08 19:07:18 +080019config PINCTRL_MTK_MOORE
20 bool "MediaTek Moore Core that implements generic binding"
21 depends on OF
22 select GENERIC_PINCONF
23 select GENERIC_PINCTRL_GROUPS
24 select GENERIC_PINMUX_FUNCTIONS
25 select GPIOLIB
26 select OF_GPIO
27
Zhiyong Tao80525092018-09-08 19:07:33 +080028config PINCTRL_MTK_PARIS
29 bool "MediaTek Paris Core that implements vendor binding"
30 depends on OF
31 select PINMUX
32 select GENERIC_PINCONF
33 select GPIOLIB
34 select EINT_MTK
35 select OF_GPIO
36
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080037# For ARMv7 SoCs
Biao Huang148b95e2016-01-27 09:24:42 +080038config PINCTRL_MT2701
Jean Delvare79d62082017-01-25 10:32:09 +010039 bool "Mediatek MT2701 pin control"
Sean Wangceba4382017-05-01 15:54:34 +080040 depends on MACH_MT7623 || MACH_MT2701 || COMPILE_TEST
Biao Huang148b95e2016-01-27 09:24:42 +080041 depends on OF
42 default MACH_MT2701
Masahiro Yamada4a9e0062016-02-10 18:54:32 +090043 select PINCTRL_MTK
Biao Huang148b95e2016-01-27 09:24:42 +080044
Sean Wange7507f52018-09-08 19:07:28 +080045config PINCTRL_MT7623
46 bool "Mediatek MT7623 pin control with generic binding"
47 depends on MACH_MT7623 || COMPILE_TEST
48 depends on PINCTRL_MTK_MOORE
49 default y
50
Hongzhou Yanga6df4102015-01-21 13:28:15 +080051config PINCTRL_MT8135
Jean Delvare79d62082017-01-25 10:32:09 +010052 bool "Mediatek MT8135 pin control"
53 depends on MACH_MT8135 || COMPILE_TEST
Linus Walleijb99e6fb2015-04-15 10:00:35 +020054 depends on OF
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080055 default MACH_MT8135
Masahiro Yamada4a9e0062016-02-10 18:54:32 +090056 select PINCTRL_MTK
Hongzhou Yanga6df4102015-01-21 13:28:15 +080057
Yingjoe Chen6acdee82015-05-18 20:01:32 -070058config PINCTRL_MT8127
Jean Delvare79d62082017-01-25 10:32:09 +010059 bool "Mediatek MT8127 pin control"
60 depends on MACH_MT8127 || COMPILE_TEST
Yingjoe Chen6acdee82015-05-18 20:01:32 -070061 depends on OF
62 default MACH_MT8127
Masahiro Yamada4a9e0062016-02-10 18:54:32 +090063 select PINCTRL_MTK
Yingjoe Chen6acdee82015-05-18 20:01:32 -070064
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080065# For ARMv8 SoCs
Zhiyong Tao86707102018-03-22 10:58:41 +080066config PINCTRL_MT2712
67 bool "MediaTek MT2712 pin control"
68 depends on OF
69 depends on ARM64 || COMPILE_TEST
70 default ARM64 && ARCH_MEDIATEK
71 select PINCTRL_MTK
72
ZH Chen477fece2018-09-21 12:07:37 +080073config PINCTRL_MT6765
74 bool "Mediatek MT6765 pin control"
75 depends on OF
76 depends on ARM64 || COMPILE_TEST
77 default ARM64 && ARCH_MEDIATEK
78 select PINCTRL_MTK_PARIS
79
Sean Wangd6ed9352017-12-12 14:24:20 +080080config PINCTRL_MT7622
81 bool "MediaTek MT7622 pin control"
Sean Wangd6ed9352017-12-12 14:24:20 +080082 depends on ARM64 || COMPILE_TEST
Sean Wange78d57b2018-09-08 19:07:18 +080083 depends on PINCTRL_MTK_MOORE
84 default y
Sean Wangd6ed9352017-12-12 14:24:20 +080085
Hongzhou Yang30f010f2015-01-27 15:13:55 +080086config PINCTRL_MT8173
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080087 bool "Mediatek MT8173 pin control"
Linus Walleijb99e6fb2015-04-15 10:00:35 +020088 depends on OF
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080089 depends on ARM64 || COMPILE_TEST
90 default ARM64 && ARCH_MEDIATEK
Masahiro Yamada4a9e0062016-02-10 18:54:32 +090091 select PINCTRL_MTK
Hongzhou Yang30f010f2015-01-27 15:13:55 +080092
Zhiyong Tao750cd152018-09-08 19:07:34 +080093config PINCTRL_MT8183
94 bool "Mediatek MT8183 pin control"
95 depends on OF
96 depends on ARM64 || COMPILE_TEST
97 default ARM64 && ARCH_MEDIATEK
98 select PINCTRL_MTK_PARIS
99
Hongzhou Yangfc59e662015-05-18 23:11:17 -0700100# For PMIC
101config PINCTRL_MT6397
Jean Delvare79d62082017-01-25 10:32:09 +0100102 bool "Mediatek MT6397 pin control"
103 depends on MFD_MT6397 || COMPILE_TEST
Linus Walleija2202a42015-05-20 09:11:23 +0200104 depends on OF
Hongzhou Yangfc59e662015-05-18 23:11:17 -0700105 default MFD_MT6397
Masahiro Yamada4a9e0062016-02-10 18:54:32 +0900106 select PINCTRL_MTK
Hongzhou Yangfc59e662015-05-18 23:11:17 -0700107
Sean Wange3fd24a2017-12-12 14:24:19 +0800108endmenu