xref: /openbmc/linux/drivers/pinctrl/mediatek/Kconfig (revision a2818ee4)
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 || PINCTRL_MTK_PARIS || 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
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
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	default MACH_MT7623
49	select PINCTRL_MTK_MOORE
50
51config PINCTRL_MT7629
52	bool "Mediatek MT7629 pin control"
53	depends on MACH_MT7629 || COMPILE_TEST
54	default MACH_MT7629
55	select PINCTRL_MTK_MOORE
56
57config PINCTRL_MT8135
58	bool "Mediatek MT8135 pin control"
59	depends on MACH_MT8135 || COMPILE_TEST
60	depends on OF
61	default MACH_MT8135
62	select PINCTRL_MTK
63
64config PINCTRL_MT8127
65	bool "Mediatek MT8127 pin control"
66	depends on MACH_MT8127 || COMPILE_TEST
67	depends on OF
68	default MACH_MT8127
69	select PINCTRL_MTK
70
71# For ARMv8 SoCs
72config PINCTRL_MT2712
73	bool "MediaTek MT2712 pin control"
74	depends on OF
75	depends on ARM64 || COMPILE_TEST
76	default ARM64 && ARCH_MEDIATEK
77	select PINCTRL_MTK
78
79config PINCTRL_MT6765
80	bool "Mediatek MT6765 pin control"
81	depends on OF
82	depends on ARM64 || COMPILE_TEST
83	default ARM64 && ARCH_MEDIATEK
84	select PINCTRL_MTK_PARIS
85
86config PINCTRL_MT6797
87	bool "Mediatek MT6797 pin control"
88	depends on OF
89	depends on ARM64 || COMPILE_TEST
90	default ARM64 && ARCH_MEDIATEK
91	select PINCTRL_MTK_PARIS
92
93config PINCTRL_MT7622
94	bool "MediaTek MT7622 pin control"
95	depends on ARM64 || COMPILE_TEST
96	default ARM64 && ARCH_MEDIATEK
97	select PINCTRL_MTK_MOORE
98
99config PINCTRL_MT8173
100	bool "Mediatek MT8173 pin control"
101	depends on OF
102	depends on ARM64 || COMPILE_TEST
103	default ARM64 && ARCH_MEDIATEK
104	select PINCTRL_MTK
105
106config PINCTRL_MT8183
107	bool "Mediatek MT8183 pin control"
108	depends on OF
109	depends on ARM64 || COMPILE_TEST
110	default ARM64 && ARCH_MEDIATEK
111	select PINCTRL_MTK_PARIS
112
113# For PMIC
114config PINCTRL_MT6397
115	bool "Mediatek MT6397 pin control"
116	depends on MFD_MT6397 || COMPILE_TEST
117	depends on OF
118	default MFD_MT6397
119	select PINCTRL_MTK
120
121endmenu
122