xref: /openbmc/linux/drivers/pinctrl/mediatek/Kconfig (revision e3d786a3)
1menu "MediaTek pinctrl drivers"
2	depends on ARCH_MEDIATEK || COMPILE_TEST
3
4config EINT_MTK
5	bool "MediaTek External Interrupt Support"
6	depends on PINCTRL_MTK || PINCTRL_MTK_MOORE || COMPILE_TEST
7	select GPIOLIB
8	select IRQ_DOMAIN
9
10config PINCTRL_MTK
11	bool
12	depends on OF
13	select PINMUX
14	select GENERIC_PINCONF
15	select GPIOLIB
16	select EINT_MTK
17	select OF_GPIO
18
19config 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
28config 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
37# For ARMv7 SoCs
38config PINCTRL_MT2701
39	bool "Mediatek MT2701 pin control"
40	depends on MACH_MT7623 || MACH_MT2701 || COMPILE_TEST
41	depends on OF
42	default MACH_MT2701
43	select PINCTRL_MTK
44
45config 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
51config PINCTRL_MT8135
52	bool "Mediatek MT8135 pin control"
53	depends on MACH_MT8135 || COMPILE_TEST
54	depends on OF
55	default MACH_MT8135
56	select PINCTRL_MTK
57
58config PINCTRL_MT8127
59	bool "Mediatek MT8127 pin control"
60	depends on MACH_MT8127 || COMPILE_TEST
61	depends on OF
62	default MACH_MT8127
63	select PINCTRL_MTK
64
65# For ARMv8 SoCs
66config 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
73config 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
80config PINCTRL_MT7622
81	bool "MediaTek MT7622 pin control"
82	depends on ARM64 || COMPILE_TEST
83	depends on PINCTRL_MTK_MOORE
84	default y
85
86config PINCTRL_MT8173
87	bool "Mediatek MT8173 pin control"
88	depends on OF
89	depends on ARM64 || COMPILE_TEST
90	default ARM64 && ARCH_MEDIATEK
91	select PINCTRL_MTK
92
93config 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
100# For PMIC
101config PINCTRL_MT6397
102	bool "Mediatek MT6397 pin control"
103	depends on MFD_MT6397 || COMPILE_TEST
104	depends on OF
105	default MFD_MT6397
106	select PINCTRL_MTK
107
108endmenu
109