2019-05-19 20:07:45 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2017-12-12 14:24:19 +08:00
|
|
|
menu "MediaTek pinctrl drivers"
|
|
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
2015-01-21 13:28:15 +08:00
|
|
|
|
2018-05-21 01:01:48 +08:00
|
|
|
config EINT_MTK
|
2020-04-08 04:08:16 +08:00
|
|
|
tristate "MediaTek External Interrupt Support"
|
2018-11-02 10:57:28 +08:00
|
|
|
depends on PINCTRL_MTK || PINCTRL_MTK_MOORE || PINCTRL_MTK_PARIS || COMPILE_TEST
|
2018-10-08 23:57:43 +08:00
|
|
|
select GPIOLIB
|
2018-05-21 01:01:48 +08:00
|
|
|
select IRQ_DOMAIN
|
2020-04-08 04:08:16 +08:00
|
|
|
default y if PINCTRL_MTK || PINCTRL_MTK_MOORE
|
|
|
|
default PINCTRL_MTK_PARIS
|
2018-05-21 01:01:48 +08:00
|
|
|
|
2016-02-10 17:54:32 +08:00
|
|
|
config PINCTRL_MTK
|
2015-01-21 13:28:15 +08:00
|
|
|
bool
|
2015-04-15 16:00:35 +08:00
|
|
|
depends on OF
|
2015-01-21 13:28:15 +08:00
|
|
|
select PINMUX
|
|
|
|
select GENERIC_PINCONF
|
|
|
|
select GPIOLIB
|
2018-05-21 01:01:48 +08:00
|
|
|
select EINT_MTK
|
2015-01-21 13:28:15 +08:00
|
|
|
select OF_GPIO
|
|
|
|
|
2020-04-08 04:08:16 +08:00
|
|
|
config PINCTRL_MTK_V2
|
|
|
|
tristate
|
|
|
|
|
2018-09-08 19:07:18 +08:00
|
|
|
config PINCTRL_MTK_MOORE
|
2018-12-13 10:27:50 +08:00
|
|
|
bool
|
2018-09-08 19:07:18 +08:00
|
|
|
depends on OF
|
|
|
|
select GENERIC_PINCONF
|
|
|
|
select GENERIC_PINCTRL_GROUPS
|
|
|
|
select GENERIC_PINMUX_FUNCTIONS
|
|
|
|
select GPIOLIB
|
|
|
|
select OF_GPIO
|
2020-04-08 04:08:16 +08:00
|
|
|
select PINCTRL_MTK_V2
|
2018-09-08 19:07:18 +08:00
|
|
|
|
2018-09-08 19:07:33 +08:00
|
|
|
config PINCTRL_MTK_PARIS
|
2020-04-08 04:08:16 +08:00
|
|
|
tristate
|
2018-09-08 19:07:33 +08:00
|
|
|
depends on OF
|
|
|
|
select PINMUX
|
|
|
|
select GENERIC_PINCONF
|
|
|
|
select GPIOLIB
|
|
|
|
select EINT_MTK
|
|
|
|
select OF_GPIO
|
2020-04-08 04:08:16 +08:00
|
|
|
select PINCTRL_MTK_V2
|
2018-09-08 19:07:33 +08:00
|
|
|
|
2015-03-13 22:40:52 +08:00
|
|
|
# For ARMv7 SoCs
|
2016-01-27 09:24:42 +08:00
|
|
|
config PINCTRL_MT2701
|
2017-01-25 17:32:09 +08:00
|
|
|
bool "Mediatek MT2701 pin control"
|
2017-05-01 15:54:34 +08:00
|
|
|
depends on MACH_MT7623 || MACH_MT2701 || COMPILE_TEST
|
2016-01-27 09:24:42 +08:00
|
|
|
depends on OF
|
|
|
|
default MACH_MT2701
|
2016-02-10 17:54:32 +08:00
|
|
|
select PINCTRL_MTK
|
2016-01-27 09:24:42 +08:00
|
|
|
|
2018-09-08 19:07:28 +08:00
|
|
|
config PINCTRL_MT7623
|
|
|
|
bool "Mediatek MT7623 pin control with generic binding"
|
|
|
|
depends on MACH_MT7623 || COMPILE_TEST
|
2019-01-09 10:13:55 +08:00
|
|
|
depends on OF
|
2018-12-13 10:27:50 +08:00
|
|
|
default MACH_MT7623
|
|
|
|
select PINCTRL_MTK_MOORE
|
2018-09-08 19:07:28 +08:00
|
|
|
|
2018-11-12 09:45:05 +08:00
|
|
|
config PINCTRL_MT7629
|
|
|
|
bool "Mediatek MT7629 pin control"
|
|
|
|
depends on MACH_MT7629 || COMPILE_TEST
|
2019-01-09 10:13:55 +08:00
|
|
|
depends on OF
|
2018-12-13 10:27:50 +08:00
|
|
|
default MACH_MT7629
|
|
|
|
select PINCTRL_MTK_MOORE
|
2018-11-12 09:45:05 +08:00
|
|
|
|
2015-01-21 13:28:15 +08:00
|
|
|
config PINCTRL_MT8135
|
2017-01-25 17:32:09 +08:00
|
|
|
bool "Mediatek MT8135 pin control"
|
|
|
|
depends on MACH_MT8135 || COMPILE_TEST
|
2015-04-15 16:00:35 +08:00
|
|
|
depends on OF
|
2015-03-13 22:40:52 +08:00
|
|
|
default MACH_MT8135
|
2016-02-10 17:54:32 +08:00
|
|
|
select PINCTRL_MTK
|
2015-01-21 13:28:15 +08:00
|
|
|
|
2015-05-19 11:01:32 +08:00
|
|
|
config PINCTRL_MT8127
|
2017-01-25 17:32:09 +08:00
|
|
|
bool "Mediatek MT8127 pin control"
|
|
|
|
depends on MACH_MT8127 || COMPILE_TEST
|
2015-05-19 11:01:32 +08:00
|
|
|
depends on OF
|
|
|
|
default MACH_MT8127
|
2016-02-10 17:54:32 +08:00
|
|
|
select PINCTRL_MTK
|
2015-05-19 11:01:32 +08:00
|
|
|
|
2015-03-13 22:40:52 +08:00
|
|
|
# For ARMv8 SoCs
|
2018-03-22 10:58:41 +08: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 12:07:37 +08:00
|
|
|
config PINCTRL_MT6765
|
2020-04-08 04:08:17 +08:00
|
|
|
tristate "Mediatek MT6765 pin control"
|
2018-09-21 12:07:37 +08:00
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_PARIS
|
|
|
|
|
2020-07-23 19:19:54 +08:00
|
|
|
config PINCTRL_MT6779
|
|
|
|
tristate "Mediatek MT6779 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 MT6779 SoC.
|
|
|
|
In MTK platform, we support virtual gpio and use it to
|
|
|
|
map specific eint which doesn't have real gpio pin.
|
|
|
|
|
2018-11-08 01:48:44 +08:00
|
|
|
config PINCTRL_MT6797
|
|
|
|
bool "Mediatek MT6797 pin control"
|
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_PARIS
|
|
|
|
|
2017-12-12 14:24:20 +08:00
|
|
|
config PINCTRL_MT7622
|
|
|
|
bool "MediaTek MT7622 pin control"
|
2019-01-09 10:13:55 +08:00
|
|
|
depends on OF
|
2017-12-12 14:24:20 +08:00
|
|
|
depends on ARM64 || COMPILE_TEST
|
2018-12-13 10:27:50 +08:00
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_MOORE
|
2017-12-12 14:24:20 +08:00
|
|
|
|
2021-10-22 20:40:34 +08:00
|
|
|
config PINCTRL_MT7986
|
|
|
|
bool "Mediatek MT7986 pin control"
|
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_MOORE
|
|
|
|
|
2020-09-07 19:02:21 +08:00
|
|
|
config PINCTRL_MT8167
|
|
|
|
bool "Mediatek MT8167 pin control"
|
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK
|
|
|
|
|
2015-01-27 15:13:55 +08:00
|
|
|
config PINCTRL_MT8173
|
2015-03-13 22:40:52 +08:00
|
|
|
bool "Mediatek MT8173 pin control"
|
2015-04-15 16:00:35 +08:00
|
|
|
depends on OF
|
2015-03-13 22:40:52 +08:00
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
2016-02-10 17:54:32 +08:00
|
|
|
select PINCTRL_MTK
|
2015-01-27 15:13:55 +08:00
|
|
|
|
2018-09-08 19:07:34 +08:00
|
|
|
config PINCTRL_MT8183
|
|
|
|
bool "Mediatek MT8183 pin control"
|
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_PARIS
|
|
|
|
|
2020-08-17 08:17:02 +08:00
|
|
|
config PINCTRL_MT8192
|
|
|
|
bool "Mediatek MT8192 pin control"
|
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK_PARIS
|
|
|
|
|
2021-04-13 13:57:00 +08:00
|
|
|
config PINCTRL_MT8195
|
|
|
|
bool "Mediatek MT8195 pin control"
|
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
select PINCTRL_MTK_PARIS
|
|
|
|
|
2021-05-20 00:24:08 +08:00
|
|
|
config PINCTRL_MT8365
|
|
|
|
bool "Mediatek MT8365 pin control"
|
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
2021-06-07 14:56:20 +08:00
|
|
|
select PINCTRL_MTK
|
2021-05-20 00:24:08 +08:00
|
|
|
|
2019-04-16 16:33:05 +08:00
|
|
|
config PINCTRL_MT8516
|
|
|
|
bool "Mediatek MT8516 pin control"
|
|
|
|
depends on OF
|
|
|
|
depends on ARM64 || COMPILE_TEST
|
|
|
|
default ARM64 && ARCH_MEDIATEK
|
|
|
|
select PINCTRL_MTK
|
|
|
|
|
2015-05-19 14:11:17 +08:00
|
|
|
# For PMIC
|
|
|
|
config PINCTRL_MT6397
|
2017-01-25 17:32:09 +08:00
|
|
|
bool "Mediatek MT6397 pin control"
|
|
|
|
depends on MFD_MT6397 || COMPILE_TEST
|
2015-05-20 15:11:23 +08:00
|
|
|
depends on OF
|
2015-05-19 14:11:17 +08:00
|
|
|
default MFD_MT6397
|
2016-02-10 17:54:32 +08:00
|
|
|
select PINCTRL_MTK
|
2015-05-19 14:11:17 +08:00
|
|
|
|
2017-12-12 14:24:19 +08:00
|
|
|
endmenu
|