2019-05-19 12:07:45 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2017-12-12 06:24:19 +00:00
|
|
|
menu "MediaTek pinctrl drivers"
|
2023-03-17 21:29:54 +00:00
|
|
|
depends on ARCH_MEDIATEK || RALINK || COMPILE_TEST
|
2015-01-21 05:28:15 +00:00
|
|
|
|
2018-05-20 17:01:48 +00:00
|
|
|
config EINT_MTK
|
2020-04-07 20:08:16 +00:00
|
|
|
tristate "MediaTek External Interrupt Support"
|
2018-11-02 02:57:28 +00:00
|
|
|
depends on PINCTRL_MTK || PINCTRL_MTK_MOORE || PINCTRL_MTK_PARIS || COMPILE_TEST
|
2018-10-08 15:57:43 +00:00
|
|
|
select GPIOLIB
|
2018-05-20 17:01:48 +00:00
|
|
|
select IRQ_DOMAIN
|
2020-04-07 20:08:16 +00:00
|
|
|
default y if PINCTRL_MTK || PINCTRL_MTK_MOORE
|
|
|
|
default PINCTRL_MTK_PARIS
|
2018-05-20 17:01:48 +00:00
|
|
|
|
2016-02-10 09:54:32 +00:00
|
|
|
config PINCTRL_MTK
|
2015-01-21 05:28:15 +00:00
|
|
|
bool
|
2015-04-15 08:00:35 +00:00
|
|
|
depends on OF
|
2015-01-21 05:28:15 +00:00
|
|
|
select PINMUX
|
|
|
|
select GENERIC_PINCONF
|
|
|
|
select GPIOLIB
|
2018-05-20 17:01:48 +00:00
|
|
|
select EINT_MTK
|
2015-01-21 05:28:15 +00:00
|
|
|
|
2020-04-07 20:08:16 +00:00
|
|
|
config PINCTRL_MTK_V2
|
|
|
|
tristate
|
|
|
|
|
2023-03-17 21:29:54 +00:00
|
|
|
config PINCTRL_MTK_MTMIPS
|
|
|
|
bool
|
|
|
|
depends on RALINK
|
|
|
|
select PINMUX
|
|
|
|
select GENERIC_PINCONF
|
|
|
|
|
2018-09-08 11:07:18 +00:00
|
|
|
config PINCTRL_MTK_MOORE
|
2018-12-13 02:27:50 +00:00
|
|
|
bool
|
2018-09-08 11:07:18 +00:00
|
|
|
depends on OF
|
|
|
|
select GENERIC_PINCONF
|
|
|
|
select GENERIC_PINCTRL_GROUPS
|
|
|
|
select GENERIC_PINMUX_FUNCTIONS
|
|
|
|
select GPIOLIB
|
2022-04-09 10:59:58 +00:00
|
|
|
select EINT_MTK
|
2020-04-07 20:08:16 +00:00
|
|
|
select PINCTRL_MTK_V2
|
2018-09-08 11:07:18 +00:00
|
|
|
|
2018-09-08 11:07:33 +00:00
|
|
|
config PINCTRL_MTK_PARIS
|
2020-04-07 20:08:16 +00:00
|
|
|
tristate
|
2018-09-08 11:07:33 +00:00
|
|
|
depends on OF
|
|
|
|
select PINMUX
|
|
|
|
select GENERIC_PINCONF
|
|
|
|
select GPIOLIB
|
|
|
|
select EINT_MTK
|
2020-04-07 20:08:16 +00:00
|
|
|
select PINCTRL_MTK_V2
|
2018-09-08 11:07:33 +00:00
|
|
|
|
2023-03-17 21:29:54 +00:00
|
|
|
# For MIPS SoCs
|
|
|
|
config PINCTRL_MT7620
|
|
|
|
bool "MediaTek MT7620 pin control"
|
|
|
|
depends on SOC_MT7620 || COMPILE_TEST
|
|
|
|
depends on RALINK
|
|
|
|
default SOC_MT7620
|
|
|
|
select PINCTRL_MTK_MTMIPS
|
|
|
|
|
|
|
|
config PINCTRL_MT7621
|
|
|
|
bool "MediaTek MT7621 pin control"
|
|
|
|
depends on SOC_MT7621 || COMPILE_TEST
|
|
|
|
depends on RALINK
|
|
|
|
default SOC_MT7621
|
|
|
|
select PINCTRL_MTK_MTMIPS
|
|
|
|
|
|
|
|
config PINCTRL_MT76X8
|
|
|
|
bool "MediaTek MT76X8 pin control"
|
|
|
|
depends on SOC_MT7620 || COMPILE_TEST
|
|
|
|
depends on RALINK
|
|
|
|
default SOC_MT7620
|
|
|
|
select PINCTRL_MTK_MTMIPS
|
|
|
|
|
|
|
|
config PINCTRL_RT2880
|
|
|
|
bool "Ralink RT2880 pin control"
|
|
|
|
depends on SOC_RT288X || COMPILE_TEST
|
|
|
|
depends on RALINK
|
|
|
|
default SOC_RT288X
|
|
|
|
select PINCTRL_MTK_MTMIPS
|
|
|
|
|
|
|
|
config PINCTRL_RT305X
|
|
|
|
bool "Ralink RT305X pin control"
|
|
|
|
depends on SOC_RT305X || COMPILE_TEST
|
|
|
|
depends on RALINK
|
|
|
|
default SOC_RT305X
|
|
|
|
select PINCTRL_MTK_MTMIPS
|
|
|
|
|
|
|
|
config PINCTRL_RT3883
|
|
|
|
bool "Ralink RT3883 pin control"
|
|
|
|
depends on SOC_RT3883 || COMPILE_TEST
|
|
|
|
depends on RALINK
|
|
|
|
default SOC_RT3883
|
|
|
|
select PINCTRL_MTK_MTMIPS
|
|
|
|
|
2015-03-13 14:40:52 +00:00
|
|
|
# For ARMv7 SoCs
|
2016-01-27 01:24:42 +00:00
|
|
|
config PINCTRL_MT2701
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT2701 pin control"
|
2017-05-01 07:54:34 +00:00
|
|
|
depends on MACH_MT7623 || MACH_MT2701 || COMPILE_TEST
|
2016-01-27 01:24:42 +00:00
|
|
|
depends on OF
|
|
|
|
default MACH_MT2701
|
2016-02-10 09:54:32 +00:00
|
|
|
select PINCTRL_MTK
|
2016-01-27 01:24:42 +00:00
|
|
|
|
2018-09-08 11:07:28 +00:00
|
|
|
config PINCTRL_MT7623
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT7623 pin control with generic binding"
|
2018-09-08 11:07:28 +00:00
|
|
|
depends on MACH_MT7623 || COMPILE_TEST
|
2019-01-09 02:13:55 +00:00
|
|
|
depends on OF
|
2018-12-13 02:27:50 +00:00
|
|
|
default MACH_MT7623
|
|
|
|
select PINCTRL_MTK_MOORE
|
2018-09-08 11:07:28 +00:00
|
|
|
|
2018-11-12 01:45:05 +00:00
|
|
|
config PINCTRL_MT7629
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT7629 pin control"
|
2018-11-12 01:45:05 +00:00
|
|
|
depends on MACH_MT7629 || COMPILE_TEST
|
2019-01-09 02:13:55 +00:00
|
|
|
depends on OF
|
2018-12-13 02:27:50 +00:00
|
|
|
default MACH_MT7629
|
|
|
|
select PINCTRL_MTK_MOORE
|
2018-11-12 01:45:05 +00:00
|
|
|
|
2015-01-21 05:28:15 +00:00
|
|
|
config PINCTRL_MT8135
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT8135 pin control"
|
2017-01-25 09:32:09 +00:00
|
|
|
depends on MACH_MT8135 || COMPILE_TEST
|
2015-04-15 08:00:35 +00:00
|
|
|
depends on OF
|
2015-03-13 14:40:52 +00:00
|
|
|
default MACH_MT8135
|
2016-02-10 09:54:32 +00:00
|
|
|
select PINCTRL_MTK
|
2015-01-21 05:28:15 +00:00
|
|
|
|
2015-05-19 03:01:32 +00:00
|
|
|
config PINCTRL_MT8127
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT8127 pin control"
|
2017-01-25 09:32:09 +00:00
|
|
|
depends on MACH_MT8127 || COMPILE_TEST
|
2015-05-19 03:01:32 +00:00
|
|
|
depends on OF
|
|
|
|
default MACH_MT8127
|
2016-02-10 09:54:32 +00:00
|
|
|
select PINCTRL_MTK
|
2015-05-19 03:01:32 +00:00
|
|
|
|
2015-03-13 14:40:52 +00:00
|
|
|
# For ARMv8 SoCs
|
2018-03-22 02:58:41 +00:00
|
|
|
config PINCTRL_MT2712
|
|
|
|
bool "MediaTek MT2712 pin control"
|
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK
|
|
|
|
|
2018-09-21 04:07:37 +00:00
|
|
|
config PINCTRL_MT6765
|
2023-02-18 06:51:07 +00:00
|
|
|
tristate "MediaTek MT6765 pin control"
|
2018-09-21 04:07:37 +00:00
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_PARIS
|
|
|
|
|
2020-07-23 11:19:54 +00:00
|
|
|
config PINCTRL_MT6779
|
2023-02-18 06:51:07 +00:00
|
|
|
tristate "MediaTek MT6779 pin control"
|
2020-07-23 11:19:54 +00:00
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_PARIS
|
|
|
|
help
|
|
|
|
Say yes here to support pin controller and gpio driver
|
2023-02-18 06:51:07 +00:00
|
|
|
on MediaTek MT6779 SoC.
|
2020-07-23 11:19:54 +00:00
|
|
|
In MTK platform, we support virtual gpio and use it to
|
|
|
|
map specific eint which doesn't have real gpio pin.
|
|
|
|
|
2022-05-17 08:39:57 +00:00
|
|
|
config PINCTRL_MT6795
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT6795 pin control"
|
2022-05-17 08:39:57 +00:00
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_PARIS
|
|
|
|
|
2018-11-07 17:48:44 +00:00
|
|
|
config PINCTRL_MT6797
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT6797 pin control"
|
2018-11-07 17:48:44 +00:00
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_PARIS
|
|
|
|
|
2017-12-12 06:24:20 +00:00
|
|
|
config PINCTRL_MT7622
|
|
|
|
bool "MediaTek MT7622 pin control"
|
2019-01-09 02:13:55 +00:00
|
|
|
depends on OF
|
2017-12-12 06:24:20 +00:00
|
|
|
depends on ARM64 || COMPILE_TEST
|
2018-12-13 02:27:50 +00:00
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_MOORE
|
2017-12-12 06:24:20 +00:00
|
|
|
|
2023-01-26 00:34:56 +00:00
|
|
|
config PINCTRL_MT7981
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT7981 pin control"
|
2023-01-26 00:34:56 +00:00
|
|
|
depends on OF
|
2023-02-18 06:51:06 +00:00
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
2023-01-26 00:34:56 +00:00
|
|
|
select PINCTRL_MTK_MOORE
|
|
|
|
|
2021-10-22 12:40:34 +00:00
|
|
|
config PINCTRL_MT7986
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT7986 pin control"
|
2021-10-22 12:40:34 +00:00
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_MOORE
|
|
|
|
|
2020-09-07 11:02:21 +00:00
|
|
|
config PINCTRL_MT8167
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT8167 pin control"
|
2020-09-07 11:02:21 +00:00
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK
|
|
|
|
|
2015-01-27 07:13:55 +00:00
|
|
|
config PINCTRL_MT8173
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT8173 pin control"
|
2015-04-15 08:00:35 +00:00
|
|
|
depends on OF
|
2015-03-13 14:40:52 +00:00
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
2016-02-10 09:54:32 +00:00
|
|
|
select PINCTRL_MTK
|
2015-01-27 07:13:55 +00:00
|
|
|
|
2018-09-08 11:07:34 +00:00
|
|
|
config PINCTRL_MT8183
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT8183 pin control"
|
2018-09-08 11:07:34 +00:00
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_PARIS
|
|
|
|
|
2022-02-16 03:21:23 +00:00
|
|
|
config PINCTRL_MT8186
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT8186 pin control"
|
2022-02-16 03:21:23 +00:00
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_PARIS
|
|
|
|
|
2022-08-18 07:50:12 +00:00
|
|
|
config PINCTRL_MT8188
|
|
|
|
bool "MediaTek MT8188 pin control"
|
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_PARIS
|
|
|
|
help
|
|
|
|
Say yes here to support pin controller and gpio driver
|
|
|
|
on MediaTek MT8188 SoC.
|
|
|
|
In MTK platform, we support virtual gpio and use it to
|
|
|
|
map specific eint which doesn't have real gpio pin.
|
|
|
|
|
2020-08-17 00:17:02 +00:00
|
|
|
config PINCTRL_MT8192
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT8192 pin control"
|
2020-08-17 00:17:02 +00:00
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_PARIS
|
|
|
|
|
2021-04-13 05:57:00 +00:00
|
|
|
config PINCTRL_MT8195
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT8195 pin control"
|
2021-04-13 05:57:00 +00:00
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
2022-03-27 16:08:13 +00:00
|
|
|
default ARM64 && ARCH_MEDIATEK
|
2021-04-13 05:57:00 +00:00
|
|
|
select PINCTRL_MTK_PARIS
|
|
|
|
|
2021-05-19 16:24:08 +00:00
|
|
|
config PINCTRL_MT8365
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT8365 pin control"
|
2021-05-19 16:24:08 +00:00
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
2021-06-07 06:56:20 +00:00
|
|
|
select PINCTRL_MTK
|
2021-05-19 16:24:08 +00:00
|
|
|
|
2019-04-16 08:33:05 +00:00
|
|
|
config PINCTRL_MT8516
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT8516 pin control"
|
2019-04-16 08:33:05 +00:00
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK
|
|
|
|
|
2015-05-19 06:11:17 +00:00
|
|
|
# For PMIC
|
|
|
|
config PINCTRL_MT6397
|
2023-02-18 06:51:07 +00:00
|
|
|
bool "MediaTek MT6397 pin control"
|
2017-01-25 09:32:09 +00:00
|
|
|
depends on MFD_MT6397 || COMPILE_TEST
|
2015-05-20 07:11:23 +00:00
|
|
|
depends on OF
|
2015-05-19 06:11:17 +00:00
|
|
|
default MFD_MT6397
|
2016-02-10 09:54:32 +00:00
|
|
|
select PINCTRL_MTK
|
2015-05-19 06:11:17 +00:00
|
|
|
|
2017-12-12 06:24:19 +00:00
|
|
|
endmenu
|