diff options
author | ZH Chen <zh.chen@mediatek.com> | 2018-09-21 00:07:37 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-09-21 12:12:55 -0400 |
commit | 477fecee7ca9c633a4a2e8ddf4c1ae1d30fc6b26 (patch) | |
tree | 3a3c4b0bfea3e70c671bd61308e3c6c4fd873001 /drivers/pinctrl/mediatek | |
parent | ecfcfb49886069013c0a0ebd11954bc7e5eadd64 (diff) |
pinctrl: mediatek: add MT6765 pinctrl driver
Add MT6765 pinctrl driver based on MediaTek pinctrl-paris core.
Signed-off-by: Mars Cheng <mars.cheng@mediatek.com>
Signed-off-by: ZH Chen <zh.chen@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/mediatek')
-rw-r--r-- | drivers/pinctrl/mediatek/Kconfig | 7 | ||||
-rw-r--r-- | drivers/pinctrl/mediatek/Makefile | 1 | ||||
-rw-r--r-- | drivers/pinctrl/mediatek/pinctrl-mt6765.c | 1100 | ||||
-rw-r--r-- | drivers/pinctrl/mediatek/pinctrl-mtk-mt6765.h | 1754 |
4 files changed, 2862 insertions, 0 deletions
diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig index 1cd55022ab4f..05be5ddafec4 100644 --- a/drivers/pinctrl/mediatek/Kconfig +++ b/drivers/pinctrl/mediatek/Kconfig | |||
@@ -69,6 +69,13 @@ config PINCTRL_MT2712 | |||
69 | default ARM64 && ARCH_MEDIATEK | 69 | default ARM64 && ARCH_MEDIATEK |
70 | select PINCTRL_MTK | 70 | select PINCTRL_MTK |
71 | 71 | ||
72 | config PINCTRL_MT6765 | ||
73 | bool "Mediatek MT6765 pin control" | ||
74 | depends on OF | ||
75 | depends on ARM64 || COMPILE_TEST | ||
76 | default ARM64 && ARCH_MEDIATEK | ||
77 | select PINCTRL_MTK_PARIS | ||
78 | |||
72 | config PINCTRL_MT7622 | 79 | config PINCTRL_MT7622 |
73 | bool "MediaTek MT7622 pin control" | 80 | bool "MediaTek MT7622 pin control" |
74 | depends on ARM64 || COMPILE_TEST | 81 | depends on ARM64 || COMPILE_TEST |
diff --git a/drivers/pinctrl/mediatek/Makefile b/drivers/pinctrl/mediatek/Makefile index 871e0e2f04ed..70d800054f69 100644 --- a/drivers/pinctrl/mediatek/Makefile +++ b/drivers/pinctrl/mediatek/Makefile | |||
@@ -10,6 +10,7 @@ obj-$(CONFIG_PINCTRL_MT2701) += pinctrl-mt2701.o | |||
10 | obj-$(CONFIG_PINCTRL_MT2712) += pinctrl-mt2712.o | 10 | obj-$(CONFIG_PINCTRL_MT2712) += pinctrl-mt2712.o |
11 | obj-$(CONFIG_PINCTRL_MT8135) += pinctrl-mt8135.o | 11 | obj-$(CONFIG_PINCTRL_MT8135) += pinctrl-mt8135.o |
12 | obj-$(CONFIG_PINCTRL_MT8127) += pinctrl-mt8127.o | 12 | obj-$(CONFIG_PINCTRL_MT8127) += pinctrl-mt8127.o |
13 | obj-$(CONFIG_PINCTRL_MT6765) += pinctrl-mt6765.o | ||
13 | obj-$(CONFIG_PINCTRL_MT7622) += pinctrl-mt7622.o | 14 | obj-$(CONFIG_PINCTRL_MT7622) += pinctrl-mt7622.o |
14 | obj-$(CONFIG_PINCTRL_MT7623) += pinctrl-mt7623.o | 15 | obj-$(CONFIG_PINCTRL_MT7623) += pinctrl-mt7623.o |
15 | obj-$(CONFIG_PINCTRL_MT8173) += pinctrl-mt8173.o | 16 | obj-$(CONFIG_PINCTRL_MT8173) += pinctrl-mt8173.o |
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6765.c b/drivers/pinctrl/mediatek/pinctrl-mt6765.c new file mode 100644 index 000000000000..1cae634c35b0 --- /dev/null +++ b/drivers/pinctrl/mediatek/pinctrl-mt6765.c | |||
@@ -0,0 +1,1100 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
2 | /* | ||
3 | * Copyright (C) 2018 MediaTek Inc. | ||
4 | * | ||
5 | * Author: ZH Chen <zh.chen@mediatek.com> | ||
6 | * | ||
7 | */ | ||
8 | |||
9 | #include "pinctrl-mtk-mt6765.h" | ||
10 | #include "pinctrl-paris.h" | ||
11 | |||
12 | /* MT6765 have multiple bases to program pin configuration listed as the below: | ||
13 | * iocfg[0]:0x10005000, iocfg[1]:0x10002C00, iocfg[2]:0x10002800, | ||
14 | * iocfg[3]:0x10002A00, iocfg[4]:0x10002000, iocfg[5]:0x10002200, | ||
15 | * iocfg[6]:0x10002500, iocfg[7]:0x10002600. | ||
16 | * _i_base could be used to indicate what base the pin should be mapped into. | ||
17 | */ | ||
18 | |||
19 | #define PIN_FIELD_BASE(_s_pin, _e_pin, _i_base, _s_addr, _x_addrs, _s_bit, _x_bits) \ | ||
20 | PIN_FIELD_CALC(_s_pin, _e_pin, _i_base, _s_addr, _x_addrs, _s_bit, \ | ||
21 | _x_bits, 32, 0) | ||
22 | |||
23 | #define PINS_FIELD_BASE(_s_pin, _e_pin, _i_base, _s_addr, _x_addrs, _s_bit, _x_bits) \ | ||
24 | PIN_FIELD_CALC(_s_pin, _e_pin, _i_base, _s_addr, _x_addrs, _s_bit, \ | ||
25 | _x_bits, 32, 1) | ||
26 | |||
27 | static const struct mtk_pin_field_calc mt6765_pin_mode_range[] = { | ||
28 | PIN_FIELD(0, 202, 0x300, 0x10, 0, 4), | ||
29 | }; | ||
30 | |||
31 | static const struct mtk_pin_field_calc mt6765_pin_dir_range[] = { | ||
32 | PIN_FIELD(0, 202, 0x0, 0x10, 0, 1), | ||
33 | }; | ||
34 | |||
35 | static const struct mtk_pin_field_calc mt6765_pin_di_range[] = { | ||
36 | PIN_FIELD(0, 202, 0x200, 0x10, 0, 1), | ||
37 | }; | ||
38 | |||
39 | static const struct mtk_pin_field_calc mt6765_pin_do_range[] = { | ||
40 | PIN_FIELD(0, 202, 0x100, 0x10, 0, 1), | ||
41 | }; | ||
42 | |||
43 | static const struct mtk_pin_field_calc mt6765_pin_smt_range[] = { | ||
44 | PINS_FIELD_BASE(0, 3, 2, 0x00b0, 0x10, 4, 1), | ||
45 | PINS_FIELD_BASE(4, 7, 2, 0x00b0, 0x10, 5, 1), | ||
46 | PIN_FIELD_BASE(8, 8, 3, 0x0080, 0x10, 3, 1), | ||
47 | PINS_FIELD_BASE(9, 11, 2, 0x00b0, 0x10, 6, 1), | ||
48 | PIN_FIELD_BASE(12, 12, 5, 0x0060, 0x10, 9, 1), | ||
49 | PINS_FIELD_BASE(13, 16, 6, 0x00b0, 0x10, 10, 1), | ||
50 | PINS_FIELD_BASE(17, 20, 6, 0x00b0, 0x10, 8, 1), | ||
51 | PINS_FIELD_BASE(21, 24, 6, 0x00b0, 0x10, 9, 1), | ||
52 | PINS_FIELD_BASE(25, 28, 6, 0x00b0, 0x10, 7, 1), | ||
53 | PIN_FIELD_BASE(29, 29, 6, 0x00b0, 0x10, 0, 1), | ||
54 | PIN_FIELD_BASE(30, 30, 6, 0x00b0, 0x10, 1, 1), | ||
55 | PINS_FIELD_BASE(31, 34, 6, 0x00b0, 0x10, 2, 1), | ||
56 | PINS_FIELD_BASE(35, 36, 6, 0x00b0, 0x10, 5, 1), | ||
57 | PIN_FIELD_BASE(37, 37, 6, 0x00b0, 0x10, 6, 1), | ||
58 | PIN_FIELD_BASE(38, 38, 6, 0x00b0, 0x10, 4, 1), | ||
59 | PINS_FIELD_BASE(39, 40, 6, 0x00b0, 0x10, 3, 1), | ||
60 | PINS_FIELD_BASE(41, 42, 7, 0x00c0, 0x10, 6, 1), | ||
61 | PIN_FIELD_BASE(43, 43, 7, 0x00c0, 0x10, 3, 1), | ||
62 | PIN_FIELD_BASE(44, 44, 7, 0x00c0, 0x10, 4, 1), | ||
63 | PIN_FIELD_BASE(45, 45, 7, 0x00c0, 0x10, 8, 1), | ||
64 | PINS_FIELD_BASE(46, 47, 7, 0x00c0, 0x10, 7, 1), | ||
65 | PIN_FIELD_BASE(48, 48, 7, 0x00c0, 0x10, 15, 1), | ||
66 | PIN_FIELD_BASE(49, 49, 7, 0x00c0, 0x10, 17, 1), | ||
67 | PIN_FIELD_BASE(50, 50, 7, 0x00c0, 0x10, 14, 1), | ||
68 | PIN_FIELD_BASE(51, 51, 7, 0x00c0, 0x10, 16, 1), | ||
69 | PINS_FIELD_BASE(52, 57, 7, 0x00c0, 0x10, 0, 1), | ||
70 | PINS_FIELD_BASE(58, 60, 7, 0x00c0, 0x10, 12, 1), | ||
71 | PINS_FIELD_BASE(61, 62, 3, 0x0080, 0x10, 5, 1), | ||
72 | PINS_FIELD_BASE(63, 64, 3, 0x0080, 0x10, 4, 1), | ||
73 | PINS_FIELD_BASE(65, 66, 3, 0x0080, 0x10, 7, 1), | ||
74 | PINS_FIELD_BASE(67, 68, 3, 0x0080, 0x10, 6, 1), | ||
75 | PINS_FIELD_BASE(69, 73, 3, 0x0080, 0x10, 1, 1), | ||
76 | PINS_FIELD_BASE(74, 78, 3, 0x0080, 0x10, 2, 1), | ||
77 | PINS_FIELD_BASE(79, 80, 3, 0x0080, 0x10, 0, 1), | ||
78 | PIN_FIELD_BASE(81, 81, 3, 0x0080, 0x10, 12, 1), | ||
79 | PIN_FIELD_BASE(82, 82, 3, 0x0080, 0x10, 11, 1), | ||
80 | PIN_FIELD_BASE(83, 83, 3, 0x0080, 0x10, 9, 1), | ||
81 | PIN_FIELD_BASE(84, 84, 3, 0x0080, 0x10, 10, 1), | ||
82 | PIN_FIELD_BASE(85, 85, 7, 0x00c0, 0x10, 12, 1), | ||
83 | PIN_FIELD_BASE(86, 86, 7, 0x00c0, 0x10, 13, 1), | ||
84 | PIN_FIELD_BASE(87, 87, 7, 0x00c0, 0x10, 2, 1), | ||
85 | PIN_FIELD_BASE(88, 88, 7, 0x00c0, 0x10, 1, 1), | ||
86 | PIN_FIELD_BASE(89, 89, 2, 0x00b0, 0x10, 13, 1), | ||
87 | PIN_FIELD_BASE(90, 90, 3, 0x0080, 0x10, 8, 1), | ||
88 | PINS_FIELD_BASE(91, 92, 2, 0x00b0, 0x10, 8, 1), | ||
89 | PINS_FIELD_BASE(93, 94, 2, 0x00b0, 0x10, 7, 1), | ||
90 | PINS_FIELD_BASE(95, 96, 2, 0x00b0, 0x10, 14, 1), | ||
91 | PINS_FIELD_BASE(97, 98, 2, 0x00b0, 0x10, 2, 1), | ||
92 | PIN_FIELD_BASE(99, 99, 2, 0x00b0, 0x10, 0, 1), | ||
93 | PIN_FIELD_BASE(100, 100, 2, 0x00b0, 0x10, 1, 1), | ||
94 | PINS_FIELD_BASE(101, 102, 2, 0x00b0, 0x10, 3, 1), | ||
95 | PIN_FIELD_BASE(103, 103, 2, 0x00b0, 0x10, 9, 1), | ||
96 | PIN_FIELD_BASE(104, 104, 2, 0x00b0, 0x10, 11, 1), | ||
97 | PIN_FIELD_BASE(105, 105, 2, 0x00b0, 0x10, 10, 1), | ||
98 | PIN_FIELD_BASE(106, 106, 2, 0x00b0, 0x10, 12, 1), | ||
99 | PIN_FIELD_BASE(107, 107, 1, 0x0080, 0x10, 4, 1), | ||
100 | PIN_FIELD_BASE(108, 108, 1, 0x0080, 0x10, 3, 1), | ||
101 | PIN_FIELD_BASE(109, 109, 1, 0x0080, 0x10, 5, 1), | ||
102 | PIN_FIELD_BASE(110, 110, 1, 0x0080, 0x10, 0, 1), | ||
103 | PIN_FIELD_BASE(111, 111, 1, 0x0080, 0x10, 1, 1), | ||
104 | PIN_FIELD_BASE(112, 112, 1, 0x0080, 0x10, 2, 1), | ||
105 | PIN_FIELD_BASE(113, 113, 1, 0x0080, 0x10, 9, 1), | ||
106 | PIN_FIELD_BASE(114, 114, 1, 0x0080, 0x10, 10, 1), | ||
107 | PIN_FIELD_BASE(115, 115, 1, 0x0080, 0x10, 6, 1), | ||
108 | PIN_FIELD_BASE(116, 116, 1, 0x0080, 0x10, 7, 1), | ||
109 | PIN_FIELD_BASE(117, 117, 1, 0x0080, 0x10, 12, 1), | ||
110 | PIN_FIELD_BASE(118, 118, 1, 0x0080, 0x10, 13, 1), | ||
111 | PIN_FIELD_BASE(119, 119, 1, 0x0080, 0x10, 14, 1), | ||
112 | PIN_FIELD_BASE(120, 120, 1, 0x0080, 0x10, 11, 1), | ||
113 | PIN_FIELD_BASE(121, 121, 1, 0x0080, 0x10, 8, 1), | ||
114 | PIN_FIELD_BASE(122, 122, 4, 0x0080, 0x10, 2, 1), | ||
115 | PIN_FIELD_BASE(123, 123, 4, 0x0080, 0x10, 3, 1), | ||
116 | PIN_FIELD_BASE(124, 124, 4, 0x0080, 0x10, 1, 1), | ||
117 | PIN_FIELD_BASE(125, 125, 4, 0x0080, 0x10, 5, 1), | ||
118 | PIN_FIELD_BASE(126, 126, 4, 0x0080, 0x10, 7, 1), | ||
119 | PIN_FIELD_BASE(127, 127, 4, 0x0080, 0x10, 9, 1), | ||
120 | PIN_FIELD_BASE(128, 128, 4, 0x0080, 0x10, 4, 1), | ||
121 | PIN_FIELD_BASE(129, 129, 4, 0x0080, 0x10, 8, 1), | ||
122 | PIN_FIELD_BASE(130, 130, 4, 0x0080, 0x10, 10, 1), | ||
123 | PIN_FIELD_BASE(131, 131, 4, 0x0080, 0x10, 11, 1), | ||
124 | PIN_FIELD_BASE(132, 132, 4, 0x0080, 0x10, 6, 1), | ||
125 | PIN_FIELD_BASE(133, 133, 4, 0x0080, 0x10, 12, 1), | ||
126 | PIN_FIELD_BASE(134, 134, 5, 0x0060, 0x10, 11, 1), | ||
127 | PIN_FIELD_BASE(135, 135, 5, 0x0060, 0x10, 13, 1), | ||
128 | PIN_FIELD_BASE(136, 136, 5, 0x0060, 0x10, 1, 1), | ||
129 | PIN_FIELD_BASE(137, 137, 5, 0x0060, 0x10, 7, 1), | ||
130 | PIN_FIELD_BASE(138, 138, 5, 0x0060, 0x10, 4, 1), | ||
131 | PIN_FIELD_BASE(139, 139, 5, 0x0060, 0x10, 5, 1), | ||
132 | PIN_FIELD_BASE(140, 140, 5, 0x0060, 0x10, 0, 1), | ||
133 | PIN_FIELD_BASE(141, 141, 5, 0x0060, 0x10, 6, 1), | ||
134 | PIN_FIELD_BASE(142, 142, 5, 0x0060, 0x10, 2, 1), | ||
135 | PIN_FIELD_BASE(143, 143, 5, 0x0060, 0x10, 3, 1), | ||
136 | PINS_FIELD_BASE(144, 147, 5, 0x0060, 0x10, 10, 1), | ||
137 | PINS_FIELD_BASE(148, 149, 5, 0x0060, 0x10, 12, 1), | ||
138 | PINS_FIELD_BASE(150, 151, 7, 0x00c0, 0x10, 9, 1), | ||
139 | PINS_FIELD_BASE(152, 153, 7, 0x00c0, 0x10, 10, 1), | ||
140 | PIN_FIELD_BASE(154, 154, 7, 0x00c0, 0x10, 11, 1), | ||
141 | PINS_FIELD_BASE(155, 158, 3, 0x0080, 0x10, 13, 1), | ||
142 | PIN_FIELD_BASE(159, 159, 7, 0x00c0, 0x10, 11, 1), | ||
143 | PIN_FIELD_BASE(160, 160, 5, 0x0060, 0x10, 8, 1), | ||
144 | PIN_FIELD_BASE(161, 161, 1, 0x0080, 0x10, 15, 1), | ||
145 | PIN_FIELD_BASE(162, 162, 1, 0x0080, 0x10, 16, 1), | ||
146 | PINS_FIELD_BASE(163, 170, 4, 0x0080, 0x10, 0, 1), | ||
147 | PINS_FIELD_BASE(171, 179, 7, 0x00c0, 0x10, 5, 1), | ||
148 | }; | ||
149 | |||
150 | static const struct mtk_pin_field_calc mt6765_pin_pd_range[] = { | ||
151 | PIN_FIELD_BASE(0, 0, 2, 0x0040, 0x10, 6, 1), | ||
152 | PIN_FIELD_BASE(1, 1, 2, 0x0040, 0x10, 7, 1), | ||
153 | PIN_FIELD_BASE(2, 2, 2, 0x0040, 0x10, 10, 1), | ||
154 | PIN_FIELD_BASE(3, 3, 2, 0x0040, 0x10, 11, 1), | ||
155 | PIN_FIELD_BASE(4, 4, 2, 0x0040, 0x10, 12, 1), | ||
156 | PIN_FIELD_BASE(5, 5, 2, 0x0040, 0x10, 13, 1), | ||
157 | PIN_FIELD_BASE(6, 6, 2, 0x0040, 0x10, 14, 1), | ||
158 | PIN_FIELD_BASE(7, 7, 2, 0x0040, 0x10, 15, 1), | ||
159 | PIN_FIELD_BASE(8, 8, 3, 0x0040, 0x10, 12, 1), | ||
160 | PIN_FIELD_BASE(9, 9, 2, 0x0040, 0x10, 16, 1), | ||
161 | PIN_FIELD_BASE(10, 10, 2, 0x0040, 0x10, 8, 1), | ||
162 | PIN_FIELD_BASE(11, 11, 2, 0x0040, 0x10, 9, 1), | ||
163 | PIN_FIELD_BASE(12, 12, 5, 0x0030, 0x10, 9, 1), | ||
164 | PIN_FIELD_BASE(13, 13, 6, 0x0040, 0x10, 14, 1), | ||
165 | PIN_FIELD_BASE(14, 14, 6, 0x0040, 0x10, 13, 1), | ||
166 | PIN_FIELD_BASE(15, 15, 6, 0x0040, 0x10, 15, 1), | ||
167 | PIN_FIELD_BASE(16, 16, 6, 0x0040, 0x10, 12, 1), | ||
168 | PIN_FIELD_BASE(17, 17, 6, 0x0040, 0x10, 7, 1), | ||
169 | PIN_FIELD_BASE(18, 18, 6, 0x0040, 0x10, 4, 1), | ||
170 | PIN_FIELD_BASE(19, 19, 6, 0x0040, 0x10, 6, 1), | ||
171 | PIN_FIELD_BASE(20, 20, 6, 0x0040, 0x10, 5, 1), | ||
172 | PIN_FIELD_BASE(21, 21, 6, 0x0040, 0x10, 10, 1), | ||
173 | PIN_FIELD_BASE(22, 22, 6, 0x0040, 0x10, 9, 1), | ||
174 | PIN_FIELD_BASE(23, 23, 6, 0x0040, 0x10, 11, 1), | ||
175 | PIN_FIELD_BASE(24, 24, 6, 0x0040, 0x10, 8, 1), | ||
176 | PIN_FIELD_BASE(25, 25, 6, 0x0040, 0x10, 2, 1), | ||
177 | PIN_FIELD_BASE(26, 26, 6, 0x0040, 0x10, 1, 1), | ||
178 | PIN_FIELD_BASE(27, 27, 6, 0x0040, 0x10, 3, 1), | ||
179 | PINS_FIELD_BASE(28, 40, 6, 0x0040, 0x10, 0, 1), | ||
180 | PIN_FIELD_BASE(41, 41, 7, 0x0060, 0x10, 19, 1), | ||
181 | PIN_FIELD_BASE(42, 42, 7, 0x0060, 0x10, 9, 1), | ||
182 | PIN_FIELD_BASE(43, 43, 7, 0x0060, 0x10, 8, 1), | ||
183 | PIN_FIELD_BASE(44, 44, 7, 0x0060, 0x10, 10, 1), | ||
184 | PIN_FIELD_BASE(45, 45, 7, 0x0060, 0x10, 22, 1), | ||
185 | PIN_FIELD_BASE(46, 46, 7, 0x0060, 0x10, 21, 1), | ||
186 | PIN_FIELD_BASE(47, 47, 7, 0x0060, 0x10, 20, 1), | ||
187 | PIN_FIELD_BASE(48, 48, 7, 0x0070, 0x10, 3, 1), | ||
188 | PIN_FIELD_BASE(49, 49, 7, 0x0070, 0x10, 5, 1), | ||
189 | PIN_FIELD_BASE(50, 50, 7, 0x0070, 0x10, 2, 1), | ||
190 | PIN_FIELD_BASE(51, 51, 7, 0x0070, 0x10, 4, 1), | ||
191 | PIN_FIELD_BASE(52, 52, 7, 0x0060, 0x10, 1, 1), | ||
192 | PIN_FIELD_BASE(53, 53, 7, 0x0060, 0x10, 0, 1), | ||
193 | PIN_FIELD_BASE(54, 54, 7, 0x0060, 0x10, 5, 1), | ||
194 | PIN_FIELD_BASE(55, 55, 7, 0x0060, 0x10, 3, 1), | ||
195 | PIN_FIELD_BASE(56, 56, 7, 0x0060, 0x10, 4, 1), | ||
196 | PIN_FIELD_BASE(57, 57, 7, 0x0060, 0x10, 2, 1), | ||
197 | PIN_FIELD_BASE(58, 58, 7, 0x0070, 0x10, 0, 1), | ||
198 | PIN_FIELD_BASE(59, 59, 7, 0x0060, 0x10, 31, 1), | ||
199 | PIN_FIELD_BASE(60, 60, 7, 0x0060, 0x10, 30, 1), | ||
200 | PIN_FIELD_BASE(61, 61, 3, 0x0040, 0x10, 18, 1), | ||
201 | PIN_FIELD_BASE(62, 62, 3, 0x0040, 0x10, 14, 1), | ||
202 | PIN_FIELD_BASE(63, 63, 3, 0x0040, 0x10, 17, 1), | ||
203 | PIN_FIELD_BASE(64, 64, 3, 0x0040, 0x10, 13, 1), | ||
204 | PIN_FIELD_BASE(65, 65, 3, 0x0040, 0x10, 20, 1), | ||
205 | PIN_FIELD_BASE(66, 66, 3, 0x0040, 0x10, 16, 1), | ||
206 | PIN_FIELD_BASE(67, 67, 3, 0x0040, 0x10, 19, 1), | ||
207 | PIN_FIELD_BASE(68, 68, 3, 0x0040, 0x10, 15, 1), | ||
208 | PIN_FIELD_BASE(69, 69, 3, 0x0040, 0x10, 8, 1), | ||
209 | PIN_FIELD_BASE(70, 70, 3, 0x0040, 0x10, 7, 1), | ||
210 | PIN_FIELD_BASE(71, 71, 3, 0x0040, 0x10, 6, 1), | ||
211 | PIN_FIELD_BASE(72, 72, 3, 0x0040, 0x10, 5, 1), | ||
212 | PIN_FIELD_BASE(73, 73, 3, 0x0040, 0x10, 4, 1), | ||
213 | PIN_FIELD_BASE(74, 74, 3, 0x0040, 0x10, 3, 1), | ||
214 | PIN_FIELD_BASE(75, 75, 3, 0x0040, 0x10, 2, 1), | ||
215 | PIN_FIELD_BASE(76, 76, 3, 0x0040, 0x10, 1, 1), | ||
216 | PIN_FIELD_BASE(77, 77, 3, 0x0040, 0x10, 0, 1), | ||
217 | PIN_FIELD_BASE(78, 78, 3, 0x0040, 0x10, 9, 1), | ||
218 | PIN_FIELD_BASE(79, 79, 3, 0x0040, 0x10, 11, 1), | ||
219 | PIN_FIELD_BASE(80, 80, 3, 0x0040, 0x10, 10, 1), | ||
220 | PIN_FIELD_BASE(81, 81, 3, 0x0040, 0x10, 25, 1), | ||
221 | PIN_FIELD_BASE(82, 82, 3, 0x0040, 0x10, 24, 1), | ||
222 | PIN_FIELD_BASE(83, 83, 3, 0x0040, 0x10, 22, 1), | ||
223 | PIN_FIELD_BASE(84, 84, 3, 0x0040, 0x10, 23, 1), | ||
224 | PIN_FIELD_BASE(85, 85, 7, 0x0070, 0x10, 1, 1), | ||
225 | PIN_FIELD_BASE(86, 86, 7, 0x0060, 0x10, 29, 1), | ||
226 | PIN_FIELD_BASE(87, 87, 7, 0x0060, 0x10, 7, 1), | ||
227 | PIN_FIELD_BASE(88, 88, 7, 0x0060, 0x10, 6, 1), | ||
228 | PIN_FIELD_BASE(89, 89, 2, 0x0040, 0x10, 21, 1), | ||
229 | PINS_FIELD_BASE(90, 94, 3, 0x0040, 0x10, 21, 1), | ||
230 | PIN_FIELD_BASE(95, 95, 2, 0x0040, 0x10, 22, 1), | ||
231 | PIN_FIELD_BASE(96, 96, 2, 0x0040, 0x10, 23, 1), | ||
232 | PIN_FIELD_BASE(97, 97, 2, 0x0040, 0x10, 2, 1), | ||
233 | PIN_FIELD_BASE(98, 98, 2, 0x0040, 0x10, 3, 1), | ||
234 | PIN_FIELD_BASE(99, 99, 2, 0x0040, 0x10, 0, 1), | ||
235 | PIN_FIELD_BASE(100, 100, 2, 0x0040, 0x10, 1, 1), | ||
236 | PIN_FIELD_BASE(101, 101, 2, 0x0040, 0x10, 4, 1), | ||
237 | PIN_FIELD_BASE(102, 102, 2, 0x0040, 0x10, 5, 1), | ||
238 | PIN_FIELD_BASE(103, 103, 2, 0x0040, 0x10, 17, 1), | ||
239 | PIN_FIELD_BASE(104, 104, 2, 0x0040, 0x10, 19, 1), | ||
240 | PIN_FIELD_BASE(105, 105, 2, 0x0040, 0x10, 18, 1), | ||
241 | PIN_FIELD_BASE(106, 106, 2, 0x0040, 0x10, 20, 1), | ||
242 | PIN_FIELD_BASE(107, 107, 1, 0x0040, 0x10, 4, 1), | ||
243 | PIN_FIELD_BASE(108, 108, 1, 0x0040, 0x10, 3, 1), | ||
244 | PIN_FIELD_BASE(109, 109, 1, 0x0040, 0x10, 5, 1), | ||
245 | PIN_FIELD_BASE(110, 110, 1, 0x0040, 0x10, 0, 1), | ||
246 | PIN_FIELD_BASE(111, 111, 1, 0x0040, 0x10, 1, 1), | ||
247 | PIN_FIELD_BASE(112, 112, 1, 0x0040, 0x10, 2, 1), | ||
248 | PIN_FIELD_BASE(113, 113, 1, 0x0040, 0x10, 9, 1), | ||
249 | PIN_FIELD_BASE(114, 114, 1, 0x0040, 0x10, 10, 1), | ||
250 | PIN_FIELD_BASE(115, 115, 1, 0x0040, 0x10, 6, 1), | ||
251 | PIN_FIELD_BASE(116, 116, 1, 0x0040, 0x10, 7, 1), | ||
252 | PIN_FIELD_BASE(117, 117, 1, 0x0040, 0x10, 12, 1), | ||
253 | PIN_FIELD_BASE(118, 118, 1, 0x0040, 0x10, 13, 1), | ||
254 | PIN_FIELD_BASE(119, 119, 1, 0x0040, 0x10, 14, 1), | ||
255 | PIN_FIELD_BASE(120, 120, 1, 0x0040, 0x10, 11, 1), | ||
256 | PINS_FIELD_BASE(121, 133, 1, 0x0040, 0x10, 8, 1), | ||
257 | PIN_FIELD_BASE(134, 134, 5, 0x0030, 0x10, 14, 1), | ||
258 | PIN_FIELD_BASE(135, 135, 5, 0x0030, 0x10, 19, 1), | ||
259 | PIN_FIELD_BASE(136, 136, 5, 0x0030, 0x10, 1, 1), | ||
260 | PIN_FIELD_BASE(137, 137, 5, 0x0030, 0x10, 7, 1), | ||
261 | PIN_FIELD_BASE(138, 138, 5, 0x0030, 0x10, 4, 1), | ||
262 | PIN_FIELD_BASE(139, 139, 5, 0x0030, 0x10, 5, 1), | ||
263 | PIN_FIELD_BASE(140, 140, 5, 0x0030, 0x10, 0, 1), | ||
264 | PIN_FIELD_BASE(141, 141, 5, 0x0030, 0x10, 6, 1), | ||
265 | PIN_FIELD_BASE(142, 142, 5, 0x0030, 0x10, 2, 1), | ||
266 | PIN_FIELD_BASE(143, 143, 5, 0x0030, 0x10, 3, 1), | ||
267 | PIN_FIELD_BASE(144, 144, 5, 0x0030, 0x10, 12, 1), | ||
268 | PIN_FIELD_BASE(145, 145, 5, 0x0030, 0x10, 11, 1), | ||
269 | PIN_FIELD_BASE(146, 146, 5, 0x0030, 0x10, 13, 1), | ||
270 | PIN_FIELD_BASE(147, 147, 5, 0x0030, 0x10, 10, 1), | ||
271 | PIN_FIELD_BASE(148, 148, 5, 0x0030, 0x10, 15, 1), | ||
272 | PIN_FIELD_BASE(149, 149, 5, 0x0030, 0x10, 16, 1), | ||
273 | PIN_FIELD_BASE(150, 150, 7, 0x0060, 0x10, 23, 1), | ||
274 | PIN_FIELD_BASE(151, 151, 7, 0x0060, 0x10, 24, 1), | ||
275 | PIN_FIELD_BASE(152, 152, 7, 0x0060, 0x10, 25, 1), | ||
276 | PIN_FIELD_BASE(153, 153, 7, 0x0060, 0x10, 26, 1), | ||
277 | PIN_FIELD_BASE(154, 154, 7, 0x0060, 0x10, 28, 1), | ||
278 | PIN_FIELD_BASE(155, 155, 3, 0x0040, 0x10, 28, 1), | ||
279 | PIN_FIELD_BASE(156, 156, 3, 0x0040, 0x10, 27, 1), | ||
280 | PIN_FIELD_BASE(157, 157, 3, 0x0040, 0x10, 29, 1), | ||
281 | PIN_FIELD_BASE(158, 158, 3, 0x0040, 0x10, 26, 1), | ||
282 | PIN_FIELD_BASE(159, 159, 7, 0x0060, 0x10, 27, 1), | ||
283 | PIN_FIELD_BASE(160, 160, 5, 0x0030, 0x10, 8, 1), | ||
284 | PIN_FIELD_BASE(161, 161, 1, 0x0040, 0x10, 15, 1), | ||
285 | PIN_FIELD_BASE(162, 162, 1, 0x0040, 0x10, 16, 1), | ||
286 | PIN_FIELD_BASE(163, 163, 4, 0x0020, 0x10, 0, 1), | ||
287 | PIN_FIELD_BASE(164, 164, 4, 0x0020, 0x10, 1, 1), | ||
288 | PIN_FIELD_BASE(165, 165, 4, 0x0020, 0x10, 2, 1), | ||
289 | PIN_FIELD_BASE(166, 166, 4, 0x0020, 0x10, 3, 1), | ||
290 | PIN_FIELD_BASE(167, 167, 4, 0x0020, 0x10, 4, 1), | ||
291 | PIN_FIELD_BASE(168, 168, 4, 0x0020, 0x10, 5, 1), | ||
292 | PIN_FIELD_BASE(169, 169, 4, 0x0020, 0x10, 6, 1), | ||
293 | PIN_FIELD_BASE(170, 170, 4, 0x0020, 0x10, 7, 1), | ||
294 | PIN_FIELD_BASE(171, 171, 7, 0x0060, 0x10, 17, 1), | ||
295 | PIN_FIELD_BASE(172, 172, 7, 0x0060, 0x10, 18, 1), | ||
296 | PIN_FIELD_BASE(173, 173, 7, 0x0060, 0x10, 11, 1), | ||
297 | PIN_FIELD_BASE(174, 174, 7, 0x0060, 0x10, 12, 1), | ||
298 | PIN_FIELD_BASE(175, 175, 7, 0x0060, 0x10, 13, 1), | ||
299 | PIN_FIELD_BASE(176, 176, 7, 0x0060, 0x10, 14, 1), | ||
300 | PIN_FIELD_BASE(177, 177, 7, 0x0060, 0x10, 15, 1), | ||
301 | PINS_FIELD_BASE(178, 179, 7, 0x0060, 0x10, 16, 1), | ||
302 | }; | ||
303 | |||
304 | static const struct mtk_pin_field_calc mt6765_pin_pu_range[] = { | ||
305 | PIN_FIELD_BASE(0, 0, 2, 0x0060, 0x10, 6, 1), | ||
306 | PIN_FIELD_BASE(1, 1, 2, 0x0060, 0x10, 7, 1), | ||
307 | PIN_FIELD_BASE(2, 2, 2, 0x0060, 0x10, 10, 1), | ||
308 | PIN_FIELD_BASE(3, 3, 2, 0x0060, 0x10, 11, 1), | ||
309 | PIN_FIELD_BASE(4, 4, 2, 0x0060, 0x10, 12, 1), | ||
310 | PIN_FIELD_BASE(5, 5, 2, 0x0060, 0x10, 13, 1), | ||
311 | PIN_FIELD_BASE(6, 6, 2, 0x0060, 0x10, 14, 1), | ||
312 | PIN_FIELD_BASE(7, 7, 2, 0x0060, 0x10, 15, 1), | ||
313 | PIN_FIELD_BASE(8, 8, 3, 0x0050, 0x10, 12, 1), | ||
314 | PIN_FIELD_BASE(9, 9, 2, 0x0060, 0x10, 16, 1), | ||
315 | PIN_FIELD_BASE(10, 10, 2, 0x0060, 0x10, 8, 1), | ||
316 | PIN_FIELD_BASE(11, 11, 2, 0x0060, 0x10, 9, 1), | ||
317 | PIN_FIELD_BASE(12, 12, 5, 0x0040, 0x10, 9, 1), | ||
318 | PIN_FIELD_BASE(13, 13, 6, 0x0060, 0x10, 14, 1), | ||
319 | PIN_FIELD_BASE(14, 14, 6, 0x0060, 0x10, 13, 1), | ||
320 | PIN_FIELD_BASE(15, 15, 6, 0x0060, 0x10, 15, 1), | ||
321 | PIN_FIELD_BASE(16, 16, 6, 0x0060, 0x10, 12, 1), | ||
322 | PIN_FIELD_BASE(17, 17, 6, 0x0060, 0x10, 7, 1), | ||
323 | PIN_FIELD_BASE(18, 18, 6, 0x0060, 0x10, 4, 1), | ||
324 | PIN_FIELD_BASE(19, 19, 6, 0x0060, 0x10, 6, 1), | ||
325 | PIN_FIELD_BASE(20, 20, 6, 0x0060, 0x10, 5, 1), | ||
326 | PIN_FIELD_BASE(21, 21, 6, 0x0060, 0x10, 10, 1), | ||
327 | PIN_FIELD_BASE(22, 22, 6, 0x0060, 0x10, 9, 1), | ||
328 | PIN_FIELD_BASE(23, 23, 6, 0x0060, 0x10, 11, 1), | ||
329 | PIN_FIELD_BASE(24, 24, 6, 0x0060, 0x10, 8, 1), | ||
330 | PIN_FIELD_BASE(25, 25, 6, 0x0060, 0x10, 2, 1), | ||
331 | PIN_FIELD_BASE(26, 26, 6, 0x0060, 0x10, 1, 1), | ||
332 | PIN_FIELD_BASE(27, 27, 6, 0x0060, 0x10, 3, 1), | ||
333 | PINS_FIELD_BASE(28, 40, 6, 0x0060, 0x10, 0, 1), | ||
334 | PIN_FIELD_BASE(41, 41, 7, 0x0080, 0x10, 19, 1), | ||
335 | PIN_FIELD_BASE(42, 42, 7, 0x0080, 0x10, 9, 1), | ||
336 | PIN_FIELD_BASE(43, 43, 7, 0x0080, 0x10, 8, 1), | ||
337 | PIN_FIELD_BASE(44, 44, 7, 0x0080, 0x10, 10, 1), | ||
338 | PIN_FIELD_BASE(45, 45, 7, 0x0080, 0x10, 22, 1), | ||
339 | PIN_FIELD_BASE(46, 46, 7, 0x0080, 0x10, 21, 1), | ||
340 | PIN_FIELD_BASE(47, 47, 7, 0x0080, 0x10, 20, 1), | ||
341 | PIN_FIELD_BASE(48, 48, 7, 0x0090, 0x10, 3, 1), | ||
342 | PIN_FIELD_BASE(49, 49, 7, 0x0090, 0x10, 5, 1), | ||
343 | PIN_FIELD_BASE(50, 50, 7, 0x0090, 0x10, 2, 1), | ||
344 | PIN_FIELD_BASE(51, 51, 7, 0x0090, 0x10, 4, 1), | ||
345 | PIN_FIELD_BASE(52, 52, 7, 0x0080, 0x10, 1, 1), | ||
346 | PIN_FIELD_BASE(53, 53, 7, 0x0080, 0x10, 0, 1), | ||
347 | PIN_FIELD_BASE(54, 54, 7, 0x0080, 0x10, 5, 1), | ||
348 | PIN_FIELD_BASE(55, 55, 7, 0x0080, 0x10, 3, 1), | ||
349 | PIN_FIELD_BASE(56, 56, 7, 0x0080, 0x10, 4, 1), | ||
350 | PIN_FIELD_BASE(57, 57, 7, 0x0080, 0x10, 2, 1), | ||
351 | PIN_FIELD_BASE(58, 58, 7, 0x0090, 0x10, 0, 1), | ||
352 | PIN_FIELD_BASE(59, 59, 7, 0x0080, 0x10, 31, 1), | ||
353 | PIN_FIELD_BASE(60, 60, 7, 0x0080, 0x10, 30, 1), | ||
354 | PIN_FIELD_BASE(61, 61, 3, 0x0050, 0x10, 18, 1), | ||
355 | PIN_FIELD_BASE(62, 62, 3, 0x0050, 0x10, 14, 1), | ||
356 | PIN_FIELD_BASE(63, 63, 3, 0x0050, 0x10, 17, 1), | ||
357 | PIN_FIELD_BASE(64, 64, 3, 0x0050, 0x10, 13, 1), | ||
358 | PIN_FIELD_BASE(65, 65, 3, 0x0050, 0x10, 20, 1), | ||
359 | PIN_FIELD_BASE(66, 66, 3, 0x0050, 0x10, 16, 1), | ||
360 | PIN_FIELD_BASE(67, 67, 3, 0x0050, 0x10, 19, 1), | ||
361 | PIN_FIELD_BASE(68, 68, 3, 0x0050, 0x10, 15, 1), | ||
362 | PIN_FIELD_BASE(69, 69, 3, 0x0050, 0x10, 8, 1), | ||
363 | PIN_FIELD_BASE(70, 70, 3, 0x0050, 0x10, 7, 1), | ||
364 | PIN_FIELD_BASE(71, 71, 3, 0x0050, 0x10, 6, 1), | ||
365 | PIN_FIELD_BASE(72, 72, 3, 0x0050, 0x10, 5, 1), | ||
366 | PIN_FIELD_BASE(73, 73, 3, 0x0050, 0x10, 4, 1), | ||
367 | PIN_FIELD_BASE(74, 74, 3, 0x0050, 0x10, 3, 1), | ||
368 | PIN_FIELD_BASE(75, 75, 3, 0x0050, 0x10, 2, 1), | ||
369 | PIN_FIELD_BASE(76, 76, 3, 0x0050, 0x10, 1, 1), | ||
370 | PIN_FIELD_BASE(77, 77, 3, 0x0050, 0x10, 0, 1), | ||
371 | PIN_FIELD_BASE(78, 78, 3, 0x0050, 0x10, 9, 1), | ||
372 | PIN_FIELD_BASE(79, 79, 3, 0x0050, 0x10, 11, 1), | ||
373 | PIN_FIELD_BASE(80, 80, 3, 0x0050, 0x10, 10, 1), | ||
374 | PIN_FIELD_BASE(81, 81, 3, 0x0050, 0x10, 25, 1), | ||
375 | PIN_FIELD_BASE(82, 82, 3, 0x0050, 0x10, 24, 1), | ||
376 | PIN_FIELD_BASE(83, 83, 3, 0x0050, 0x10, 22, 1), | ||
377 | PIN_FIELD_BASE(84, 84, 3, 0x0050, 0x10, 23, 1), | ||
378 | PIN_FIELD_BASE(85, 85, 7, 0x0090, 0x10, 1, 1), | ||
379 | PIN_FIELD_BASE(86, 86, 7, 0x0080, 0x10, 29, 1), | ||
380 | PIN_FIELD_BASE(87, 87, 7, 0x0080, 0x10, 7, 1), | ||
381 | PIN_FIELD_BASE(88, 88, 7, 0x0080, 0x10, 6, 1), | ||
382 | PIN_FIELD_BASE(89, 89, 2, 0x0060, 0x10, 21, 1), | ||
383 | PINS_FIELD_BASE(90, 94, 3, 0x0050, 0x10, 21, 1), | ||
384 | PIN_FIELD_BASE(95, 95, 2, 0x0060, 0x10, 22, 1), | ||
385 | PIN_FIELD_BASE(96, 96, 2, 0x0060, 0x10, 23, 1), | ||
386 | PIN_FIELD_BASE(97, 97, 2, 0x0060, 0x10, 2, 1), | ||
387 | PIN_FIELD_BASE(98, 98, 2, 0x0060, 0x10, 3, 1), | ||
388 | PIN_FIELD_BASE(99, 99, 2, 0x0060, 0x10, 0, 1), | ||
389 | PIN_FIELD_BASE(100, 100, 2, 0x0060, 0x10, 1, 1), | ||
390 | PIN_FIELD_BASE(101, 101, 2, 0x0060, 0x10, 4, 1), | ||
391 | PIN_FIELD_BASE(102, 102, 2, 0x0060, 0x10, 5, 1), | ||
392 | PIN_FIELD_BASE(103, 103, 2, 0x0060, 0x10, 17, 1), | ||
393 | PIN_FIELD_BASE(104, 104, 2, 0x0060, 0x10, 19, 1), | ||
394 | PIN_FIELD_BASE(105, 105, 2, 0x0060, 0x10, 18, 1), | ||
395 | PIN_FIELD_BASE(106, 106, 2, 0x0060, 0x10, 20, 1), | ||
396 | PIN_FIELD_BASE(107, 107, 1, 0x0050, 0x10, 4, 1), | ||
397 | PIN_FIELD_BASE(108, 108, 1, 0x0050, 0x10, 3, 1), | ||
398 | PIN_FIELD_BASE(109, 109, 1, 0x0050, 0x10, 5, 1), | ||
399 | PIN_FIELD_BASE(110, 110, 1, 0x0050, 0x10, 0, 1), | ||
400 | PIN_FIELD_BASE(111, 111, 1, 0x0050, 0x10, 1, 1), | ||
401 | PIN_FIELD_BASE(112, 112, 1, 0x0050, 0x10, 2, 1), | ||
402 | PIN_FIELD_BASE(113, 113, 1, 0x0050, 0x10, 9, 1), | ||
403 | PIN_FIELD_BASE(114, 114, 1, 0x0050, 0x10, 10, 1), | ||
404 | PIN_FIELD_BASE(115, 115, 1, 0x0050, 0x10, 6, 1), | ||
405 | PIN_FIELD_BASE(116, 116, 1, 0x0050, 0x10, 7, 1), | ||
406 | PIN_FIELD_BASE(117, 117, 1, 0x0050, 0x10, 12, 1), | ||
407 | PIN_FIELD_BASE(118, 118, 1, 0x0050, 0x10, 13, 1), | ||
408 | PIN_FIELD_BASE(119, 119, 1, 0x0050, 0x10, 14, 1), | ||
409 | PIN_FIELD_BASE(120, 120, 1, 0x0050, 0x10, 11, 1), | ||
410 | PINS_FIELD_BASE(121, 133, 1, 0x0050, 0x10, 8, 1), | ||
411 | PIN_FIELD_BASE(134, 134, 5, 0x0040, 0x10, 14, 1), | ||
412 | PIN_FIELD_BASE(135, 135, 5, 0x0040, 0x10, 19, 1), | ||
413 | PIN_FIELD_BASE(136, 136, 5, 0x0040, 0x10, 1, 1), | ||
414 | PIN_FIELD_BASE(137, 137, 5, 0x0040, 0x10, 7, 1), | ||
415 | PIN_FIELD_BASE(138, 138, 5, 0x0040, 0x10, 4, 1), | ||
416 | PIN_FIELD_BASE(139, 139, 5, 0x0040, 0x10, 5, 1), | ||
417 | PIN_FIELD_BASE(140, 140, 5, 0x0040, 0x10, 0, 1), | ||
418 | PIN_FIELD_BASE(141, 141, 5, 0x0040, 0x10, 6, 1), | ||
419 | PIN_FIELD_BASE(142, 142, 5, 0x0040, 0x10, 2, 1), | ||
420 | PIN_FIELD_BASE(143, 143, 5, 0x0040, 0x10, 3, 1), | ||
421 | PIN_FIELD_BASE(144, 144, 5, 0x0040, 0x10, 12, 1), | ||
422 | PIN_FIELD_BASE(145, 145, 5, 0x0040, 0x10, 11, 1), | ||
423 | PIN_FIELD_BASE(146, 146, 5, 0x0040, 0x10, 13, 1), | ||
424 | PIN_FIELD_BASE(147, 147, 5, 0x0040, 0x10, 10, 1), | ||
425 | PIN_FIELD_BASE(148, 148, 5, 0x0040, 0x10, 15, 1), | ||
426 | PIN_FIELD_BASE(149, 149, 5, 0x0040, 0x10, 16, 1), | ||
427 | PIN_FIELD_BASE(150, 150, 7, 0x0080, 0x10, 23, 1), | ||
428 | PIN_FIELD_BASE(151, 151, 7, 0x0080, 0x10, 24, 1), | ||
429 | PIN_FIELD_BASE(152, 152, 7, 0x0080, 0x10, 25, 1), | ||
430 | PIN_FIELD_BASE(153, 153, 7, 0x0080, 0x10, 26, 1), | ||
431 | PIN_FIELD_BASE(154, 154, 7, 0x0080, 0x10, 28, 1), | ||
432 | PIN_FIELD_BASE(155, 155, 3, 0x0050, 0x10, 28, 1), | ||
433 | PIN_FIELD_BASE(156, 156, 3, 0x0050, 0x10, 27, 1), | ||
434 | PIN_FIELD_BASE(157, 157, 3, 0x0050, 0x10, 29, 1), | ||
435 | PIN_FIELD_BASE(158, 158, 3, 0x0050, 0x10, 26, 1), | ||
436 | PIN_FIELD_BASE(159, 159, 7, 0x0080, 0x10, 27, 1), | ||
437 | PIN_FIELD_BASE(160, 160, 5, 0x0040, 0x10, 8, 1), | ||
438 | PIN_FIELD_BASE(161, 161, 1, 0x0050, 0x10, 15, 1), | ||
439 | PIN_FIELD_BASE(162, 162, 1, 0x0050, 0x10, 16, 1), | ||
440 | PIN_FIELD_BASE(163, 163, 4, 0x0040, 0x10, 0, 1), | ||
441 | PIN_FIELD_BASE(164, 164, 4, 0x0040, 0x10, 1, 1), | ||
442 | PIN_FIELD_BASE(165, 165, 4, 0x0040, 0x10, 2, 1), | ||
443 | PIN_FIELD_BASE(166, 166, 4, 0x0040, 0x10, 3, 1), | ||
444 | PIN_FIELD_BASE(167, 167, 4, 0x0040, 0x10, 4, 1), | ||
445 | PIN_FIELD_BASE(168, 168, 4, 0x0040, 0x10, 5, 1), | ||
446 | PIN_FIELD_BASE(169, 169, 4, 0x0040, 0x10, 6, 1), | ||
447 | PIN_FIELD_BASE(170, 170, 4, 0x0040, 0x10, 7, 1), | ||
448 | PIN_FIELD_BASE(171, 171, 7, 0x0080, 0x10, 17, 1), | ||
449 | PIN_FIELD_BASE(172, 172, 7, 0x0080, 0x10, 18, 1), | ||
450 | PIN_FIELD_BASE(173, 173, 7, 0x0080, 0x10, 11, 1), | ||
451 | PIN_FIELD_BASE(174, 174, 7, 0x0080, 0x10, 12, 1), | ||
452 | PIN_FIELD_BASE(175, 175, 7, 0x0080, 0x10, 13, 1), | ||
453 | PIN_FIELD_BASE(176, 176, 7, 0x0080, 0x10, 14, 1), | ||
454 | PIN_FIELD_BASE(177, 177, 7, 0x0080, 0x10, 15, 1), | ||
455 | PINS_FIELD_BASE(178, 179, 7, 0x0080, 0x10, 16, 1), | ||
456 | }; | ||
457 | |||
458 | static const struct mtk_pin_field_calc mt6765_pin_tdsel_range[] = { | ||
459 | PINS_FIELD_BASE(0, 3, 2, 0x00c0, 0x10, 16, 4), | ||
460 | PINS_FIELD_BASE(4, 7, 2, 0x00c0, 0x10, 20, 4), | ||
461 | PIN_FIELD_BASE(8, 8, 3, 0x0090, 0x10, 12, 4), | ||
462 | PINS_FIELD_BASE(9, 11, 2, 0x00c0, 0x10, 24, 4), | ||
463 | PIN_FIELD_BASE(12, 12, 5, 0x0080, 0x10, 4, 4), | ||
464 | PINS_FIELD_BASE(13, 16, 6, 0x00e0, 0x10, 8, 4), | ||
465 | PINS_FIELD_BASE(17, 20, 6, 0x00e0, 0x10, 0, 4), | ||
466 | PINS_FIELD_BASE(21, 24, 6, 0x00e0, 0x10, 4, 4), | ||
467 | PINS_FIELD_BASE(25, 28, 6, 0x00d0, 0x10, 28, 4), | ||
468 | PIN_FIELD_BASE(29, 29, 6, 0x00d0, 0x10, 0, 4), | ||
469 | PIN_FIELD_BASE(30, 30, 6, 0x00d0, 0x10, 4, 4), | ||
470 | PINS_FIELD_BASE(31, 34, 6, 0x00d0, 0x10, 8, 4), | ||
471 | PINS_FIELD_BASE(35, 36, 6, 0x00d0, 0x10, 20, 4), | ||
472 | PIN_FIELD_BASE(37, 37, 6, 0x00d0, 0x10, 24, 4), | ||
473 | PIN_FIELD_BASE(38, 38, 6, 0x00d0, 0x10, 16, 4), | ||
474 | PINS_FIELD_BASE(39, 40, 6, 0x00d0, 0x10, 12, 4), | ||
475 | PINS_FIELD_BASE(41, 42, 7, 0x00d0, 0x10, 24, 4), | ||
476 | PIN_FIELD_BASE(43, 43, 7, 0x00d0, 0x10, 12, 4), | ||
477 | PIN_FIELD_BASE(44, 44, 7, 0x00d0, 0x10, 16, 4), | ||
478 | PIN_FIELD_BASE(45, 45, 7, 0x00e0, 0x10, 0, 4), | ||
479 | PINS_FIELD_BASE(46, 47, 7, 0x00d0, 0x10, 28, 4), | ||
480 | PINS_FIELD_BASE(48, 49, 7, 0x00e0, 0x10, 28, 4), | ||
481 | PINS_FIELD_BASE(50, 51, 7, 0x00e0, 0x10, 24, 4), | ||
482 | PINS_FIELD_BASE(52, 57, 7, 0x00d0, 0x10, 0, 4), | ||
483 | PINS_FIELD_BASE(58, 60, 7, 0x00e0, 0x10, 16, 4), | ||
484 | PINS_FIELD_BASE(61, 62, 3, 0x0090, 0x10, 20, 4), | ||
485 | PINS_FIELD_BASE(63, 64, 3, 0x0090, 0x10, 16, 4), | ||
486 | PINS_FIELD_BASE(65, 66, 3, 0x0090, 0x10, 28, 4), | ||
487 | PINS_FIELD_BASE(67, 68, 3, 0x0090, 0x10, 24, 4), | ||
488 | PINS_FIELD_BASE(69, 73, 3, 0x0090, 0x10, 4, 4), | ||
489 | PINS_FIELD_BASE(74, 78, 3, 0x0090, 0x10, 8, 4), | ||
490 | PINS_FIELD_BASE(79, 80, 3, 0x0090, 0x10, 0, 4), | ||
491 | PIN_FIELD_BASE(81, 81, 3, 0x00a0, 0x10, 8, 4), | ||
492 | PINS_FIELD_BASE(82, 83, 3, 0x00a0, 0x10, 4, 4), | ||
493 | PIN_FIELD_BASE(84, 84, 3, 0x00a0, 0x10, 8, 4), | ||
494 | PIN_FIELD_BASE(85, 85, 7, 0x00e0, 0x10, 16, 4), | ||
495 | PIN_FIELD_BASE(86, 86, 7, 0x00e0, 0x10, 20, 4), | ||
496 | PIN_FIELD_BASE(87, 87, 7, 0x00d0, 0x10, 8, 4), | ||
497 | PIN_FIELD_BASE(88, 88, 7, 0x00d0, 0x10, 4, 4), | ||
498 | PIN_FIELD_BASE(89, 89, 2, 0x00d0, 0x10, 12, 4), | ||
499 | PIN_FIELD_BASE(90, 90, 3, 0x00a0, 0x10, 0, 4), | ||
500 | PINS_FIELD_BASE(91, 92, 2, 0x00d0, 0x10, 0, 4), | ||
501 | PINS_FIELD_BASE(93, 94, 2, 0x00c0, 0x10, 28, 4), | ||
502 | PINS_FIELD_BASE(95, 96, 2, 0x00d0, 0x10, 16, 4), | ||
503 | PINS_FIELD_BASE(97, 98, 2, 0x00c0, 0x10, 8, 4), | ||
504 | PIN_FIELD_BASE(99, 99, 2, 0x00c0, 0x10, 0, 4), | ||
505 | PIN_FIELD_BASE(100, 100, 2, 0x00c0, 0x10, 4, 4), | ||
506 | PINS_FIELD_BASE(101, 102, 2, 0x00c0, 0x10, 12, 4), | ||
507 | PINS_FIELD_BASE(103, 104, 2, 0x00d0, 0x10, 4, 4), | ||
508 | PINS_FIELD_BASE(105, 106, 2, 0x00d0, 0x10, 8, 4), | ||
509 | PIN_FIELD_BASE(107, 107, 1, 0x0090, 0x10, 16, 4), | ||
510 | PIN_FIELD_BASE(108, 108, 1, 0x0090, 0x10, 12, 4), | ||
511 | PIN_FIELD_BASE(109, 109, 1, 0x0090, 0x10, 20, 4), | ||
512 | PIN_FIELD_BASE(110, 110, 1, 0x0090, 0x10, 0, 4), | ||
513 | PIN_FIELD_BASE(111, 111, 1, 0x0090, 0x10, 4, 4), | ||
514 | PIN_FIELD_BASE(112, 112, 1, 0x0090, 0x10, 8, 4), | ||
515 | PIN_FIELD_BASE(113, 113, 1, 0x00a0, 0x10, 4, 4), | ||
516 | PIN_FIELD_BASE(114, 114, 1, 0x00a0, 0x10, 8, 4), | ||
517 | PIN_FIELD_BASE(115, 115, 1, 0x0090, 0x10, 24, 4), | ||
518 | PIN_FIELD_BASE(116, 116, 1, 0x0090, 0x10, 28, 4), | ||
519 | PIN_FIELD_BASE(117, 117, 1, 0x00a0, 0x10, 16, 4), | ||
520 | PIN_FIELD_BASE(118, 118, 1, 0x00a0, 0x10, 20, 4), | ||
521 | PIN_FIELD_BASE(119, 119, 1, 0x00a0, 0x10, 24, 4), | ||
522 | PIN_FIELD_BASE(120, 120, 1, 0x00a0, 0x10, 12, 4), | ||
523 | PIN_FIELD_BASE(121, 121, 1, 0x00a0, 0x10, 0, 4), | ||
524 | PIN_FIELD_BASE(122, 122, 4, 0x0090, 0x10, 8, 4), | ||
525 | PIN_FIELD_BASE(123, 123, 4, 0x0090, 0x10, 12, 4), | ||
526 | PIN_FIELD_BASE(124, 124, 4, 0x0090, 0x10, 4, 4), | ||
527 | PINS_FIELD_BASE(125, 130, 4, 0x0090, 0x10, 12, 4), | ||
528 | PIN_FIELD_BASE(131, 131, 4, 0x0090, 0x10, 16, 4), | ||
529 | PIN_FIELD_BASE(132, 132, 4, 0x0090, 0x10, 12, 4), | ||
530 | PIN_FIELD_BASE(133, 133, 4, 0x0090, 0x10, 20, 4), | ||
531 | PIN_FIELD_BASE(134, 134, 5, 0x0080, 0x10, 12, 4), | ||
532 | PIN_FIELD_BASE(135, 135, 5, 0x0080, 0x10, 20, 4), | ||
533 | PIN_FIELD_BASE(136, 136, 5, 0x0070, 0x10, 4, 4), | ||
534 | PIN_FIELD_BASE(137, 137, 5, 0x0070, 0x10, 28, 4), | ||
535 | PIN_FIELD_BASE(138, 138, 5, 0x0070, 0x10, 16, 4), | ||
536 | PIN_FIELD_BASE(139, 139, 5, 0x0070, 0x10, 20, 4), | ||
537 | PIN_FIELD_BASE(140, 140, 5, 0x0070, 0x10, 0, 4), | ||
538 | PIN_FIELD_BASE(141, 141, 5, 0x0070, 0x10, 24, 4), | ||
539 | PIN_FIELD_BASE(142, 142, 5, 0x0070, 0x10, 8, 4), | ||
540 | PIN_FIELD_BASE(143, 143, 5, 0x0070, 0x10, 12, 4), | ||
541 | PINS_FIELD_BASE(144, 147, 5, 0x0080, 0x10, 8, 4), | ||
542 | PINS_FIELD_BASE(148, 149, 5, 0x0080, 0x10, 16, 4), | ||
543 | PINS_FIELD_BASE(150, 151, 7, 0x00e0, 0x10, 4, 4), | ||
544 | PINS_FIELD_BASE(152, 153, 7, 0x00e0, 0x10, 8, 4), | ||
545 | PIN_FIELD_BASE(154, 154, 7, 0x00e0, 0x10, 12, 4), | ||
546 | PINS_FIELD_BASE(155, 158, 3, 0x00a0, 0x10, 12, 4), | ||
547 | PIN_FIELD_BASE(159, 159, 7, 0x00e0, 0x10, 12, 4), | ||
548 | PIN_FIELD_BASE(160, 160, 5, 0x0080, 0x10, 0, 4), | ||
549 | PINS_FIELD_BASE(161, 162, 1, 0x00a0, 0x10, 28, 4), | ||
550 | PINS_FIELD_BASE(163, 170, 4, 0x0090, 0x10, 0, 4), | ||
551 | PINS_FIELD_BASE(171, 179, 7, 0x00d0, 0x10, 20, 4), | ||
552 | }; | ||
553 | |||
554 | static const struct mtk_pin_field_calc mt6765_pin_rdsel_range[] = { | ||
555 | PINS_FIELD_BASE(0, 3, 2, 0x0090, 0x10, 8, 2), | ||
556 | PINS_FIELD_BASE(4, 7, 2, 0x0090, 0x10, 10, 2), | ||
557 | PIN_FIELD_BASE(8, 8, 3, 0x0060, 0x10, 6, 2), | ||
558 | PINS_FIELD_BASE(9, 11, 2, 0x0090, 0x10, 12, 2), | ||
559 | PIN_FIELD_BASE(12, 12, 5, 0x0050, 0x10, 18, 2), | ||
560 | PINS_FIELD_BASE(13, 16, 6, 0x00a0, 0x10, 18, 2), | ||
561 | PINS_FIELD_BASE(17, 20, 6, 0x00a0, 0x10, 14, 2), | ||
562 | PINS_FIELD_BASE(21, 24, 6, 0x00a0, 0x10, 16, 2), | ||
563 | PINS_FIELD_BASE(25, 28, 6, 0x00a0, 0x10, 12, 2), | ||
564 | PIN_FIELD_BASE(29, 29, 6, 0x0090, 0x10, 0, 6), | ||
565 | PIN_FIELD_BASE(30, 30, 6, 0x0090, 0x10, 6, 6), | ||
566 | PINS_FIELD_BASE(31, 34, 6, 0x0090, 0x10, 12, 6), | ||
567 | PINS_FIELD_BASE(35, 36, 6, 0x00a0, 0x10, 0, 6), | ||
568 | PIN_FIELD_BASE(37, 37, 6, 0x00a0, 0x10, 6, 6), | ||
569 | PIN_FIELD_BASE(38, 38, 6, 0x0090, 0x10, 24, 6), | ||
570 | PINS_FIELD_BASE(39, 40, 6, 0x0090, 0x10, 18, 6), | ||
571 | PINS_FIELD_BASE(41, 42, 7, 0x00a0, 0x10, 12, 2), | ||
572 | PIN_FIELD_BASE(43, 43, 7, 0x00a0, 0x10, 6, 2), | ||
573 | PIN_FIELD_BASE(44, 44, 7, 0x00a0, 0x10, 8, 2), | ||
574 | PIN_FIELD_BASE(45, 45, 7, 0x00a0, 0x10, 16, 2), | ||
575 | PINS_FIELD_BASE(46, 47, 7, 0x00a0, 0x10, 14, 2), | ||
576 | PINS_FIELD_BASE(48, 49, 7, 0x00a0, 0x10, 30, 2), | ||
577 | PINS_FIELD_BASE(50, 51, 7, 0x00a0, 0x10, 28, 2), | ||
578 | PINS_FIELD_BASE(52, 57, 7, 0x00a0, 0x10, 0, 2), | ||
579 | PINS_FIELD_BASE(58, 60, 7, 0x00a0, 0x10, 24, 2), | ||
580 | PINS_FIELD_BASE(61, 62, 3, 0x0060, 0x10, 10, 2), | ||
581 | PINS_FIELD_BASE(63, 64, 3, 0x0060, 0x10, 8, 2), | ||
582 | PINS_FIELD_BASE(65, 66, 3, 0x0060, 0x10, 14, 2), | ||
583 | PINS_FIELD_BASE(67, 68, 3, 0x0060, 0x10, 12, 2), | ||
584 | PINS_FIELD_BASE(69, 73, 3, 0x0060, 0x10, 2, 2), | ||
585 | PINS_FIELD_BASE(74, 78, 3, 0x0060, 0x10, 4, 2), | ||
586 | PINS_FIELD_BASE(79, 80, 3, 0x0060, 0x10, 0, 2), | ||
587 | PIN_FIELD_BASE(81, 81, 3, 0x0060, 0x10, 20, 2), | ||
588 | PINS_FIELD_BASE(82, 83, 3, 0x0060, 0x10, 18, 2), | ||
589 | PIN_FIELD_BASE(84, 84, 3, 0x0060, 0x10, 20, 2), | ||
590 | PIN_FIELD_BASE(85, 85, 7, 0x00a0, 0x10, 24, 2), | ||
591 | PIN_FIELD_BASE(86, 86, 7, 0x00a0, 0x10, 26, 2), | ||
592 | PIN_FIELD_BASE(87, 87, 7, 0x00a0, 0x10, 4, 2), | ||
593 | PIN_FIELD_BASE(88, 88, 7, 0x00a0, 0x10, 2, 2), | ||
594 | PIN_FIELD_BASE(89, 89, 2, 0x0090, 0x10, 22, 2), | ||
595 | PIN_FIELD_BASE(90, 90, 3, 0x0060, 0x10, 16, 2), | ||
596 | PINS_FIELD_BASE(91, 92, 2, 0x0090, 0x10, 16, 2), | ||
597 | PINS_FIELD_BASE(93, 94, 2, 0x0090, 0x10, 14, 2), | ||
598 | PINS_FIELD_BASE(95, 96, 2, 0x0090, 0x10, 24, 2), | ||
599 | PINS_FIELD_BASE(97, 98, 2, 0x0090, 0x10, 4, 2), | ||
600 | PIN_FIELD_BASE(99, 99, 2, 0x0090, 0x10, 0, 2), | ||
601 | PIN_FIELD_BASE(100, 100, 2, 0x0090, 0x10, 2, 2), | ||
602 | PINS_FIELD_BASE(101, 102, 2, 0x0090, 0x10, 6, 2), | ||
603 | PINS_FIELD_BASE(103, 104, 2, 0x0090, 0x10, 18, 2), | ||
604 | PINS_FIELD_BASE(105, 106, 2, 0x0090, 0x10, 20, 2), | ||
605 | PIN_FIELD_BASE(107, 107, 1, 0x0060, 0x10, 8, 2), | ||
606 | PIN_FIELD_BASE(108, 108, 1, 0x0060, 0x10, 6, 2), | ||
607 | PIN_FIELD_BASE(109, 109, 1, 0x0060, 0x10, 10, 2), | ||
608 | PIN_FIELD_BASE(110, 110, 1, 0x0060, 0x10, 0, 2), | ||
609 | PIN_FIELD_BASE(111, 111, 1, 0x0060, 0x10, 2, 2), | ||
610 | PIN_FIELD_BASE(112, 112, 1, 0x0060, 0x10, 4, 2), | ||
611 | PIN_FIELD_BASE(113, 113, 1, 0x0060, 0x10, 18, 2), | ||
612 | PIN_FIELD_BASE(114, 114, 1, 0x0060, 0x10, 20, 2), | ||
613 | PIN_FIELD_BASE(115, 115, 1, 0x0060, 0x10, 12, 2), | ||
614 | PIN_FIELD_BASE(116, 116, 1, 0x0060, 0x10, 14, 2), | ||
615 | PIN_FIELD_BASE(117, 117, 1, 0x0060, 0x10, 24, 2), | ||
616 | PIN_FIELD_BASE(118, 118, 1, 0x0060, 0x10, 26, 2), | ||
617 | PIN_FIELD_BASE(119, 119, 1, 0x0060, 0x10, 28, 2), | ||
618 | PIN_FIELD_BASE(120, 120, 1, 0x0060, 0x10, 22, 2), | ||
619 | PIN_FIELD_BASE(121, 121, 1, 0x0060, 0x10, 16, 2), | ||
620 | PIN_FIELD_BASE(122, 122, 4, 0x0070, 0x10, 8, 6), | ||
621 | PIN_FIELD_BASE(123, 123, 4, 0x0070, 0x10, 14, 6), | ||
622 | PIN_FIELD_BASE(124, 124, 4, 0x0070, 0x10, 2, 6), | ||
623 | PINS_FIELD_BASE(125, 130, 4, 0x0070, 0x10, 14, 6), | ||
624 | PIN_FIELD_BASE(131, 131, 4, 0x0070, 0x10, 20, 6), | ||
625 | PIN_FIELD_BASE(132, 132, 4, 0x0070, 0x10, 14, 6), | ||
626 | PIN_FIELD_BASE(133, 133, 4, 0x0070, 0x10, 26, 6), | ||
627 | PIN_FIELD_BASE(134, 134, 5, 0x0050, 0x10, 22, 2), | ||
628 | PIN_FIELD_BASE(135, 135, 5, 0x0050, 0x10, 30, 2), | ||
629 | PIN_FIELD_BASE(136, 136, 5, 0x0050, 0x10, 2, 2), | ||
630 | PIN_FIELD_BASE(137, 137, 5, 0x0050, 0x10, 14, 2), | ||
631 | PIN_FIELD_BASE(138, 138, 5, 0x0050, 0x10, 8, 2), | ||
632 | PIN_FIELD_BASE(139, 139, 5, 0x0050, 0x10, 10, 2), | ||
633 | PIN_FIELD_BASE(140, 140, 5, 0x0050, 0x10, 0, 2), | ||
634 | PIN_FIELD_BASE(141, 141, 5, 0x0050, 0x10, 12, 2), | ||
635 | PIN_FIELD_BASE(142, 142, 5, 0x0050, 0x10, 4, 2), | ||
636 | PIN_FIELD_BASE(143, 143, 5, 0x0050, 0x10, 6, 2), | ||
637 | PINS_FIELD_BASE(144, 147, 5, 0x0050, 0x10, 20, 2), | ||
638 | PINS_FIELD_BASE(148, 149, 5, 0x0050, 0x10, 24, 2), | ||
639 | PINS_FIELD_BASE(150, 151, 7, 0x00a0, 0x10, 18, 2), | ||
640 | PINS_FIELD_BASE(152, 153, 7, 0x00a0, 0x10, 20, 2), | ||
641 | PIN_FIELD_BASE(154, 154, 7, 0x00a0, 0x10, 22, 2), | ||
642 | PINS_FIELD_BASE(155, 158, 3, 0x0060, 0x10, 22, 2), | ||
643 | PIN_FIELD_BASE(159, 159, 7, 0x00a0, 0x10, 22, 2), | ||
644 | PIN_FIELD_BASE(160, 160, 5, 0x0050, 0x10, 16, 2), | ||
645 | PINS_FIELD_BASE(161, 162, 1, 0x0060, 0x10, 30, 2), | ||
646 | PINS_FIELD_BASE(163, 170, 4, 0x0070, 0x10, 0, 2), | ||
647 | PINS_FIELD_BASE(171, 179, 7, 0x00a0, 0x10, 10, 2), | ||
648 | }; | ||
649 | |||
650 | static const struct mtk_pin_field_calc mt6765_pin_drv_range[] = { | ||
651 | PINS_FIELD_BASE(0, 2, 2, 0x0000, 0x10, 12, 3), | ||
652 | PIN_FIELD_BASE(3, 3, 2, 0x0000, 0x10, 15, 3), | ||
653 | PINS_FIELD_BASE(4, 6, 2, 0x0000, 0x10, 18, 3), | ||
654 | PIN_FIELD_BASE(7, 7, 2, 0x0000, 0x10, 21, 3), | ||
655 | PIN_FIELD_BASE(8, 8, 3, 0x0000, 0x10, 9, 3), | ||
656 | PINS_FIELD_BASE(9, 11, 2, 0x0000, 0x10, 24, 3), | ||
657 | PIN_FIELD_BASE(12, 12, 5, 0x0000, 0x10, 27, 3), | ||
658 | PINS_FIELD_BASE(13, 15, 6, 0x0010, 0x10, 3, 3), | ||
659 | PIN_FIELD_BASE(16, 16, 6, 0x0010, 0x10, 6, 3), | ||
660 | PIN_FIELD_BASE(17, 17, 6, 0x0000, 0x10, 23, 3), | ||
661 | PIN_FIELD_BASE(18, 18, 6, 0x0000, 0x10, 26, 3), | ||
662 | PINS_FIELD_BASE(19, 20, 6, 0x0000, 0x10, 23, 3), | ||
663 | PINS_FIELD_BASE(21, 23, 6, 0x0000, 0x10, 29, 3), | ||
664 | PIN_FIELD_BASE(24, 24, 6, 0x0010, 0x10, 0, 3), | ||
665 | PINS_FIELD_BASE(25, 27, 6, 0x0000, 0x10, 17, 3), | ||
666 | PIN_FIELD_BASE(28, 28, 6, 0x0000, 0x10, 20, 3), | ||
667 | PIN_FIELD_BASE(29, 29, 6, 0x0000, 0x10, 0, 3), | ||
668 | PIN_FIELD_BASE(30, 30, 6, 0x0000, 0x10, 3, 3), | ||
669 | PINS_FIELD_BASE(31, 34, 6, 0x0000, 0x10, 6, 3), | ||
670 | PINS_FIELD_BASE(35, 36, 6, 0x0000, 0x10, 13, 2), | ||
671 | PIN_FIELD_BASE(37, 37, 6, 0x0000, 0x10, 15, 2), | ||
672 | PIN_FIELD_BASE(38, 38, 6, 0x0000, 0x10, 11, 2), | ||
673 | PINS_FIELD_BASE(39, 40, 6, 0x0000, 0x10, 9, 2), | ||
674 | PINS_FIELD_BASE(41, 42, 7, 0x0000, 0x10, 21, 3), | ||
675 | PIN_FIELD_BASE(43, 43, 7, 0x0000, 0x10, 9, 3), | ||
676 | PIN_FIELD_BASE(44, 44, 7, 0x0000, 0x10, 12, 3), | ||
677 | PIN_FIELD_BASE(45, 45, 7, 0x0000, 0x10, 27, 3), | ||
678 | PINS_FIELD_BASE(46, 47, 7, 0x0000, 0x10, 24, 3), | ||
679 | PINS_FIELD_BASE(48, 49, 7, 0x0010, 0x10, 18, 3), | ||
680 | PINS_FIELD_BASE(50, 51, 7, 0x0010, 0x10, 15, 3), | ||
681 | PINS_FIELD_BASE(52, 57, 7, 0x0000, 0x10, 0, 3), | ||
682 | PINS_FIELD_BASE(58, 60, 7, 0x0010, 0x10, 9, 3), | ||
683 | PINS_FIELD_BASE(61, 62, 3, 0x0000, 0x10, 15, 3), | ||
684 | PINS_FIELD_BASE(63, 64, 3, 0x0000, 0x10, 12, 3), | ||
685 | PINS_FIELD_BASE(65, 66, 3, 0x0000, 0x10, 21, 3), | ||
686 | PINS_FIELD_BASE(67, 68, 3, 0x0000, 0x10, 18, 3), | ||
687 | PINS_FIELD_BASE(69, 73, 3, 0x0000, 0x10, 3, 3), | ||
688 | PINS_FIELD_BASE(74, 78, 3, 0x0000, 0x10, 6, 3), | ||
689 | PINS_FIELD_BASE(79, 80, 3, 0x0000, 0x10, 0, 3), | ||
690 | PIN_FIELD_BASE(81, 81, 3, 0x0010, 0x10, 0, 3), | ||
691 | PINS_FIELD_BASE(82, 83, 3, 0x0000, 0x10, 27, 3), | ||
692 | PIN_FIELD_BASE(84, 84, 3, 0x0010, 0x10, 0, 3), | ||
693 | PIN_FIELD_BASE(85, 85, 7, 0x0010, 0x10, 9, 3), | ||
694 | PIN_FIELD_BASE(86, 86, 7, 0x0010, 0x10, 12, 3), | ||
695 | PIN_FIELD_BASE(87, 87, 7, 0x0000, 0x10, 6, 3), | ||
696 | PIN_FIELD_BASE(88, 88, 7, 0x0000, 0x10, 3, 3), | ||
697 | PIN_FIELD_BASE(89, 89, 2, 0x0010, 0x10, 15, 3), | ||
698 | PIN_FIELD_BASE(90, 90, 3, 0x0000, 0x10, 24, 3), | ||
699 | PIN_FIELD_BASE(91, 91, 2, 0x0010, 0x10, 6, 3), | ||
700 | PIN_FIELD_BASE(92, 92, 2, 0x0010, 0x10, 3, 3), | ||
701 | PIN_FIELD_BASE(93, 93, 2, 0x0000, 0x10, 27, 3), | ||
702 | PIN_FIELD_BASE(94, 94, 2, 0x0010, 0x10, 0, 3), | ||
703 | PINS_FIELD_BASE(95, 96, 2, 0x0010, 0x10, 18, 3), | ||
704 | PINS_FIELD_BASE(97, 98, 2, 0x0000, 0x10, 6, 3), | ||
705 | PIN_FIELD_BASE(99, 99, 2, 0x0000, 0x10, 0, 3), | ||
706 | PIN_FIELD_BASE(100, 100, 2, 0x0000, 0x10, 3, 3), | ||
707 | PINS_FIELD_BASE(101, 102, 2, 0x0000, 0x10, 9, 3), | ||
708 | PINS_FIELD_BASE(103, 104, 2, 0x0010, 0x10, 9, 3), | ||
709 | PINS_FIELD_BASE(105, 106, 2, 0x0010, 0x10, 12, 3), | ||
710 | PIN_FIELD_BASE(107, 107, 1, 0x0000, 0x10, 12, 3), | ||
711 | PIN_FIELD_BASE(108, 108, 1, 0x0000, 0x10, 9, 3), | ||
712 | PIN_FIELD_BASE(109, 109, 1, 0x0000, 0x10, 15, 3), | ||
713 | PIN_FIELD_BASE(110, 110, 1, 0x0000, 0x10, 0, 3), | ||
714 | PIN_FIELD_BASE(111, 111, 1, 0x0000, 0x10, 3, 3), | ||
715 | PIN_FIELD_BASE(112, 112, 1, 0x0000, 0x10, 6, 3), | ||
716 | PIN_FIELD_BASE(113, 113, 1, 0x0000, 0x10, 27, 3), | ||
717 | PIN_FIELD_BASE(114, 114, 1, 0x0010, 0x10, 0, 3), | ||
718 | PIN_FIELD_BASE(115, 115, 1, 0x0000, 0x10, 18, 3), | ||
719 | PIN_FIELD_BASE(116, 116, 1, 0x0000, 0x10, 21, 3), | ||
720 | PIN_FIELD_BASE(117, 117, 1, 0x0010, 0x10, 6, 3), | ||
721 | PIN_FIELD_BASE(118, 118, 1, 0x0010, 0x10, 9, 3), | ||
722 | PIN_FIELD_BASE(119, 119, 1, 0x0010, 0x10, 12, 3), | ||
723 | PIN_FIELD_BASE(120, 120, 1, 0x0010, 0x10, 3, 3), | ||
724 | PIN_FIELD_BASE(121, 121, 1, 0x0000, 0x10, 24, 3), | ||
725 | PIN_FIELD_BASE(122, 122, 4, 0x0000, 0x10, 9, 3), | ||
726 | PIN_FIELD_BASE(123, 123, 4, 0x0000, 0x10, 12, 3), | ||
727 | PIN_FIELD_BASE(124, 124, 4, 0x0000, 0x10, 6, 3), | ||
728 | PINS_FIELD_BASE(125, 130, 4, 0x0000, 0x10, 12, 3), | ||
729 | PIN_FIELD_BASE(131, 131, 4, 0x0000, 0x10, 15, 3), | ||
730 | PIN_FIELD_BASE(132, 132, 4, 0x0000, 0x10, 12, 3), | ||
731 | PIN_FIELD_BASE(133, 133, 4, 0x0000, 0x10, 18, 3), | ||
732 | PIN_FIELD_BASE(134, 134, 5, 0x0010, 0x10, 6, 3), | ||
733 | PIN_FIELD_BASE(135, 135, 5, 0x0010, 0x10, 12, 3), | ||
734 | PIN_FIELD_BASE(136, 136, 5, 0x0000, 0x10, 3, 3), | ||
735 | PIN_FIELD_BASE(137, 137, 5, 0x0000, 0x10, 21, 3), | ||
736 | PIN_FIELD_BASE(138, 138, 5, 0x0000, 0x10, 12, 3), | ||
737 | PIN_FIELD_BASE(139, 139, 5, 0x0000, 0x10, 15, 3), | ||
738 | PIN_FIELD_BASE(140, 140, 5, 0x0000, 0x10, 0, 3), | ||
739 | PIN_FIELD_BASE(141, 141, 5, 0x0000, 0x10, 18, 3), | ||
740 | PIN_FIELD_BASE(142, 142, 5, 0x0000, 0x10, 6, 3), | ||
741 | PIN_FIELD_BASE(143, 143, 5, 0x0000, 0x10, 9, 3), | ||
742 | PINS_FIELD_BASE(144, 146, 5, 0x0010, 0x10, 0, 3), | ||
743 | PIN_FIELD_BASE(147, 147, 5, 0x0010, 0x10, 3, 3), | ||
744 | PINS_FIELD_BASE(148, 149, 5, 0x0010, 0x10, 9, 3), | ||
745 | PINS_FIELD_BASE(150, 151, 7, 0x0010, 0x10, 0, 3), | ||
746 | PINS_FIELD_BASE(152, 153, 7, 0x0010, 0x10, 3, 3), | ||
747 | PIN_FIELD_BASE(154, 154, 7, 0x0010, 0x10, 6, 3), | ||
748 | PINS_FIELD_BASE(155, 157, 3, 0x0010, 0x10, 3, 3), | ||
749 | PIN_FIELD_BASE(158, 158, 3, 0x0010, 0x10, 6, 3), | ||
750 | PIN_FIELD_BASE(159, 159, 7, 0x0010, 0x10, 6, 3), | ||
751 | PIN_FIELD_BASE(160, 160, 5, 0x0000, 0x10, 24, 3), | ||
752 | PINS_FIELD_BASE(161, 162, 1, 0x0010, 0x10, 15, 3), | ||
753 | PINS_FIELD_BASE(163, 166, 4, 0x0000, 0x10, 0, 3), | ||
754 | PINS_FIELD_BASE(167, 170, 4, 0x0000, 0x10, 3, 3), | ||
755 | PINS_FIELD_BASE(171, 174, 7, 0x0000, 0x10, 18, 3), | ||
756 | PINS_FIELD_BASE(175, 179, 7, 0x0000, 0x10, 15, 3), | ||
757 | }; | ||
758 | |||
759 | static const struct mtk_pin_field_calc mt6765_pin_pupd_range[] = { | ||
760 | PINS_FIELD_BASE(0, 28, 0, 0x0050, 0x10, 18, 1), | ||
761 | PIN_FIELD_BASE(29, 29, 6, 0x0050, 0x10, 0, 1), | ||
762 | PIN_FIELD_BASE(30, 30, 6, 0x0050, 0x10, 1, 1), | ||
763 | PIN_FIELD_BASE(31, 31, 6, 0x0050, 0x10, 5, 1), | ||
764 | PIN_FIELD_BASE(32, 32, 6, 0x0050, 0x10, 2, 1), | ||
765 | PIN_FIELD_BASE(33, 33, 6, 0x0050, 0x10, 4, 1), | ||
766 | PIN_FIELD_BASE(34, 34, 6, 0x0050, 0x10, 3, 1), | ||
767 | PIN_FIELD_BASE(35, 35, 6, 0x0050, 0x10, 10, 1), | ||
768 | PIN_FIELD_BASE(36, 36, 6, 0x0050, 0x10, 11, 1), | ||
769 | PIN_FIELD_BASE(37, 37, 6, 0x0050, 0x10, 9, 1), | ||
770 | PIN_FIELD_BASE(38, 38, 6, 0x0050, 0x10, 6, 1), | ||
771 | PIN_FIELD_BASE(39, 39, 6, 0x0050, 0x10, 8, 1), | ||
772 | PINS_FIELD_BASE(40, 90, 6, 0x0050, 0x10, 7, 1), | ||
773 | PIN_FIELD_BASE(91, 91, 2, 0x0050, 0x10, 3, 1), | ||
774 | PIN_FIELD_BASE(92, 92, 2, 0x0050, 0x10, 2, 1), | ||
775 | PIN_FIELD_BASE(93, 93, 2, 0x0050, 0x10, 0, 1), | ||
776 | PINS_FIELD_BASE(94, 121, 2, 0x0050, 0x10, 1, 1), | ||
777 | PIN_FIELD_BASE(122, 122, 4, 0x0030, 0x10, 1, 1), | ||
778 | PIN_FIELD_BASE(123, 123, 4, 0x0030, 0x10, 2, 1), | ||
779 | PIN_FIELD_BASE(124, 124, 4, 0x0030, 0x10, 0, 1), | ||
780 | PIN_FIELD_BASE(125, 125, 4, 0x0030, 0x10, 4, 1), | ||
781 | PIN_FIELD_BASE(126, 126, 4, 0x0030, 0x10, 6, 1), | ||
782 | PIN_FIELD_BASE(127, 127, 4, 0x0030, 0x10, 8, 1), | ||
783 | PIN_FIELD_BASE(128, 128, 4, 0x0030, 0x10, 3, 1), | ||
784 | PIN_FIELD_BASE(129, 129, 4, 0x0030, 0x10, 7, 1), | ||
785 | PIN_FIELD_BASE(130, 130, 4, 0x0030, 0x10, 9, 1), | ||
786 | PIN_FIELD_BASE(131, 131, 4, 0x0030, 0x10, 10, 1), | ||
787 | PIN_FIELD_BASE(132, 132, 4, 0x0030, 0x10, 5, 1), | ||
788 | PINS_FIELD_BASE(133, 179, 4, 0x0030, 0x10, 11, 1), | ||
789 | }; | ||
790 | |||
791 | static const struct mtk_pin_field_calc mt6765_pin_r0_range[] = { | ||
792 | PINS_FIELD_BASE(0, 28, 4, 0x0030, 0x10, 11, 1), | ||
793 | PIN_FIELD_BASE(29, 29, 6, 0x0070, 0x10, 0, 1), | ||
794 | PIN_FIELD_BASE(30, 30, 6, 0x0070, 0x10, 1, 1), | ||
795 | PIN_FIELD_BASE(31, 31, 6, 0x0070, 0x10, 5, 1), | ||
796 | PIN_FIELD_BASE(32, 32, 6, 0x0070, 0x10, 2, 1), | ||
797 | PIN_FIELD_BASE(33, 33, 6, 0x0070, 0x10, 4, 1), | ||
798 | PIN_FIELD_BASE(34, 34, 6, 0x0070, 0x10, 3, 1), | ||
799 | PIN_FIELD_BASE(35, 35, 6, 0x0070, 0x10, 10, 1), | ||
800 | PIN_FIELD_BASE(36, 36, 6, 0x0070, 0x10, 11, 1), | ||
801 | PIN_FIELD_BASE(37, 37, 6, 0x0070, 0x10, 9, 1), | ||
802 | PIN_FIELD_BASE(38, 38, 6, 0x0070, 0x10, 6, 1), | ||
803 | PIN_FIELD_BASE(39, 39, 6, 0x0070, 0x10, 8, 1), | ||
804 | PINS_FIELD_BASE(40, 90, 6, 0x0070, 0x10, 7, 1), | ||
805 | PIN_FIELD_BASE(91, 91, 2, 0x0070, 0x10, 3, 1), | ||
806 | PIN_FIELD_BASE(92, 92, 2, 0x0070, 0x10, 2, 1), | ||
807 | PIN_FIELD_BASE(93, 93, 2, 0x0070, 0x10, 0, 1), | ||
808 | PINS_FIELD_BASE(94, 121, 2, 0x0070, 0x10, 1, 1), | ||
809 | PIN_FIELD_BASE(122, 122, 4, 0x0050, 0x10, 1, 1), | ||
810 | PIN_FIELD_BASE(123, 123, 4, 0x0050, 0x10, 2, 1), | ||
811 | PIN_FIELD_BASE(124, 124, 4, 0x0050, 0x10, 0, 1), | ||
812 | PIN_FIELD_BASE(125, 125, 4, 0x0050, 0x10, 4, 1), | ||
813 | PIN_FIELD_BASE(126, 126, 4, 0x0050, 0x10, 6, 1), | ||
814 | PIN_FIELD_BASE(127, 127, 4, 0x0050, 0x10, 8, 1), | ||
815 | PIN_FIELD_BASE(128, 128, 4, 0x0050, 0x10, 3, 1), | ||
816 | PIN_FIELD_BASE(129, 129, 4, 0x0050, 0x10, 7, 1), | ||
817 | PIN_FIELD_BASE(130, 130, 4, 0x0050, 0x10, 9, 1), | ||
818 | PIN_FIELD_BASE(131, 131, 4, 0x0050, 0x10, 10, 1), | ||
819 | PIN_FIELD_BASE(132, 132, 4, 0x0050, 0x10, 5, 1), | ||
820 | PINS_FIELD_BASE(133, 179, 4, 0x0050, 0x10, 11, 1), | ||
821 | }; | ||
822 | |||
823 | static const struct mtk_pin_field_calc mt6765_pin_r1_range[] = { | ||
824 | PINS_FIELD_BASE(0, 28, 4, 0x0050, 0x10, 11, 1), | ||
825 | PIN_FIELD_BASE(29, 29, 6, 0x0080, 0x10, 0, 1), | ||
826 | PIN_FIELD_BASE(30, 30, 6, 0x0080, 0x10, 1, 1), | ||
827 | PIN_FIELD_BASE(31, 31, 6, 0x0080, 0x10, 5, 1), | ||
828 | PIN_FIELD_BASE(32, 32, 6, 0x0080, 0x10, 2, 1), | ||
829 | PIN_FIELD_BASE(33, 33, 6, 0x0080, 0x10, 4, 1), | ||
830 | PIN_FIELD_BASE(34, 34, 6, 0x0080, 0x10, 3, 1), | ||
831 | PIN_FIELD_BASE(35, 35, 6, 0x0080, 0x10, 10, 1), | ||
832 | PIN_FIELD_BASE(36, 36, 6, 0x0080, 0x10, 11, 1), | ||
833 | PIN_FIELD_BASE(37, 37, 6, 0x0080, 0x10, 9, 1), | ||
834 | PIN_FIELD_BASE(38, 38, 6, 0x0080, 0x10, 6, 1), | ||
835 | PIN_FIELD_BASE(39, 39, 6, 0x0080, 0x10, 8, 1), | ||
836 | PINS_FIELD_BASE(40, 90, 6, 0x0080, 0x10, 7, 1), | ||
837 | PIN_FIELD_BASE(91, 91, 2, 0x0080, 0x10, 3, 1), | ||
838 | PIN_FIELD_BASE(92, 92, 2, 0x0080, 0x10, 2, 1), | ||
839 | PIN_FIELD_BASE(93, 93, 2, 0x0080, 0x10, 0, 1), | ||
840 | PINS_FIELD_BASE(94, 121, 2, 0x0080, 0x10, 1, 1), | ||
841 | PIN_FIELD_BASE(122, 122, 4, 0x0060, 0x10, 1, 1), | ||
842 | PIN_FIELD_BASE(123, 123, 4, 0x0060, 0x10, 2, 1), | ||
843 | PIN_FIELD_BASE(124, 124, 4, 0x0060, 0x10, 0, 1), | ||
844 | PIN_FIELD_BASE(125, 125, 4, 0x0060, 0x10, 4, 1), | ||
845 | PIN_FIELD_BASE(126, 126, 4, 0x0060, 0x10, 6, 1), | ||
846 | PIN_FIELD_BASE(127, 127, 4, 0x0060, 0x10, 8, 1), | ||
847 | PIN_FIELD_BASE(128, 128, 4, 0x0060, 0x10, 3, 1), | ||
848 | PIN_FIELD_BASE(129, 129, 4, 0x0060, 0x10, 7, 1), | ||
849 | PIN_FIELD_BASE(130, 130, 4, 0x0060, 0x10, 9, 1), | ||
850 | PIN_FIELD_BASE(131, 131, 4, 0x0060, 0x10, 10, 1), | ||
851 | PIN_FIELD_BASE(132, 132, 4, 0x0060, 0x10, 5, 1), | ||
852 | PINS_FIELD_BASE(133, 179, 4, 0x0060, 0x10, 11, 1), | ||
853 | }; | ||
854 | |||
855 | static const struct mtk_pin_field_calc mt6765_pin_ies_range[] = { | ||
856 | PIN_FIELD_BASE(0, 0, 2, 0x0030, 0x10, 6, 1), | ||
857 | PIN_FIELD_BASE(1, 1, 2, 0x0030, 0x10, 7, 1), | ||
858 | PIN_FIELD_BASE(2, 2, 2, 0x0030, 0x10, 10, 1), | ||
859 | PIN_FIELD_BASE(3, 3, 2, 0x0030, 0x10, 11, 1), | ||
860 | PIN_FIELD_BASE(4, 4, 2, 0x0030, 0x10, 12, 1), | ||
861 | PIN_FIELD_BASE(5, 5, 2, 0x0030, 0x10, 13, 1), | ||
862 | PIN_FIELD_BASE(6, 6, 2, 0x0030, 0x10, 14, 1), | ||
863 | PIN_FIELD_BASE(7, 7, 2, 0x0030, 0x10, 15, 1), | ||
864 | PIN_FIELD_BASE(8, 8, 3, 0x0030, 0x10, 12, 1), | ||
865 | PIN_FIELD_BASE(9, 9, 2, 0x0030, 0x10, 16, 1), | ||
866 | PIN_FIELD_BASE(10, 10, 2, 0x0030, 0x10, 8, 1), | ||
867 | PIN_FIELD_BASE(11, 11, 2, 0x0030, 0x10, 9, 1), | ||
868 | PIN_FIELD_BASE(12, 12, 5, 0x0020, 0x10, 9, 1), | ||
869 | PIN_FIELD_BASE(13, 13, 6, 0x0020, 0x10, 26, 1), | ||
870 | PIN_FIELD_BASE(14, 14, 6, 0x0020, 0x10, 25, 1), | ||
871 | PIN_FIELD_BASE(15, 15, 6, 0x0020, 0x10, 27, 1), | ||
872 | PIN_FIELD_BASE(16, 16, 6, 0x0020, 0x10, 24, 1), | ||
873 | PIN_FIELD_BASE(17, 17, 6, 0x0020, 0x10, 19, 1), | ||
874 | PIN_FIELD_BASE(18, 18, 6, 0x0020, 0x10, 16, 1), | ||
875 | PIN_FIELD_BASE(19, 19, 6, 0x0020, 0x10, 18, 1), | ||
876 | PIN_FIELD_BASE(20, 20, 6, 0x0020, 0x10, 17, 1), | ||
877 | PIN_FIELD_BASE(21, 21, 6, 0x0020, 0x10, 22, 1), | ||
878 | PIN_FIELD_BASE(22, 22, 6, 0x0020, 0x10, 21, 1), | ||
879 | PIN_FIELD_BASE(23, 23, 6, 0x0020, 0x10, 23, 1), | ||
880 | PIN_FIELD_BASE(24, 24, 6, 0x0020, 0x10, 20, 1), | ||
881 | PIN_FIELD_BASE(25, 25, 6, 0x0020, 0x10, 14, 1), | ||
882 | PIN_FIELD_BASE(26, 26, 6, 0x0020, 0x10, 13, 1), | ||
883 | PIN_FIELD_BASE(27, 27, 6, 0x0020, 0x10, 15, 1), | ||
884 | PIN_FIELD_BASE(28, 28, 6, 0x0020, 0x10, 12, 1), | ||
885 | PIN_FIELD_BASE(29, 29, 6, 0x0020, 0x10, 0, 1), | ||
886 | PIN_FIELD_BASE(30, 30, 6, 0x0020, 0x10, 1, 1), | ||
887 | PIN_FIELD_BASE(31, 31, 6, 0x0020, 0x10, 5, 1), | ||
888 | PIN_FIELD_BASE(32, 32, 6, 0x0020, 0x10, 2, 1), | ||
889 | PIN_FIELD_BASE(33, 33, 6, 0x0020, 0x10, 4, 1), | ||
890 | PIN_FIELD_BASE(34, 34, 6, 0x0020, 0x10, 3, 1), | ||
891 | PIN_FIELD_BASE(35, 35, 6, 0x0020, 0x10, 10, 1), | ||
892 | PIN_FIELD_BASE(36, 36, 6, 0x0020, 0x10, 11, 1), | ||
893 | PIN_FIELD_BASE(37, 37, 6, 0x0020, 0x10, 9, 1), | ||
894 | PIN_FIELD_BASE(38, 38, 6, 0x0020, 0x10, 6, 1), | ||
895 | PIN_FIELD_BASE(39, 39, 6, 0x0020, 0x10, 8, 1), | ||
896 | PIN_FIELD_BASE(40, 40, 6, 0x0020, 0x10, 7, 1), | ||
897 | PIN_FIELD_BASE(41, 41, 7, 0x0040, 0x10, 19, 1), | ||
898 | PIN_FIELD_BASE(42, 42, 7, 0x0040, 0x10, 9, 1), | ||
899 | PIN_FIELD_BASE(43, 43, 7, 0x0040, 0x10, 8, 1), | ||
900 | PIN_FIELD_BASE(44, 44, 7, 0x0040, 0x10, 10, 1), | ||
901 | PIN_FIELD_BASE(45, 45, 7, 0x0040, 0x10, 22, 1), | ||
902 | PIN_FIELD_BASE(46, 46, 7, 0x0040, 0x10, 21, 1), | ||
903 | PIN_FIELD_BASE(47, 47, 7, 0x0040, 0x10, 20, 1), | ||
904 | PIN_FIELD_BASE(48, 48, 7, 0x0050, 0x10, 3, 1), | ||
905 | PIN_FIELD_BASE(49, 49, 7, 0x0050, 0x10, 5, 1), | ||
906 | PIN_FIELD_BASE(50, 50, 7, 0x0050, 0x10, 2, 1), | ||
907 | PIN_FIELD_BASE(51, 51, 7, 0x0050, 0x10, 4, 1), | ||
908 | PIN_FIELD_BASE(52, 52, 7, 0x0040, 0x10, 1, 1), | ||
909 | PIN_FIELD_BASE(53, 53, 7, 0x0040, 0x10, 0, 1), | ||
910 | PIN_FIELD_BASE(54, 54, 7, 0x0040, 0x10, 5, 1), | ||
911 | PIN_FIELD_BASE(55, 55, 7, 0x0040, 0x10, 3, 1), | ||
912 | PIN_FIELD_BASE(56, 56, 7, 0x0040, 0x10, 4, 1), | ||
913 | PIN_FIELD_BASE(57, 57, 7, 0x0040, 0x10, 2, 1), | ||
914 | PIN_FIELD_BASE(58, 58, 7, 0x0050, 0x10, 0, 1), | ||
915 | PIN_FIELD_BASE(59, 59, 7, 0x0040, 0x10, 31, 1), | ||
916 | PIN_FIELD_BASE(60, 60, 7, 0x0040, 0x10, 30, 1), | ||
917 | PIN_FIELD_BASE(61, 61, 3, 0x0030, 0x10, 18, 1), | ||
918 | PIN_FIELD_BASE(62, 62, 3, 0x0030, 0x10, 14, 1), | ||
919 | PIN_FIELD_BASE(63, 63, 3, 0x0030, 0x10, 17, 1), | ||
920 | PIN_FIELD_BASE(64, 64, 3, 0x0030, 0x10, 13, 1), | ||
921 | PIN_FIELD_BASE(65, 65, 3, 0x0030, 0x10, 20, 1), | ||
922 | PIN_FIELD_BASE(66, 66, 3, 0x0030, 0x10, 16, 1), | ||
923 | PIN_FIELD_BASE(67, 67, 3, 0x0030, 0x10, 19, 1), | ||
924 | PIN_FIELD_BASE(68, 68, 3, 0x0030, 0x10, 15, 1), | ||
925 | PIN_FIELD_BASE(69, 69, 3, 0x0030, 0x10, 8, 1), | ||
926 | PIN_FIELD_BASE(70, 70, 3, 0x0030, 0x10, 7, 1), | ||
927 | PIN_FIELD_BASE(71, 71, 3, 0x0030, 0x10, 6, 1), | ||
928 | PIN_FIELD_BASE(72, 72, 3, 0x0030, 0x10, 5, 1), | ||
929 | PIN_FIELD_BASE(73, 73, 3, 0x0030, 0x10, 4, 1), | ||
930 | PIN_FIELD_BASE(74, 74, 3, 0x0030, 0x10, 3, 1), | ||
931 | PIN_FIELD_BASE(75, 75, 3, 0x0030, 0x10, 2, 1), | ||
932 | PIN_FIELD_BASE(76, 76, 3, 0x0030, 0x10, 1, 1), | ||
933 | PIN_FIELD_BASE(77, 77, 3, 0x0030, 0x10, 0, 1), | ||
934 | PIN_FIELD_BASE(78, 78, 3, 0x0030, 0x10, 9, 1), | ||
935 | PIN_FIELD_BASE(79, 79, 3, 0x0030, 0x10, 11, 1), | ||
936 | PIN_FIELD_BASE(80, 80, 3, 0x0030, 0x10, 10, 1), | ||
937 | PIN_FIELD_BASE(81, 81, 3, 0x0030, 0x10, 25, 1), | ||
938 | PIN_FIELD_BASE(82, 82, 3, 0x0030, 0x10, 24, 1), | ||
939 | PIN_FIELD_BASE(83, 83, 3, 0x0030, 0x10, 22, 1), | ||
940 | PIN_FIELD_BASE(84, 84, 3, 0x0030, 0x10, 23, 1), | ||
941 | PIN_FIELD_BASE(85, 85, 7, 0x0050, 0x10, 1, 1), | ||
942 | PIN_FIELD_BASE(86, 86, 7, 0x0040, 0x10, 29, 1), | ||
943 | PIN_FIELD_BASE(87, 87, 7, 0x0040, 0x10, 7, 1), | ||
944 | PIN_FIELD_BASE(88, 88, 7, 0x0040, 0x10, 6, 1), | ||
945 | PIN_FIELD_BASE(89, 89, 2, 0x0030, 0x10, 25, 1), | ||
946 | PIN_FIELD_BASE(90, 90, 3, 0x0030, 0x10, 21, 1), | ||
947 | PIN_FIELD_BASE(91, 91, 2, 0x0030, 0x10, 20, 1), | ||
948 | PIN_FIELD_BASE(92, 92, 2, 0x0030, 0x10, 19, 1), | ||
949 | PIN_FIELD_BASE(93, 93, 2, 0x0030, 0x10, 17, 1), | ||
950 | PIN_FIELD_BASE(94, 94, 2, 0x0030, 0x10, 18, 1), | ||
951 | PIN_FIELD_BASE(95, 95, 2, 0x0030, 0x10, 26, 1), | ||
952 | PIN_FIELD_BASE(96, 96, 2, 0x0030, 0x10, 27, 1), | ||
953 | PIN_FIELD_BASE(97, 97, 2, 0x0030, 0x10, 2, 1), | ||
954 | PIN_FIELD_BASE(98, 98, 2, 0x0030, 0x10, 3, 1), | ||
955 | PIN_FIELD_BASE(99, 99, 2, 0x0030, 0x10, 0, 1), | ||
956 | PIN_FIELD_BASE(100, 100, 2, 0x0030, 0x10, 1, 1), | ||
957 | PIN_FIELD_BASE(101, 101, 2, 0x0030, 0x10, 4, 1), | ||
958 | PIN_FIELD_BASE(102, 102, 2, 0x0030, 0x10, 5, 1), | ||
959 | PIN_FIELD_BASE(103, 103, 2, 0x0030, 0x10, 21, 1), | ||
960 | PIN_FIELD_BASE(104, 104, 2, 0x0030, 0x10, 23, 1), | ||
961 | PIN_FIELD_BASE(105, 105, 2, 0x0030, 0x10, 22, 1), | ||
962 | PIN_FIELD_BASE(106, 106, 2, 0x0030, 0x10, 24, 1), | ||
963 | PIN_FIELD_BASE(107, 107, 1, 0x0030, 0x10, 4, 1), | ||
964 | PIN_FIELD_BASE(108, 108, 1, 0x0030, 0x10, 3, 1), | ||
965 | PIN_FIELD_BASE(109, 109, 1, 0x0030, 0x10, 5, 1), | ||
966 | PIN_FIELD_BASE(110, 110, 1, 0x0030, 0x10, 0, 1), | ||
967 | PIN_FIELD_BASE(111, 111, 1, 0x0030, 0x10, 1, 1), | ||
968 | PIN_FIELD_BASE(112, 112, 1, 0x0030, 0x10, 2, 1), | ||
969 | PIN_FIELD_BASE(113, 113, 1, 0x0030, 0x10, 9, 1), | ||
970 | PIN_FIELD_BASE(114, 114, 1, 0x0030, 0x10, 10, 1), | ||
971 | PIN_FIELD_BASE(115, 115, 1, 0x0030, 0x10, 6, 1), | ||
972 | PIN_FIELD_BASE(116, 116, 1, 0x0030, 0x10, 7, 1), | ||
973 | PIN_FIELD_BASE(117, 117, 1, 0x0030, 0x10, 12, 1), | ||
974 | PIN_FIELD_BASE(118, 118, 1, 0x0030, 0x10, 13, 1), | ||
975 | PIN_FIELD_BASE(119, 119, 1, 0x0030, 0x10, 14, 1), | ||
976 | PIN_FIELD_BASE(120, 120, 1, 0x0030, 0x10, 11, 1), | ||
977 | PIN_FIELD_BASE(121, 121, 1, 0x0030, 0x10, 8, 1), | ||
978 | PIN_FIELD_BASE(122, 122, 4, 0x0010, 0x10, 9, 1), | ||
979 | PIN_FIELD_BASE(123, 123, 4, 0x0010, 0x10, 10, 1), | ||
980 | PIN_FIELD_BASE(124, 124, 4, 0x0010, 0x10, 8, 1), | ||
981 | PIN_FIELD_BASE(125, 125, 4, 0x0010, 0x10, 12, 1), | ||
982 | PIN_FIELD_BASE(126, 126, 4, 0x0010, 0x10, 14, 1), | ||
983 | PIN_FIELD_BASE(127, 127, 4, 0x0010, 0x10, 16, 1), | ||
984 | PIN_FIELD_BASE(128, 128, 4, 0x0010, 0x10, 11, 1), | ||
985 | PIN_FIELD_BASE(129, 129, 4, 0x0010, 0x10, 15, 1), | ||
986 | PIN_FIELD_BASE(130, 130, 4, 0x0010, 0x10, 17, 1), | ||
987 | PIN_FIELD_BASE(131, 131, 4, 0x0010, 0x10, 18, 1), | ||
988 | PIN_FIELD_BASE(132, 132, 4, 0x0010, 0x10, 13, 1), | ||
989 | PIN_FIELD_BASE(133, 133, 4, 0x0010, 0x10, 19, 1), | ||
990 | PIN_FIELD_BASE(134, 134, 5, 0x0020, 0x10, 14, 1), | ||
991 | PIN_FIELD_BASE(135, 135, 5, 0x0020, 0x10, 17, 1), | ||
992 | PIN_FIELD_BASE(136, 136, 5, 0x0020, 0x10, 1, 1), | ||
993 | PIN_FIELD_BASE(137, 137, 5, 0x0020, 0x10, 7, 1), | ||
994 | PIN_FIELD_BASE(138, 138, 5, 0x0020, 0x10, 4, 1), | ||
995 | PIN_FIELD_BASE(139, 139, 5, 0x0020, 0x10, 5, 1), | ||
996 | PIN_FIELD_BASE(140, 140, 5, 0x0020, 0x10, 0, 1), | ||
997 | PIN_FIELD_BASE(141, 141, 5, 0x0020, 0x10, 6, 1), | ||
998 | PIN_FIELD_BASE(142, 142, 5, 0x0020, 0x10, 2, 1), | ||
999 | PIN_FIELD_BASE(143, 143, 5, 0x0020, 0x10, 3, 1), | ||
1000 | PIN_FIELD_BASE(144, 144, 5, 0x0020, 0x10, 12, 1), | ||
1001 | PIN_FIELD_BASE(145, 145, 5, 0x0020, 0x10, 11, 1), | ||
1002 | PIN_FIELD_BASE(146, 146, 5, 0x0020, 0x10, 13, 1), | ||
1003 | PIN_FIELD_BASE(147, 147, 5, 0x0020, 0x10, 10, 1), | ||
1004 | PIN_FIELD_BASE(148, 148, 5, 0x0020, 0x10, 15, 1), | ||
1005 | PIN_FIELD_BASE(149, 149, 5, 0x0020, 0x10, 16, 1), | ||
1006 | PIN_FIELD_BASE(150, 150, 7, 0x0040, 0x10, 23, 1), | ||
1007 | PIN_FIELD_BASE(151, 151, 7, 0x0040, 0x10, 24, 1), | ||
1008 | PIN_FIELD_BASE(152, 152, 7, 0x0040, 0x10, 25, 1), | ||
1009 | PIN_FIELD_BASE(153, 153, 7, 0x0040, 0x10, 26, 1), | ||
1010 | PIN_FIELD_BASE(154, 154, 7, 0x0040, 0x10, 28, 1), | ||
1011 | PIN_FIELD_BASE(155, 155, 3, 0x0030, 0x10, 28, 1), | ||
1012 | PIN_FIELD_BASE(156, 156, 3, 0x0030, 0x10, 27, 1), | ||
1013 | PIN_FIELD_BASE(157, 157, 3, 0x0030, 0x10, 29, 1), | ||
1014 | PIN_FIELD_BASE(158, 158, 3, 0x0030, 0x10, 26, 1), | ||
1015 | PIN_FIELD_BASE(159, 159, 7, 0x0040, 0x10, 27, 1), | ||
1016 | PIN_FIELD_BASE(160, 160, 5, 0x0020, 0x10, 8, 1), | ||
1017 | PIN_FIELD_BASE(161, 161, 1, 0x0030, 0x10, 15, 1), | ||
1018 | PIN_FIELD_BASE(162, 162, 1, 0x0030, 0x10, 16, 1), | ||
1019 | PIN_FIELD_BASE(163, 163, 4, 0x0010, 0x10, 0, 1), | ||
1020 | PIN_FIELD_BASE(164, 164, 4, 0x0010, 0x10, 1, 1), | ||
1021 | PIN_FIELD_BASE(165, 165, 4, 0x0010, 0x10, 2, 1), | ||
1022 | PIN_FIELD_BASE(166, 166, 4, 0x0010, 0x10, 3, 1), | ||
1023 | PIN_FIELD_BASE(167, 167, 4, 0x0010, 0x10, 4, 1), | ||
1024 | PIN_FIELD_BASE(168, 168, 4, 0x0010, 0x10, 5, 1), | ||
1025 | PIN_FIELD_BASE(169, 169, 4, 0x0010, 0x10, 6, 1), | ||
1026 | PIN_FIELD_BASE(170, 170, 4, 0x0010, 0x10, 7, 1), | ||
1027 | PIN_FIELD_BASE(171, 171, 7, 0x0040, 0x10, 17, 1), | ||
1028 | PIN_FIELD_BASE(172, 172, 7, 0x0040, 0x10, 18, 1), | ||
1029 | PIN_FIELD_BASE(173, 173, 7, 0x0040, 0x10, 11, 1), | ||
1030 | PIN_FIELD_BASE(174, 174, 7, 0x0040, 0x10, 12, 1), | ||
1031 | PIN_FIELD_BASE(175, 175, 7, 0x0040, 0x10, 13, 1), | ||
1032 | PIN_FIELD_BASE(176, 176, 7, 0x0040, 0x10, 14, 1), | ||
1033 | PIN_FIELD_BASE(177, 177, 7, 0x0040, 0x10, 15, 1), | ||
1034 | PINS_FIELD_BASE(178, 179, 7, 0x0040, 0x10, 16, 1), | ||
1035 | }; | ||
1036 | |||
1037 | static const struct mtk_pin_reg_calc mt6765_reg_cals[PINCTRL_PIN_REG_MAX] = { | ||
1038 | [PINCTRL_PIN_REG_MODE] = MTK_RANGE(mt6765_pin_mode_range), | ||
1039 | [PINCTRL_PIN_REG_DIR] = MTK_RANGE(mt6765_pin_dir_range), | ||
1040 | [PINCTRL_PIN_REG_DI] = MTK_RANGE(mt6765_pin_di_range), | ||
1041 | [PINCTRL_PIN_REG_DO] = MTK_RANGE(mt6765_pin_do_range), | ||
1042 | [PINCTRL_PIN_REG_SMT] = MTK_RANGE(mt6765_pin_smt_range), | ||
1043 | [PINCTRL_PIN_REG_PD] = MTK_RANGE(mt6765_pin_pd_range), | ||
1044 | [PINCTRL_PIN_REG_PU] = MTK_RANGE(mt6765_pin_pu_range), | ||
1045 | [PINCTRL_PIN_REG_TDSEL] = MTK_RANGE(mt6765_pin_tdsel_range), | ||
1046 | [PINCTRL_PIN_REG_RDSEL] = MTK_RANGE(mt6765_pin_rdsel_range), | ||
1047 | [PINCTRL_PIN_REG_DRV] = MTK_RANGE(mt6765_pin_drv_range), | ||
1048 | [PINCTRL_PIN_REG_PUPD] = MTK_RANGE(mt6765_pin_pupd_range), | ||
1049 | [PINCTRL_PIN_REG_R0] = MTK_RANGE(mt6765_pin_r0_range), | ||
1050 | [PINCTRL_PIN_REG_R1] = MTK_RANGE(mt6765_pin_r1_range), | ||
1051 | [PINCTRL_PIN_REG_IES] = MTK_RANGE(mt6765_pin_ies_range), | ||
1052 | }; | ||
1053 | |||
1054 | static const char * const mt6765_pinctrl_register_base_names[] = { | ||
1055 | "iocfg0", "iocfg1", "iocfg2", "iocfg3", "iocfg4", "iocfg5", | ||
1056 | "iocfg6", "iocfg7", | ||
1057 | }; | ||
1058 | |||
1059 | static const struct mtk_pin_soc mt6765_data = { | ||
1060 | .reg_cal = mt6765_reg_cals, | ||
1061 | .pins = mtk_pins_mt6765, | ||
1062 | .npins = ARRAY_SIZE(mtk_pins_mt6765), | ||
1063 | .ngrps = ARRAY_SIZE(mtk_pins_mt6765), | ||
1064 | .gpio_m = 0, | ||
1065 | .ies_present = true, | ||
1066 | .base_names = mt6765_pinctrl_register_base_names, | ||
1067 | .nbase_names = ARRAY_SIZE(mt6765_pinctrl_register_base_names), | ||
1068 | .bias_disable_set = mtk_pinconf_bias_disable_set, | ||
1069 | .bias_disable_get = mtk_pinconf_bias_disable_get, | ||
1070 | .bias_set = mtk_pinconf_bias_set, | ||
1071 | .bias_get = mtk_pinconf_bias_get, | ||
1072 | .drive_set = mtk_pinconf_drive_set_rev1, | ||
1073 | .drive_get = mtk_pinconf_drive_get_rev1, | ||
1074 | .adv_pull_get = mtk_pinconf_adv_pull_get, | ||
1075 | .adv_pull_set = mtk_pinconf_adv_pull_set, | ||
1076 | }; | ||
1077 | |||
1078 | static const struct of_device_id mt6765_pinctrl_of_match[] = { | ||
1079 | { .compatible = "mediatek,mt6765-pinctrl", }, | ||
1080 | { } | ||
1081 | }; | ||
1082 | |||
1083 | static int mt6765_pinctrl_probe(struct platform_device *pdev) | ||
1084 | { | ||
1085 | return mtk_paris_pinctrl_probe(pdev, &mt6765_data); | ||
1086 | } | ||
1087 | |||
1088 | static struct platform_driver mt6765_pinctrl_driver = { | ||
1089 | .driver = { | ||
1090 | .name = "mt6765-pinctrl", | ||
1091 | .of_match_table = mt6765_pinctrl_of_match, | ||
1092 | }, | ||
1093 | .probe = mt6765_pinctrl_probe, | ||
1094 | }; | ||
1095 | |||
1096 | static int __init mt6765_pinctrl_init(void) | ||
1097 | { | ||
1098 | return platform_driver_register(&mt6765_pinctrl_driver); | ||
1099 | } | ||
1100 | arch_initcall(mt6765_pinctrl_init); | ||
diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-mt6765.h b/drivers/pinctrl/mediatek/pinctrl-mtk-mt6765.h new file mode 100644 index 000000000000..772563720461 --- /dev/null +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-mt6765.h | |||
@@ -0,0 +1,1754 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
2 | /* | ||
3 | * Copyright (C) 2018 MediaTek Inc. | ||
4 | * | ||
5 | * Author: ZH Chen <zh.chen@mediatek.com> | ||
6 | * | ||
7 | */ | ||
8 | |||
9 | #ifndef __PINCTRL_MTK_MT6765_H | ||
10 | #define __PINCTRL_MTK_MT6765_H | ||
11 | |||
12 | #include "pinctrl-paris.h" | ||
13 | |||
14 | static struct mtk_pin_desc mtk_pins_mt6765[] = { | ||
15 | MTK_PIN( | ||
16 | 0, "GPIO0", | ||
17 | MTK_EINT_FUNCTION(0, 0), | ||
18 | DRV_GRP4, | ||
19 | MTK_FUNCTION(0, "GPIO0"), | ||
20 | MTK_FUNCTION(1, "UTXD1"), | ||
21 | MTK_FUNCTION(2, "CLKM0"), | ||
22 | MTK_FUNCTION(3, "MD_INT0"), | ||
23 | MTK_FUNCTION(4, "I2S0_MCK"), | ||
24 | MTK_FUNCTION(5, "MD_UTXD1"), | ||
25 | MTK_FUNCTION(6, "TP_GPIO0_AO"), | ||
26 | MTK_FUNCTION(7, "DBG_MON_B9") | ||
27 | ), | ||
28 | MTK_PIN( | ||
29 | 1, "GPIO1", | ||
30 | MTK_EINT_FUNCTION(0, 1), | ||
31 | DRV_GRP4, | ||
32 | MTK_FUNCTION(0, "GPIO1"), | ||
33 | MTK_FUNCTION(1, "URXD1"), | ||
34 | MTK_FUNCTION(2, "CLKM1"), | ||
35 | MTK_FUNCTION(4, "I2S0_BCK"), | ||
36 | MTK_FUNCTION(5, "MD_URXD1"), | ||
37 | MTK_FUNCTION(6, "TP_GPIO1_AO"), | ||
38 | MTK_FUNCTION(7, "DBG_MON_B10") | ||
39 | ), | ||
40 | MTK_PIN( | ||
41 | 2, "GPIO2", | ||
42 | MTK_EINT_FUNCTION(0, 2), | ||
43 | DRV_GRP4, | ||
44 | MTK_FUNCTION(0, "GPIO2"), | ||
45 | MTK_FUNCTION(1, "UCTS0"), | ||
46 | MTK_FUNCTION(2, "CLKM2"), | ||
47 | MTK_FUNCTION(3, "UTXD1"), | ||
48 | MTK_FUNCTION(4, "I2S0_LRCK"), | ||
49 | MTK_FUNCTION(5, "ANT_SEL6"), | ||
50 | MTK_FUNCTION(6, "TP_GPIO2_AO"), | ||
51 | MTK_FUNCTION(7, "DBG_MON_B11") | ||
52 | ), | ||
53 | MTK_PIN( | ||
54 | 3, "GPIO3", | ||
55 | MTK_EINT_FUNCTION(0, 3), | ||
56 | DRV_GRP4, | ||
57 | MTK_FUNCTION(0, "GPIO3"), | ||
58 | MTK_FUNCTION(1, "URTS0"), | ||
59 | MTK_FUNCTION(2, "CLKM3"), | ||
60 | MTK_FUNCTION(3, "URXD1"), | ||
61 | MTK_FUNCTION(4, "I2S0_DI"), | ||
62 | MTK_FUNCTION(5, "ANT_SEL7"), | ||
63 | MTK_FUNCTION(6, "TP_GPIO3_AO"), | ||
64 | MTK_FUNCTION(7, "DBG_MON_B12") | ||
65 | ), | ||
66 | MTK_PIN( | ||
67 | 4, "GPIO4", | ||
68 | MTK_EINT_FUNCTION(0, 4), | ||
69 | DRV_GRP4, | ||
70 | MTK_FUNCTION(0, "GPIO4"), | ||
71 | MTK_FUNCTION(1, "SPI1_B_MI"), | ||
72 | MTK_FUNCTION(2, "SCP_SPI1_MI"), | ||
73 | MTK_FUNCTION(3, "UCTS0"), | ||
74 | MTK_FUNCTION(4, "I2S3_MCK"), | ||
75 | MTK_FUNCTION(5, "SSPM_URXD_AO"), | ||
76 | MTK_FUNCTION(6, "TP_GPIO4_AO") | ||
77 | ), | ||
78 | MTK_PIN( | ||
79 | 5, "GPIO5", | ||
80 | MTK_EINT_FUNCTION(0, 5), | ||
81 | DRV_GRP4, | ||
82 | MTK_FUNCTION(0, "GPIO5"), | ||
83 | MTK_FUNCTION(1, "SPI1_B_CSB"), | ||
84 | MTK_FUNCTION(2, "SCP_SPI1_CS"), | ||
85 | MTK_FUNCTION(3, "URTS0"), | ||
86 | MTK_FUNCTION(4, "I2S3_BCK"), | ||
87 | MTK_FUNCTION(5, "SSPM_UTXD_AO"), | ||
88 | MTK_FUNCTION(6, "TP_GPIO5_AO") | ||
89 | ), | ||
90 | MTK_PIN( | ||
91 | 6, "GPIO6", | ||
92 | MTK_EINT_FUNCTION(0, 6), | ||
93 | DRV_GRP4, | ||
94 | MTK_FUNCTION(0, "GPIO6"), | ||
95 | MTK_FUNCTION(1, "SPI1_B_MO"), | ||
96 | MTK_FUNCTION(2, "SCP_SPI1_MO"), | ||
97 | MTK_FUNCTION(3, "PWM0"), | ||
98 | MTK_FUNCTION(4, "I2S3_LRCK"), | ||
99 | MTK_FUNCTION(5, "MD_UTXD0"), | ||
100 | MTK_FUNCTION(6, "TP_GPIO6_AO") | ||
101 | ), | ||
102 | MTK_PIN( | ||
103 | 7, "GPIO7", | ||
104 | MTK_EINT_FUNCTION(0, 7), | ||
105 | DRV_GRP4, | ||
106 | MTK_FUNCTION(0, "GPIO7"), | ||
107 | MTK_FUNCTION(1, "SPI1_B_CLK"), | ||
108 | MTK_FUNCTION(2, "SCP_SPI1_CK"), | ||
109 | MTK_FUNCTION(3, "PWM1"), | ||
110 | MTK_FUNCTION(4, "I2S3_DO"), | ||
111 | MTK_FUNCTION(5, "MD_URXD0"), | ||
112 | MTK_FUNCTION(6, "TP_GPIO7_AO") | ||
113 | ), | ||
114 | MTK_PIN( | ||
115 | 8, "GPIO8", | ||
116 | MTK_EINT_FUNCTION(0, 8), | ||
117 | DRV_GRP4, | ||
118 | MTK_FUNCTION(0, "GPIO8"), | ||
119 | MTK_FUNCTION(1, "UTXD1"), | ||
120 | MTK_FUNCTION(2, "SRCLKENAI0"), | ||
121 | MTK_FUNCTION(3, "MD_INT1_C2K_UIM0_HOT_PLUG"), | ||
122 | MTK_FUNCTION(4, "ANT_SEL3"), | ||
123 | MTK_FUNCTION(5, "MFG_JTAG_TRSTN"), | ||
124 | MTK_FUNCTION(6, "I2S2_MCK"), | ||
125 | MTK_FUNCTION(7, "JTRSTN_SEL1") | ||
126 | ), | ||
127 | MTK_PIN( | ||
128 | 9, "GPIO9", | ||
129 | MTK_EINT_FUNCTION(0, 9), | ||
130 | DRV_GRP4, | ||
131 | MTK_FUNCTION(0, "GPIO9"), | ||
132 | MTK_FUNCTION(1, "MD_INT0"), | ||
133 | MTK_FUNCTION(2, "CMMCLK2"), | ||
134 | MTK_FUNCTION(3, "CONN_MCU_TRST_B"), | ||
135 | MTK_FUNCTION(4, "IDDIG"), | ||
136 | MTK_FUNCTION(5, "SDA_6306"), | ||
137 | MTK_FUNCTION(6, "MCUPM_JTAG_TRSTN"), | ||
138 | MTK_FUNCTION(7, "DBG_MON_B22") | ||
139 | ), | ||
140 | MTK_PIN( | ||
141 | 10, "GPIO10", | ||
142 | MTK_EINT_FUNCTION(0, 10), | ||
143 | DRV_GRP4, | ||
144 | MTK_FUNCTION(0, "GPIO10"), | ||
145 | MTK_FUNCTION(1, "MD_INT1_C2K_UIM0_HOT_PLUG"), | ||
146 | MTK_FUNCTION(3, "CONN_MCU_DBGI_N"), | ||
147 | MTK_FUNCTION(4, "SRCLKENAI1"), | ||
148 | MTK_FUNCTION(5, "EXT_FRAME_SYNC"), | ||
149 | MTK_FUNCTION(6, "CMVREF1"), | ||
150 | MTK_FUNCTION(7, "DBG_MON_B23") | ||
151 | ), | ||
152 | MTK_PIN( | ||
153 | 11, "GPIO11", | ||
154 | MTK_EINT_FUNCTION(0, 11), | ||
155 | DRV_GRP4, | ||
156 | MTK_FUNCTION(0, "GPIO11"), | ||
157 | MTK_FUNCTION(1, "MD_INT2_C2K_UIM1_HOT_PLUG"), | ||
158 | MTK_FUNCTION(2, "CLKM3"), | ||
159 | MTK_FUNCTION(3, "ANT_SEL6"), | ||
160 | MTK_FUNCTION(4, "SRCLKENAI0"), | ||
161 | MTK_FUNCTION(5, "EXT_FRAME_SYNC"), | ||
162 | MTK_FUNCTION(6, "UCTS1"), | ||
163 | MTK_FUNCTION(7, "DBG_MON_B24") | ||
164 | ), | ||
165 | MTK_PIN( | ||
166 | 12, "GPIO12", | ||
167 | MTK_EINT_FUNCTION(0, 12), | ||
168 | DRV_GRP4, | ||
169 | MTK_FUNCTION(0, "GPIO12"), | ||
170 | MTK_FUNCTION(1, "PWM0"), | ||
171 | MTK_FUNCTION(2, "SRCLKENAI1"), | ||
172 | MTK_FUNCTION(3, "EXT_FRAME_SYNC"), | ||
173 | MTK_FUNCTION(4, "MD_INT0"), | ||
174 | MTK_FUNCTION(5, "DVFSRC_EXT_REQ"), | ||
175 | MTK_FUNCTION(6, "URTS1") | ||
176 | ), | ||
177 | MTK_PIN( | ||
178 | 13, "GPIO13", | ||
179 | MTK_EINT_FUNCTION(0, 13), | ||
180 | DRV_GRP4, | ||
181 | MTK_FUNCTION(0, "GPIO13"), | ||
182 | MTK_FUNCTION(1, "ANT_SEL0"), | ||
183 | MTK_FUNCTION(2, "SPI4_MI"), | ||
184 | MTK_FUNCTION(3, "SCP_SPI0_MI"), | ||
185 | MTK_FUNCTION(4, "MD_URXD0"), | ||
186 | MTK_FUNCTION(5, "CLKM0"), | ||
187 | MTK_FUNCTION(6, "I2S0_MCK"), | ||
188 | MTK_FUNCTION(7, "DBG_MON_A0") | ||
189 | ), | ||
190 | MTK_PIN( | ||
191 | 14, "GPIO14", | ||
192 | MTK_EINT_FUNCTION(0, 14), | ||
193 | DRV_GRP4, | ||
194 | MTK_FUNCTION(0, "GPIO14"), | ||
195 | MTK_FUNCTION(1, "ANT_SEL1"), | ||
196 | MTK_FUNCTION(2, "SPI4_CSB"), | ||
197 | MTK_FUNCTION(3, "SCP_SPI0_CS"), | ||
198 | MTK_FUNCTION(4, "MD_UTXD0"), | ||
199 | MTK_FUNCTION(5, "CLKM1"), | ||
200 | MTK_FUNCTION(6, "I2S0_BCK"), | ||
201 | MTK_FUNCTION(7, "DBG_MON_A1") | ||
202 | ), | ||
203 | MTK_PIN( | ||
204 | 15, "GPIO15", | ||
205 | MTK_EINT_FUNCTION(0, 15), | ||
206 | DRV_GRP4, | ||
207 | MTK_FUNCTION(0, "GPIO15"), | ||
208 | MTK_FUNCTION(1, "ANT_SEL2"), | ||
209 | MTK_FUNCTION(2, "SPI4_MO"), | ||
210 | MTK_FUNCTION(3, "SCP_SPI0_MO"), | ||
211 | MTK_FUNCTION(4, "MD_URXD1"), | ||
212 | MTK_FUNCTION(5, "CLKM2"), | ||
213 | MTK_FUNCTION(6, "I2S0_LRCK"), | ||
214 | MTK_FUNCTION(7, "DBG_MON_A2") | ||
215 | ), | ||
216 | MTK_PIN( | ||
217 | 16, "GPIO16", | ||
218 | MTK_EINT_FUNCTION(0, 16), | ||
219 | DRV_GRP4, | ||
220 | MTK_FUNCTION(0, "GPIO16"), | ||
221 | MTK_FUNCTION(1, "ANT_SEL3"), | ||
222 | MTK_FUNCTION(2, "SPI4_CLK"), | ||
223 | MTK_FUNCTION(3, "SCP_SPI0_CK"), | ||
224 | MTK_FUNCTION(4, "MD_UTXD1"), | ||
225 | MTK_FUNCTION(5, "CLKM3"), | ||
226 | MTK_FUNCTION(6, "I2S3_MCK"), | ||
227 | MTK_FUNCTION(7, "DBG_MON_A3") | ||
228 | ), | ||
229 | MTK_PIN( | ||
230 | 17, "GPIO17", | ||
231 | MTK_EINT_FUNCTION(0, 17), | ||
232 | DRV_GRP4, | ||
233 | MTK_FUNCTION(0, "GPIO17"), | ||
234 | MTK_FUNCTION(1, "ANT_SEL4"), | ||
235 | MTK_FUNCTION(2, "SPI2_MO"), | ||
236 | MTK_FUNCTION(3, "SCP_SPI0_MO"), | ||
237 | MTK_FUNCTION(4, "PWM1"), | ||
238 | MTK_FUNCTION(5, "IDDIG"), | ||
239 | MTK_FUNCTION(6, "I2S0_DI"), | ||
240 | MTK_FUNCTION(7, "DBG_MON_A4") | ||
241 | ), | ||
242 | MTK_PIN( | ||
243 | 18, "GPIO18", | ||
244 | MTK_EINT_FUNCTION(0, 18), | ||
245 | DRV_GRP4, | ||
246 | MTK_FUNCTION(0, "GPIO18"), | ||
247 | MTK_FUNCTION(1, "ANT_SEL5"), | ||
248 | MTK_FUNCTION(2, "SPI2_CLK"), | ||
249 | MTK_FUNCTION(3, "SCP_SPI0_CK"), | ||
250 | MTK_FUNCTION(4, "MD_INT0"), | ||
251 | MTK_FUNCTION(5, "USB_DRVVBUS"), | ||
252 | MTK_FUNCTION(6, "I2S3_BCK"), | ||
253 | MTK_FUNCTION(7, "DBG_MON_A5") | ||
254 | ), | ||
255 | MTK_PIN( | ||
256 | 19, "GPIO19", | ||
257 | MTK_EINT_FUNCTION(0, 19), | ||
258 | DRV_GRP4, | ||
259 | MTK_FUNCTION(0, "GPIO19"), | ||
260 | MTK_FUNCTION(1, "ANT_SEL6"), | ||
261 | MTK_FUNCTION(2, "SPI2_MI"), | ||
262 | MTK_FUNCTION(3, "SCP_SPI0_MI"), | ||
263 | MTK_FUNCTION(4, "MD_INT2_C2K_UIM1_HOT_PLUG"), | ||
264 | MTK_FUNCTION(6, "I2S3_LRCK"), | ||
265 | MTK_FUNCTION(7, "DBG_MON_A6") | ||
266 | ), | ||
267 | MTK_PIN( | ||
268 | 20, "GPIO20", | ||
269 | MTK_EINT_FUNCTION(0, 20), | ||
270 | DRV_GRP4, | ||
271 | MTK_FUNCTION(0, "GPIO20"), | ||
272 | MTK_FUNCTION(1, "ANT_SEL7"), | ||
273 | MTK_FUNCTION(2, "SPI2_CSB"), | ||
274 | MTK_FUNCTION(3, "SCP_SPI0_CS"), | ||
275 | MTK_FUNCTION(4, "MD_INT1_C2K_UIM0_HOT_PLUG"), | ||
276 | MTK_FUNCTION(5, "CMMCLK3"), | ||
277 | MTK_FUNCTION(6, "I2S3_DO"), | ||
278 | MTK_FUNCTION(7, "DBG_MON_A7") | ||
279 | ), | ||
280 | MTK_PIN( | ||
281 | 21, "GPIO21", | ||
282 | MTK_EINT_FUNCTION(0, 21), | ||
283 | DRV_GRP4, | ||
284 | MTK_FUNCTION(0, "GPIO21"), | ||
285 | MTK_FUNCTION(1, "SPI3_MI"), | ||
286 | MTK_FUNCTION(2, "SRCLKENAI1"), | ||
287 | MTK_FUNCTION(3, "DAP_MD32_SWD"), | ||
288 | MTK_FUNCTION(4, "CMVREF0"), | ||
289 | MTK_FUNCTION(5, "SCP_SPI0_MI"), | ||
290 | MTK_FUNCTION(6, "I2S2_MCK"), | ||
291 | MTK_FUNCTION(7, "DBG_MON_A8") | ||
292 | ), | ||
293 | MTK_PIN( | ||
294 | 22, "GPIO22", | ||
295 | MTK_EINT_FUNCTION(0, 22), | ||
296 | DRV_GRP4, | ||
297 | MTK_FUNCTION(0, "GPIO22"), | ||
298 | MTK_FUNCTION(1, "SPI3_CSB"), | ||
299 | MTK_FUNCTION(2, "SRCLKENAI0"), | ||
300 | MTK_FUNCTION(3, "DAP_MD32_SWCK"), | ||
301 | MTK_FUNCTION(4, "CMVREF1"), | ||
302 | MTK_FUNCTION(5, "SCP_SPI0_CS"), | ||
303 | MTK_FUNCTION(6, "I2S2_BCK"), | ||
304 | MTK_FUNCTION(7, "DBG_MON_A9") | ||
305 | ), | ||
306 | MTK_PIN( | ||
307 | 23, "GPIO23", | ||
308 | MTK_EINT_FUNCTION(0, 23), | ||
309 | DRV_GRP4, | ||
310 | MTK_FUNCTION(0, "GPIO23"), | ||
311 | MTK_FUNCTION(1, "SPI3_MO"), | ||
312 | MTK_FUNCTION(2, "PWM0"), | ||
313 | MTK_FUNCTION(3, "KPROW7"), | ||
314 | MTK_FUNCTION(4, "ANT_SEL3"), | ||
315 | MTK_FUNCTION(5, "SCP_SPI0_MO"), | ||
316 | MTK_FUNCTION(6, "I2S2_LRCK"), | ||
317 | MTK_FUNCTION(7, "DBG_MON_A10") | ||
318 | ), | ||
319 | MTK_PIN( | ||
320 | 24, "GPIO24", | ||
321 | MTK_EINT_FUNCTION(0, 24), | ||
322 | DRV_GRP4, | ||
323 | MTK_FUNCTION(0, "GPIO24"), | ||
324 | MTK_FUNCTION(1, "SPI3_CLK"), | ||
325 | MTK_FUNCTION(2, "UDI_TCK"), | ||
326 | MTK_FUNCTION(3, "IO_JTAG_TCK"), | ||
327 | MTK_FUNCTION(4, "SSPM_JTAG_TCK"), | ||
328 | MTK_FUNCTION(5, "SCP_SPI0_CK"), | ||
329 | MTK_FUNCTION(6, "I2S2_DI"), | ||
330 | MTK_FUNCTION(7, "DBG_MON_A11") | ||
331 | ), | ||
332 | MTK_PIN( | ||
333 | 25, "GPIO25", | ||
334 | MTK_EINT_FUNCTION(0, 25), | ||
335 | DRV_GRP4, | ||
336 | MTK_FUNCTION(0, "GPIO25"), | ||
337 | MTK_FUNCTION(1, "SPI1_A_MI"), | ||
338 | MTK_FUNCTION(2, "UDI_TMS"), | ||
339 | MTK_FUNCTION(3, "IO_JTAG_TMS"), | ||
340 | MTK_FUNCTION(4, "SSPM_JTAG_TMS"), | ||
341 | MTK_FUNCTION(5, "KPROW3"), | ||
342 | MTK_FUNCTION(6, "I2S1_MCK"), | ||
343 | MTK_FUNCTION(7, "DBG_MON_A12") | ||
344 | ), | ||
345 | MTK_PIN( | ||
346 | 26, "GPIO26", | ||
347 | MTK_EINT_FUNCTION(0, 26), | ||
348 | DRV_GRP4, | ||
349 | MTK_FUNCTION(0, "GPIO26"), | ||
350 | MTK_FUNCTION(1, "SPI1_A_CSB"), | ||
351 | MTK_FUNCTION(2, "UDI_TDI"), | ||
352 | MTK_FUNCTION(3, "IO_JTAG_TDI"), | ||
353 | MTK_FUNCTION(4, "SSPM_JTAG_TDI"), | ||
354 | MTK_FUNCTION(5, "KPROW4"), | ||
355 | MTK_FUNCTION(6, "I2S1_BCK"), | ||
356 | MTK_FUNCTION(7, "DBG_MON_A13") | ||
357 | ), | ||
358 | MTK_PIN( | ||
359 | 27, "GPIO27", | ||
360 | MTK_EINT_FUNCTION(0, 27), | ||
361 | DRV_GRP4, | ||
362 | MTK_FUNCTION(0, "GPIO27"), | ||
363 | MTK_FUNCTION(1, "SPI1_A_MO"), | ||
364 | MTK_FUNCTION(2, "UDI_TDO"), | ||
365 | MTK_FUNCTION(3, "IO_JTAG_TDO"), | ||
366 | MTK_FUNCTION(4, "SSPM_JTAG_TDO"), | ||
367 | MTK_FUNCTION(5, "KPROW5"), | ||
368 | MTK_FUNCTION(6, "I2S1_LRCK"), | ||
369 | MTK_FUNCTION(7, "DBG_MON_A14") | ||
370 | ), | ||
371 | MTK_PIN( | ||
372 | 28, "GPIO28", | ||
373 | MTK_EINT_FUNCTION(0, 28), | ||
374 | DRV_GRP4, | ||
375 | MTK_FUNCTION(0, "GPIO28"), | ||
376 | MTK_FUNCTION(1, "SPI1_A_CLK"), | ||
377 | MTK_FUNCTION(2, "UDI_NTRST"), | ||
378 | MTK_FUNCTION(3, "IO_JTAG_TRSTN"), | ||
379 | MTK_FUNCTION(4, "SSPM_JTAG_TRSTN"), | ||
380 | MTK_FUNCTION(5, "KPROW6"), | ||
381 | MTK_FUNCTION(6, "I2S1_DO"), | ||
382 | MTK_FUNCTION(7, "DBG_MON_A15") | ||
383 | ), | ||
384 | MTK_PIN( | ||
385 | 29, "GPIO29", | ||
386 | MTK_EINT_FUNCTION(0, 29), | ||
387 | DRV_GRP4, | ||
388 | MTK_FUNCTION(0, "GPIO29"), | ||
389 | MTK_FUNCTION(1, "MSDC1_CLK"), | ||
390 | MTK_FUNCTION(2, "IO_JTAG_TCK"), | ||
391 | MTK_FUNCTION(3, "UDI_TCK"), | ||
392 | MTK_FUNCTION(4, "CONN_DSP_JCK"), | ||
393 | MTK_FUNCTION(5, "SSPM_JTAG_TCK"), | ||
394 | MTK_FUNCTION(6, "CONN_MCU_AICE_TCKC"), | ||
395 | MTK_FUNCTION(7, "DAP_MD32_SWCK") | ||
396 | ), | ||
397 | MTK_PIN( | ||
398 | 30, "GPIO30", | ||
399 | MTK_EINT_FUNCTION(0, 30), | ||
400 | DRV_GRP4, | ||
401 | MTK_FUNCTION(0, "GPIO30"), | ||
402 | MTK_FUNCTION(1, "MSDC1_CMD"), | ||
403 | MTK_FUNCTION(2, "IO_JTAG_TMS"), | ||
404 | MTK_FUNCTION(3, "UDI_TMS"), | ||
405 | MTK_FUNCTION(4, "CONN_DSP_JMS"), | ||
406 | MTK_FUNCTION(5, "SSPM_JTAG_TMS"), | ||
407 | MTK_FUNCTION(6, "CONN_MCU_AICE_TMSC"), | ||
408 | MTK_FUNCTION(7, "DAP_MD32_SWD") | ||
409 | ), | ||
410 | MTK_PIN( | ||
411 | 31, "GPIO31", | ||
412 | MTK_EINT_FUNCTION(0, 31), | ||
413 | DRV_GRP4, | ||
414 | MTK_FUNCTION(0, "GPIO31"), | ||
415 | MTK_FUNCTION(1, "MSDC1_DAT3") | ||
416 | ), | ||
417 | MTK_PIN( | ||
418 | 32, "GPIO32", | ||
419 | MTK_EINT_FUNCTION(0, 32), | ||
420 | DRV_GRP4, | ||
421 | MTK_FUNCTION(0, "GPIO32"), | ||
422 | MTK_FUNCTION(1, "MSDC1_DAT0"), | ||
423 | MTK_FUNCTION(2, "IO_JTAG_TDI"), | ||
424 | MTK_FUNCTION(3, "UDI_TDI"), | ||
425 | MTK_FUNCTION(4, "CONN_DSP_JDI"), | ||
426 | MTK_FUNCTION(5, "SSPM_JTAG_TDI") | ||
427 | ), | ||
428 | MTK_PIN( | ||
429 | 33, "GPIO33", | ||
430 | MTK_EINT_FUNCTION(0, 33), | ||
431 | DRV_GRP4, | ||
432 | MTK_FUNCTION(0, "GPIO33"), | ||
433 | MTK_FUNCTION(1, "MSDC1_DAT2"), | ||
434 | MTK_FUNCTION(2, "IO_JTAG_TRSTN"), | ||
435 | MTK_FUNCTION(3, "UDI_NTRST"), | ||
436 | MTK_FUNCTION(4, "CONN_DSP_JINTP"), | ||
437 | MTK_FUNCTION(5, "SSPM_JTAG_TRSTN") | ||
438 | ), | ||
439 | MTK_PIN( | ||
440 | 34, "GPIO34", | ||
441 | MTK_EINT_FUNCTION(0, 34), | ||
442 | DRV_GRP4, | ||
443 | MTK_FUNCTION(0, "GPIO34"), | ||
444 | MTK_FUNCTION(1, "MSDC1_DAT1"), | ||
445 | MTK_FUNCTION(2, "IO_JTAG_TDO"), | ||
446 | MTK_FUNCTION(3, "UDI_TDO"), | ||
447 | MTK_FUNCTION(4, "CONN_DSP_JDO"), | ||
448 | MTK_FUNCTION(5, "SSPM_JTAG_TDO") | ||
449 | ), | ||
450 | MTK_PIN( | ||
451 | 35, "GPIO35", | ||
452 | MTK_EINT_FUNCTION(0, 35), | ||
453 | DRV_GRP4, | ||
454 | MTK_FUNCTION(0, "GPIO35"), | ||
455 | MTK_FUNCTION(1, "MD1_SIM2_SIO"), | ||
456 | MTK_FUNCTION(2, "CCU_JTAG_TDO"), | ||
457 | MTK_FUNCTION(3, "MD1_SIM1_SIO"), | ||
458 | MTK_FUNCTION(5, "SCP_JTAG_TDO"), | ||
459 | MTK_FUNCTION(6, "CONN_DSP_JDO"), | ||
460 | MTK_FUNCTION(7, "DBG_MON_A16") | ||
461 | ), | ||
462 | MTK_PIN( | ||
463 | 36, "GPIO36", | ||
464 | MTK_EINT_FUNCTION(0, 36), | ||
465 | DRV_GRP0, | ||
466 | MTK_FUNCTION(0, "GPIO36"), | ||
467 | MTK_FUNCTION(1, "MD1_SIM2_SRST"), | ||
468 | MTK_FUNCTION(2, "CCU_JTAG_TMS"), | ||
469 | MTK_FUNCTION(3, "MD1_SIM1_SRST"), | ||
470 | MTK_FUNCTION(4, "CONN_MCU_AICE_TMSC"), | ||
471 | MTK_FUNCTION(5, "SCP_JTAG_TMS"), | ||
472 | MTK_FUNCTION(6, "CONN_DSP_JMS"), | ||
473 | MTK_FUNCTION(7, "DBG_MON_A17") | ||
474 | ), | ||
475 | MTK_PIN( | ||
476 | 37, "GPIO37", | ||
477 | MTK_EINT_FUNCTION(0, 37), | ||
478 | DRV_GRP0, | ||
479 | MTK_FUNCTION(0, "GPIO37"), | ||
480 | MTK_FUNCTION(1, "MD1_SIM2_SCLK"), | ||
481 | MTK_FUNCTION(2, "CCU_JTAG_TDI"), | ||
482 | MTK_FUNCTION(3, "MD1_SIM1_SCLK"), | ||
483 | MTK_FUNCTION(5, "SCP_JTAG_TDI"), | ||
484 | MTK_FUNCTION(6, "CONN_DSP_JDI"), | ||
485 | MTK_FUNCTION(7, "DBG_MON_A18") | ||
486 | ), | ||
487 | MTK_PIN( | ||
488 | 38, "GPIO38", | ||
489 | MTK_EINT_FUNCTION(0, 38), | ||
490 | DRV_GRP0, | ||
491 | MTK_FUNCTION(0, "GPIO38"), | ||
492 | MTK_FUNCTION(1, "MD1_SIM1_SCLK"), | ||
493 | MTK_FUNCTION(3, "MD1_SIM2_SCLK"), | ||
494 | MTK_FUNCTION(7, "DBG_MON_A19") | ||
495 | ), | ||
496 | MTK_PIN( | ||
497 | 39, "GPIO39", | ||
498 | MTK_EINT_FUNCTION(0, 39), | ||
499 | DRV_GRP0, | ||
500 | MTK_FUNCTION(0, "GPIO39"), | ||
501 | MTK_FUNCTION(1, "MD1_SIM1_SRST"), | ||
502 | MTK_FUNCTION(2, "CCU_JTAG_TCK"), | ||
503 | MTK_FUNCTION(3, "MD1_SIM2_SRST"), | ||
504 | MTK_FUNCTION(4, "CONN_MCU_AICE_TCKC"), | ||
505 | MTK_FUNCTION(5, "SCP_JTAG_TCK"), | ||
506 | MTK_FUNCTION(6, "CONN_DSP_JCK"), | ||
507 | MTK_FUNCTION(7, "DBG_MON_A20") | ||
508 | ), | ||
509 | MTK_PIN( | ||
510 | 40, "GPIO40", | ||
511 | MTK_EINT_FUNCTION(0, 40), | ||
512 | DRV_GRP0, | ||
513 | MTK_FUNCTION(0, "GPIO40"), | ||
514 | MTK_FUNCTION(1, "MD1_SIM1_SIO"), | ||
515 | MTK_FUNCTION(2, "CCU_JTAG_TRST"), | ||
516 | MTK_FUNCTION(3, "MD1_SIM2_SIO"), | ||
517 | MTK_FUNCTION(5, "SCP_JTAG_TRSTN"), | ||
518 | MTK_FUNCTION(6, "CONN_DSP_JINTP"), | ||
519 | MTK_FUNCTION(7, "DBG_MON_A21") | ||
520 | ), | ||
521 | MTK_PIN( | ||
522 | 41, "GPIO41", | ||
523 | MTK_EINT_FUNCTION(0, 41), | ||
524 | DRV_GRP4, | ||
525 | MTK_FUNCTION(0, "GPIO41"), | ||
526 | MTK_FUNCTION(1, "IDDIG"), | ||
527 | MTK_FUNCTION(2, "URXD1"), | ||
528 | MTK_FUNCTION(3, "UCTS0"), | ||
529 | MTK_FUNCTION(4, "KPCOL2"), | ||
530 | MTK_FUNCTION(5, "SSPM_UTXD_AO"), | ||
531 | MTK_FUNCTION(6, "MD_INT0"), | ||
532 | MTK_FUNCTION(7, "DBG_MON_A22") | ||
533 | ), | ||
534 | MTK_PIN( | ||
535 | 42, "GPIO42", | ||
536 | MTK_EINT_FUNCTION(0, 42), | ||
537 | DRV_GRP4, | ||
538 | MTK_FUNCTION(0, "GPIO42"), | ||
539 | MTK_FUNCTION(1, "USB_DRVVBUS"), | ||
540 | MTK_FUNCTION(2, "UTXD1"), | ||
541 | MTK_FUNCTION(3, "URTS0"), | ||
542 | MTK_FUNCTION(4, "KPROW2"), | ||
543 | MTK_FUNCTION(5, "SSPM_URXD_AO"), | ||
544 | MTK_FUNCTION(6, "MD_INT1_C2K_UIM0_HOT_PLUG"), | ||
545 | MTK_FUNCTION(7, "DBG_MON_A23") | ||
546 | ), | ||
547 | MTK_PIN( | ||
548 | 43, "GPIO43", | ||
549 | MTK_EINT_FUNCTION(0, 43), | ||
550 | DRV_GRP4, | ||
551 | MTK_FUNCTION(0, "GPIO43"), | ||
552 | MTK_FUNCTION(1, "DISP_PWM"), | ||
553 | MTK_FUNCTION(7, "DBG_MON_A24") | ||
554 | ), | ||
555 | MTK_PIN( | ||
556 | 44, "GPIO44", | ||
557 | MTK_EINT_FUNCTION(0, 44), | ||
558 | DRV_GRP4, | ||
559 | MTK_FUNCTION(0, "GPIO44"), | ||
560 | MTK_FUNCTION(1, "DSI_TE"), | ||
561 | MTK_FUNCTION(7, "DBG_MON_A25") | ||
562 | ), | ||
563 | MTK_PIN( | ||
564 | 45, "GPIO45", | ||
565 | MTK_EINT_FUNCTION(0, 45), | ||
566 | DRV_GRP4, | ||
567 | MTK_FUNCTION(0, "GPIO45"), | ||
568 | MTK_FUNCTION(1, "LCM_RST"), | ||
569 | MTK_FUNCTION(7, "DBG_MON_A26") | ||
570 | ), | ||
571 | MTK_PIN( | ||
572 | 46, "GPIO46", | ||
573 | MTK_EINT_FUNCTION(0, 46), | ||
574 | DRV_GRP4, | ||
575 | MTK_FUNCTION(0, "GPIO46"), | ||
576 | MTK_FUNCTION(1, "MD_INT2_C2K_UIM1_HOT_PLUG"), | ||
577 | MTK_FUNCTION(2, "UCTS0"), | ||
578 | MTK_FUNCTION(3, "UCTS1"), | ||
579 | MTK_FUNCTION(4, "IDDIG"), | ||
580 | MTK_FUNCTION(5, "SCL_6306"), | ||
581 | MTK_FUNCTION(6, "TP_UCTS1_AO"), | ||
582 | MTK_FUNCTION(7, "DBG_MON_A27") | ||
583 | ), | ||
584 | MTK_PIN( | ||
585 | 47, "GPIO47", | ||
586 | MTK_EINT_FUNCTION(0, 47), | ||
587 | DRV_GRP4, | ||
588 | MTK_FUNCTION(0, "GPIO47"), | ||
589 | MTK_FUNCTION(1, "MD_INT1_C2K_UIM0_HOT_PLUG"), | ||
590 | MTK_FUNCTION(2, "URTS0"), | ||
591 | MTK_FUNCTION(3, "URTS1"), | ||
592 | MTK_FUNCTION(4, "USB_DRVVBUS"), | ||
593 | MTK_FUNCTION(5, "SDA_6306"), | ||
594 | MTK_FUNCTION(6, "TP_URTS1_AO"), | ||
595 | MTK_FUNCTION(7, "DBG_MON_A28") | ||
596 | ), | ||
597 | MTK_PIN( | ||
598 | 48, "GPIO48", | ||
599 | MTK_EINT_FUNCTION(0, 48), | ||
600 | DRV_GRP4, | ||
601 | MTK_FUNCTION(0, "GPIO48"), | ||
602 | MTK_FUNCTION(1, "SCL5"), | ||
603 | MTK_FUNCTION(7, "DBG_MON_A29") | ||
604 | ), | ||
605 | MTK_PIN( | ||
606 | 49, "GPIO49", | ||
607 | MTK_EINT_FUNCTION(0, 49), | ||
608 | DRV_GRP4, | ||
609 | MTK_FUNCTION(0, "GPIO49"), | ||
610 | MTK_FUNCTION(1, "SDA5"), | ||
611 | MTK_FUNCTION(7, "DBG_MON_A30") | ||
612 | ), | ||
613 | MTK_PIN( | ||
614 | 50, "GPIO50", | ||
615 | MTK_EINT_FUNCTION(0, 50), | ||
616 | DRV_GRP4, | ||
617 | MTK_FUNCTION(0, "GPIO50"), | ||
618 | MTK_FUNCTION(1, "SCL3"), | ||
619 | MTK_FUNCTION(2, "URXD1"), | ||
620 | MTK_FUNCTION(3, "MD_URXD1"), | ||
621 | MTK_FUNCTION(4, "SSPM_URXD_AO"), | ||
622 | MTK_FUNCTION(5, "IDDIG"), | ||
623 | MTK_FUNCTION(6, "TP_URXD1_AO"), | ||
624 | MTK_FUNCTION(7, "DBG_MON_A31") | ||
625 | ), | ||
626 | MTK_PIN( | ||
627 | 51, "GPIO51", | ||
628 | MTK_EINT_FUNCTION(0, 51), | ||
629 | DRV_GRP4, | ||
630 | MTK_FUNCTION(0, "GPIO51"), | ||
631 | MTK_FUNCTION(1, "SDA3"), | ||
632 | MTK_FUNCTION(2, "UTXD1"), | ||
633 | MTK_FUNCTION(3, "MD_UTXD1"), | ||
634 | MTK_FUNCTION(4, "SSPM_UTXD_AO"), | ||
635 | MTK_FUNCTION(5, "USB_DRVVBUS"), | ||
636 | MTK_FUNCTION(6, "TP_UTXD1_AO"), | ||
637 | MTK_FUNCTION(7, "DBG_MON_A32") | ||
638 | ), | ||
639 | MTK_PIN( | ||
640 | 52, "GPIO52", | ||
641 | MTK_EINT_FUNCTION(0, 52), | ||
642 | DRV_GRP4, | ||
643 | MTK_FUNCTION(0, "GPIO52"), | ||
644 | MTK_FUNCTION(1, "BPI_BUS15") | ||
645 | ), | ||
646 | MTK_PIN( | ||
647 | 53, "GPIO53", | ||
648 | MTK_EINT_FUNCTION(0, 53), | ||
649 | DRV_GRP4, | ||
650 | MTK_FUNCTION(0, "GPIO53"), | ||
651 | MTK_FUNCTION(1, "BPI_BUS13") | ||
652 | ), | ||
653 | MTK_PIN( | ||
654 | 54, "GPIO54", | ||
655 | MTK_EINT_FUNCTION(0, 54), | ||
656 | DRV_GRP4, | ||
657 | MTK_FUNCTION(0, "GPIO54"), | ||
658 | MTK_FUNCTION(1, "BPI_BUS12") | ||
659 | ), | ||
660 | MTK_PIN( | ||
661 | 55, "GPIO55", | ||
662 | MTK_EINT_FUNCTION(0, 55), | ||
663 | DRV_GRP4, | ||
664 | MTK_FUNCTION(0, "GPIO55"), | ||
665 | MTK_FUNCTION(1, "BPI_BUS8") | ||
666 | ), | ||
667 | MTK_PIN( | ||
668 | 56, "GPIO56", | ||
669 | MTK_EINT_FUNCTION(0, 56), | ||
670 | DRV_GRP4, | ||
671 | MTK_FUNCTION(0, "GPIO56"), | ||
672 | MTK_FUNCTION(1, "BPI_BUS9"), | ||
673 | MTK_FUNCTION(2, "SCL_6306") | ||
674 | ), | ||
675 | MTK_PIN( | ||
676 | 57, "GPIO57", | ||
677 | MTK_EINT_FUNCTION(0, 57), | ||
678 | DRV_GRP4, | ||
679 | MTK_FUNCTION(0, "GPIO57"), | ||
680 | MTK_FUNCTION(1, "BPI_BUS10"), | ||
681 | MTK_FUNCTION(2, "SDA_6306") | ||
682 | ), | ||
683 | MTK_PIN( | ||
684 | 58, "GPIO58", | ||
685 | MTK_EINT_FUNCTION(0, 58), | ||
686 | DRV_GRP4, | ||
687 | MTK_FUNCTION(0, "GPIO58"), | ||
688 | MTK_FUNCTION(1, "RFIC0_BSI_D2") | ||
689 | ), | ||
690 | MTK_PIN( | ||
691 | 59, "GPIO59", | ||
692 | MTK_EINT_FUNCTION(0, 59), | ||
693 | DRV_GRP4, | ||
694 | MTK_FUNCTION(0, "GPIO59"), | ||
695 | MTK_FUNCTION(1, "RFIC0_BSI_D1") | ||
696 | ), | ||
697 | MTK_PIN( | ||
698 | 60, "GPIO60", | ||
699 | MTK_EINT_FUNCTION(0, 60), | ||
700 | DRV_GRP4, | ||
701 | MTK_FUNCTION(0, "GPIO60"), | ||
702 | MTK_FUNCTION(1, "RFIC0_BSI_D0") | ||
703 | ), | ||
704 | MTK_PIN( | ||
705 | 61, "GPIO61", | ||
706 | MTK_EINT_FUNCTION(0, 61), | ||
707 | DRV_GRP4, | ||
708 | MTK_FUNCTION(0, "GPIO61"), | ||
709 | MTK_FUNCTION(1, "MIPI1_SDATA") | ||
710 | ), | ||
711 | MTK_PIN( | ||
712 | 62, "GPIO62", | ||
713 | MTK_EINT_FUNCTION(0, 62), | ||
714 | DRV_GRP4, | ||
715 | MTK_FUNCTION(0, "GPIO62"), | ||
716 | MTK_FUNCTION(1, "MIPI1_SCLK") | ||
717 | ), | ||
718 | MTK_PIN( | ||
719 | 63, "GPIO63", | ||
720 | MTK_EINT_FUNCTION(0, 63), | ||
721 | DRV_GRP4, | ||
722 | MTK_FUNCTION(0, "GPIO63"), | ||
723 | MTK_FUNCTION(1, "MIPI0_SDATA") | ||
724 | ), | ||
725 | MTK_PIN( | ||
726 | 64, "GPIO64", | ||
727 | MTK_EINT_FUNCTION(0, 64), | ||
728 | DRV_GRP4, | ||
729 | MTK_FUNCTION(0, "GPIO64"), | ||
730 | MTK_FUNCTION(1, "MIPI0_SCLK") | ||
731 | ), | ||
732 | MTK_PIN( | ||
733 | 65, "GPIO65", | ||
734 | MTK_EINT_FUNCTION(0, 65), | ||
735 | DRV_GRP4, | ||
736 | MTK_FUNCTION(0, "GPIO65"), | ||
737 | MTK_FUNCTION(1, "MIPI3_SDATA"), | ||
738 | MTK_FUNCTION(2, "BPI_BUS16") | ||
739 | ), | ||
740 | MTK_PIN( | ||
741 | 66, "GPIO66", | ||
742 | MTK_EINT_FUNCTION(0, 66), | ||
743 | DRV_GRP4, | ||
744 | MTK_FUNCTION(0, "GPIO66"), | ||
745 | MTK_FUNCTION(1, "MIPI3_SCLK"), | ||
746 | MTK_FUNCTION(2, "BPI_BUS17") | ||
747 | ), | ||
748 | MTK_PIN( | ||
749 | 67, "GPIO67", | ||
750 | MTK_EINT_FUNCTION(0, 67), | ||
751 | DRV_GRP4, | ||
752 | MTK_FUNCTION(0, "GPIO67"), | ||
753 | MTK_FUNCTION(1, "MIPI2_SDATA") | ||
754 | ), | ||
755 | MTK_PIN( | ||
756 | 68, "GPIO68", | ||
757 | MTK_EINT_FUNCTION(0, 68), | ||
758 | DRV_GRP4, | ||
759 | MTK_FUNCTION(0, "GPIO68"), | ||
760 | MTK_FUNCTION(1, "MIPI2_SCLK") | ||
761 | ), | ||
762 | MTK_PIN( | ||
763 | 69, "GPIO69", | ||
764 | MTK_EINT_FUNCTION(0, 69), | ||
765 | DRV_GRP4, | ||
766 | MTK_FUNCTION(0, "GPIO69"), | ||
767 | MTK_FUNCTION(1, "BPI_BUS7") | ||
768 | ), | ||
769 | MTK_PIN( | ||
770 | 70, "GPIO70", | ||
771 | MTK_EINT_FUNCTION(0, 70), | ||
772 | DRV_GRP4, | ||
773 | MTK_FUNCTION(0, "GPIO70"), | ||
774 | MTK_FUNCTION(1, "BPI_BUS6") | ||
775 | ), | ||
776 | MTK_PIN( | ||
777 | 71, "GPIO71", | ||
778 | MTK_EINT_FUNCTION(0, 71), | ||
779 | DRV_GRP4, | ||
780 | MTK_FUNCTION(0, "GPIO71"), | ||
781 | MTK_FUNCTION(1, "BPI_BUS5") | ||
782 | ), | ||
783 | MTK_PIN( | ||
784 | 72, "GPIO72", | ||
785 | MTK_EINT_FUNCTION(0, 72), | ||
786 | DRV_GRP4, | ||
787 | MTK_FUNCTION(0, "GPIO72"), | ||
788 | MTK_FUNCTION(1, "BPI_BUS4") | ||
789 | ), | ||
790 | MTK_PIN( | ||
791 | 73, "GPIO73", | ||
792 | MTK_EINT_FUNCTION(0, 73), | ||
793 | DRV_GRP4, | ||
794 | MTK_FUNCTION(0, "GPIO73"), | ||
795 | MTK_FUNCTION(1, "BPI_BUS3") | ||
796 | ), | ||
797 | MTK_PIN( | ||
798 | 74, "GPIO74", | ||
799 | MTK_EINT_FUNCTION(0, 74), | ||
800 | DRV_GRP4, | ||
801 | MTK_FUNCTION(0, "GPIO74"), | ||
802 | MTK_FUNCTION(1, "BPI_BUS2") | ||
803 | ), | ||
804 | MTK_PIN( | ||
805 | 75, "GPIO75", | ||
806 | MTK_EINT_FUNCTION(0, 75), | ||
807 | DRV_GRP4, | ||
808 | MTK_FUNCTION(0, "GPIO75"), | ||
809 | MTK_FUNCTION(1, "BPI_BUS1") | ||
810 | ), | ||
811 | MTK_PIN( | ||
812 | 76, "GPIO76", | ||
813 | MTK_EINT_FUNCTION(0, 76), | ||
814 | DRV_GRP4, | ||
815 | MTK_FUNCTION(0, "GPIO76"), | ||
816 | MTK_FUNCTION(1, "BPI_BUS0") | ||
817 | ), | ||
818 | MTK_PIN( | ||
819 | 77, "GPIO77", | ||
820 | MTK_EINT_FUNCTION(0, 77), | ||
821 | DRV_GRP4, | ||
822 | MTK_FUNCTION(0, "GPIO77"), | ||
823 | MTK_FUNCTION(1, "BPI_BUS14") | ||
824 | ), | ||
825 | MTK_PIN( | ||
826 | 78, "GPIO78", | ||
827 | MTK_EINT_FUNCTION(0, 78), | ||
828 | DRV_GRP4, | ||
829 | MTK_FUNCTION(0, "GPIO78"), | ||
830 | MTK_FUNCTION(1, "BPI_BUS11") | ||
831 | ), | ||
832 | MTK_PIN( | ||
833 | 79, "GPIO79", | ||
834 | MTK_EINT_FUNCTION(0, 79), | ||
835 | DRV_GRP4, | ||
836 | MTK_FUNCTION(0, "GPIO79"), | ||
837 | MTK_FUNCTION(1, "BPI_PA_VM1"), | ||
838 | MTK_FUNCTION(2, "MIPI4_SDATA") | ||
839 | ), | ||
840 | MTK_PIN( | ||
841 | 80, "GPIO80", | ||
842 | MTK_EINT_FUNCTION(0, 80), | ||
843 | DRV_GRP4, | ||
844 | MTK_FUNCTION(0, "GPIO80"), | ||
845 | MTK_FUNCTION(1, "BPI_PA_VM0"), | ||
846 | MTK_FUNCTION(2, "MIPI4_SCLK") | ||
847 | ), | ||
848 | MTK_PIN( | ||
849 | 81, "GPIO81", | ||
850 | MTK_EINT_FUNCTION(0, 81), | ||
851 | DRV_GRP4, | ||
852 | MTK_FUNCTION(0, "GPIO81"), | ||
853 | MTK_FUNCTION(1, "SDA1"), | ||
854 | MTK_FUNCTION(7, "DBG_MON_B0") | ||
855 | ), | ||
856 | MTK_PIN( | ||
857 | 82, "GPIO82", | ||
858 | MTK_EINT_FUNCTION(0, 82), | ||
859 | DRV_GRP4, | ||
860 | MTK_FUNCTION(0, "GPIO82"), | ||
861 | MTK_FUNCTION(1, "SDA0"), | ||
862 | MTK_FUNCTION(7, "DBG_MON_B1") | ||
863 | ), | ||
864 | MTK_PIN( | ||
865 | 83, "GPIO83", | ||
866 | MTK_EINT_FUNCTION(0, 83), | ||
867 | DRV_GRP4, | ||
868 | MTK_FUNCTION(0, "GPIO83"), | ||
869 | MTK_FUNCTION(1, "SCL0"), | ||
870 | MTK_FUNCTION(7, "DBG_MON_B2") | ||
871 | ), | ||
872 | MTK_PIN( | ||
873 | 84, "GPIO84", | ||
874 | MTK_EINT_FUNCTION(0, 84), | ||
875 | DRV_GRP4, | ||
876 | MTK_FUNCTION(0, "GPIO84"), | ||
877 | MTK_FUNCTION(1, "SCL1"), | ||
878 | MTK_FUNCTION(7, "DBG_MON_B3") | ||
879 | ), | ||
880 | MTK_PIN( | ||
881 | 85, "GPIO85", | ||
882 | MTK_EINT_FUNCTION(0, 85), | ||
883 | DRV_GRP4, | ||
884 | MTK_FUNCTION(0, "GPIO85"), | ||
885 | MTK_FUNCTION(1, "RFIC0_BSI_EN") | ||
886 | ), | ||
887 | MTK_PIN( | ||
888 | 86, "GPIO86", | ||
889 | MTK_EINT_FUNCTION(0, 86), | ||
890 | DRV_GRP4, | ||
891 | MTK_FUNCTION(0, "GPIO86"), | ||
892 | MTK_FUNCTION(1, "RFIC0_BSI_CK") | ||
893 | ), | ||
894 | MTK_PIN( | ||
895 | 87, "GPIO87", | ||
896 | MTK_EINT_FUNCTION(0, 87), | ||
897 | DRV_GRP4, | ||
898 | MTK_FUNCTION(0, "GPIO87"), | ||
899 | MTK_FUNCTION(2, "MD_INT1_C2K_UIM0_HOT_PLUG"), | ||
900 | MTK_FUNCTION(3, "CMVREF0"), | ||
901 | MTK_FUNCTION(4, "MD_URXD0"), | ||
902 | MTK_FUNCTION(5, "AGPS_SYNC"), | ||
903 | MTK_FUNCTION(6, "EXT_FRAME_SYNC") | ||
904 | ), | ||
905 | MTK_PIN( | ||
906 | 88, "GPIO88", | ||
907 | MTK_EINT_FUNCTION(0, 88), | ||
908 | DRV_GRP4, | ||
909 | MTK_FUNCTION(0, "GPIO88"), | ||
910 | MTK_FUNCTION(1, "CMMCLK3"), | ||
911 | MTK_FUNCTION(2, "MD_INT2_C2K_UIM1_HOT_PLUG"), | ||
912 | MTK_FUNCTION(3, "CMVREF1"), | ||
913 | MTK_FUNCTION(4, "MD_UTXD0"), | ||
914 | MTK_FUNCTION(5, "AGPS_SYNC"), | ||
915 | MTK_FUNCTION(6, "DVFSRC_EXT_REQ") | ||
916 | ), | ||
917 | MTK_PIN( | ||
918 | 89, "GPIO89", | ||
919 | MTK_EINT_FUNCTION(0, 89), | ||
920 | DRV_GRP4, | ||
921 | MTK_FUNCTION(0, "GPIO89"), | ||
922 | MTK_FUNCTION(1, "SRCLKENAI0"), | ||
923 | MTK_FUNCTION(2, "PWM2"), | ||
924 | MTK_FUNCTION(3, "MD_INT0"), | ||
925 | MTK_FUNCTION(4, "USB_DRVVBUS"), | ||
926 | MTK_FUNCTION(5, "SCL_6306"), | ||
927 | MTK_FUNCTION(6, "TP_GPIO4_AO"), | ||
928 | MTK_FUNCTION(7, "DBG_MON_B21") | ||
929 | ), | ||
930 | MTK_PIN( | ||
931 | 90, "GPIO90", | ||
932 | MTK_EINT_FUNCTION(0, 90), | ||
933 | DRV_GRP4, | ||
934 | MTK_FUNCTION(0, "GPIO90"), | ||
935 | MTK_FUNCTION(1, "URXD1"), | ||
936 | MTK_FUNCTION(2, "PWM0"), | ||
937 | MTK_FUNCTION(3, "MD_INT2_C2K_UIM1_HOT_PLUG"), | ||
938 | MTK_FUNCTION(4, "ANT_SEL4"), | ||
939 | MTK_FUNCTION(5, "USB_DRVVBUS"), | ||
940 | MTK_FUNCTION(6, "I2S2_BCK"), | ||
941 | MTK_FUNCTION(7, "DBG_MON_B4") | ||
942 | ), | ||
943 | MTK_PIN( | ||
944 | 91, "GPIO91", | ||
945 | MTK_EINT_FUNCTION(0, 91), | ||
946 | DRV_GRP4, | ||
947 | MTK_FUNCTION(0, "GPIO91"), | ||
948 | MTK_FUNCTION(1, "KPROW1"), | ||
949 | MTK_FUNCTION(2, "PWM2"), | ||
950 | MTK_FUNCTION(3, "MD_INT0"), | ||
951 | MTK_FUNCTION(4, "ANT_SEL5"), | ||
952 | MTK_FUNCTION(5, "IDDIG"), | ||
953 | MTK_FUNCTION(6, "I2S2_LRCK"), | ||
954 | MTK_FUNCTION(7, "DBG_MON_B5") | ||
955 | ), | ||
956 | MTK_PIN( | ||
957 | 92, "GPIO92", | ||
958 | MTK_EINT_FUNCTION(0, 92), | ||
959 | DRV_GRP4, | ||
960 | MTK_FUNCTION(0, "GPIO92"), | ||
961 | MTK_FUNCTION(1, "KPROW0"), | ||
962 | MTK_FUNCTION(5, "DVFSRC_EXT_REQ"), | ||
963 | MTK_FUNCTION(6, "I2S2_DI"), | ||
964 | MTK_FUNCTION(7, "DBG_MON_B6") | ||
965 | ), | ||
966 | MTK_PIN( | ||
967 | 93, "GPIO93", | ||
968 | MTK_EINT_FUNCTION(0, 93), | ||
969 | DRV_GRP4, | ||
970 | MTK_FUNCTION(0, "GPIO93"), | ||
971 | MTK_FUNCTION(1, "KPCOL0"), | ||
972 | MTK_FUNCTION(7, "DBG_MON_B7") | ||
973 | ), | ||
974 | MTK_PIN( | ||
975 | 94, "GPIO94", | ||
976 | MTK_EINT_FUNCTION(0, 94), | ||
977 | DRV_GRP4, | ||
978 | MTK_FUNCTION(0, "GPIO94"), | ||
979 | MTK_FUNCTION(1, "KPCOL1"), | ||
980 | MTK_FUNCTION(5, "CMFLASH"), | ||
981 | MTK_FUNCTION(6, "CMVREF0"), | ||
982 | MTK_FUNCTION(7, "DBG_MON_B8") | ||
983 | ), | ||
984 | MTK_PIN( | ||
985 | 95, "GPIO95", | ||
986 | MTK_EINT_FUNCTION(0, 95), | ||
987 | DRV_GRP4, | ||
988 | MTK_FUNCTION(0, "GPIO95"), | ||
989 | MTK_FUNCTION(1, "URXD0"), | ||
990 | MTK_FUNCTION(2, "UTXD0"), | ||
991 | MTK_FUNCTION(3, "MD_URXD0"), | ||
992 | MTK_FUNCTION(4, "PTA_RXD"), | ||
993 | MTK_FUNCTION(5, "SSPM_URXD_AO"), | ||
994 | MTK_FUNCTION(6, "WIFI_RXD") | ||
995 | ), | ||
996 | MTK_PIN( | ||
997 | 96, "GPIO96", | ||
998 | MTK_EINT_FUNCTION(0, 96), | ||
999 | DRV_GRP4, | ||
1000 | MTK_FUNCTION(0, "GPIO96"), | ||
1001 | MTK_FUNCTION(1, "UTXD0"), | ||
1002 | MTK_FUNCTION(2, "URXD0"), | ||
1003 | MTK_FUNCTION(3, "MD_UTXD0"), | ||
1004 | MTK_FUNCTION(4, "PTA_TXD"), | ||
1005 | MTK_FUNCTION(5, "SSPM_UTXD_AO"), | ||
1006 | MTK_FUNCTION(6, "WIFI_TXD") | ||
1007 | ), | ||
1008 | MTK_PIN( | ||
1009 | 97, "GPIO97", | ||
1010 | MTK_EINT_FUNCTION(0, 97), | ||
1011 | DRV_GRP4, | ||
1012 | MTK_FUNCTION(0, "GPIO97"), | ||
1013 | MTK_FUNCTION(1, "UCTS0"), | ||
1014 | MTK_FUNCTION(2, "I2S1_MCK"), | ||
1015 | MTK_FUNCTION(3, "CONN_MCU_TDO"), | ||
1016 | MTK_FUNCTION(4, "SPI5_MI"), | ||
1017 | MTK_FUNCTION(5, "SCL_6306"), | ||
1018 | MTK_FUNCTION(6, "MCUPM_JTAG_TDO"), | ||
1019 | MTK_FUNCTION(7, "DBG_MON_B15") | ||
1020 | ), | ||
1021 | MTK_PIN( | ||
1022 | 98, "GPIO98", | ||
1023 | MTK_EINT_FUNCTION(0, 98), | ||
1024 | DRV_GRP4, | ||
1025 | MTK_FUNCTION(0, "GPIO98"), | ||
1026 | MTK_FUNCTION(1, "URTS0"), | ||
1027 | MTK_FUNCTION(2, "I2S1_BCK"), | ||
1028 | MTK_FUNCTION(3, "CONN_MCU_TMS"), | ||
1029 | MTK_FUNCTION(4, "SPI5_CSB"), | ||
1030 | MTK_FUNCTION(6, "MCUPM_JTAG_TMS"), | ||
1031 | MTK_FUNCTION(7, "DBG_MON_B16") | ||
1032 | ), | ||
1033 | MTK_PIN( | ||
1034 | 99, "GPIO99", | ||
1035 | MTK_EINT_FUNCTION(0, 99), | ||
1036 | DRV_GRP4, | ||
1037 | MTK_FUNCTION(0, "GPIO99"), | ||
1038 | MTK_FUNCTION(1, "CMMCLK0"), | ||
1039 | MTK_FUNCTION(4, "AUXIF_CLK"), | ||
1040 | MTK_FUNCTION(5, "PTA_RXD"), | ||
1041 | MTK_FUNCTION(6, "CONN_UART0_RXD"), | ||
1042 | MTK_FUNCTION(7, "DBG_MON_B17") | ||
1043 | ), | ||
1044 | |||
1045 | MTK_PIN( | ||
1046 | 100, "GPIO100", | ||
1047 | MTK_EINT_FUNCTION(0, 100), | ||
1048 | DRV_GRP4, | ||
1049 | MTK_FUNCTION(0, "GPIO100"), | ||
1050 | MTK_FUNCTION(1, "CMMCLK1"), | ||
1051 | MTK_FUNCTION(4, "AUXIF_ST"), | ||
1052 | MTK_FUNCTION(5, "PTA_TXD"), | ||
1053 | MTK_FUNCTION(6, "CONN_UART0_TXD"), | ||
1054 | MTK_FUNCTION(7, "DBG_MON_B18") | ||
1055 | ), | ||
1056 | MTK_PIN( | ||
1057 | 101, "GPIO101", | ||
1058 | MTK_EINT_FUNCTION(0, 101), | ||
1059 | DRV_GRP4, | ||
1060 | MTK_FUNCTION(0, "GPIO101"), | ||
1061 | MTK_FUNCTION(1, "CMFLASH"), | ||
1062 | MTK_FUNCTION(2, "I2S1_LRCK"), | ||
1063 | MTK_FUNCTION(3, "CONN_MCU_TCK"), | ||
1064 | MTK_FUNCTION(4, "SPI5_MO"), | ||
1065 | MTK_FUNCTION(6, "MCUPM_JTAG_TCK"), | ||
1066 | MTK_FUNCTION(7, "DBG_MON_B19") | ||
1067 | ), | ||
1068 | MTK_PIN( | ||
1069 | 102, "GPIO102", | ||
1070 | MTK_EINT_FUNCTION(0, 102), | ||
1071 | DRV_GRP4, | ||
1072 | MTK_FUNCTION(0, "GPIO102"), | ||
1073 | MTK_FUNCTION(1, "CMVREF0"), | ||
1074 | MTK_FUNCTION(2, "I2S1_DO"), | ||
1075 | MTK_FUNCTION(3, "CONN_MCU_TDI"), | ||
1076 | MTK_FUNCTION(4, "SPI5_CLK"), | ||
1077 | MTK_FUNCTION(5, "AGPS_SYNC"), | ||
1078 | MTK_FUNCTION(6, "MCUPM_JTAG_TDI"), | ||
1079 | MTK_FUNCTION(7, "DBG_MON_B20") | ||
1080 | ), | ||
1081 | MTK_PIN( | ||
1082 | 103, "GPIO103", | ||
1083 | MTK_EINT_FUNCTION(0, 103), | ||
1084 | DRV_GRP4, | ||
1085 | MTK_FUNCTION(0, "GPIO103"), | ||
1086 | MTK_FUNCTION(1, "SCL2"), | ||
1087 | MTK_FUNCTION(2, "TP_UTXD1_AO"), | ||
1088 | MTK_FUNCTION(3, "MD_UTXD0"), | ||
1089 | MTK_FUNCTION(4, "MD_UTXD1"), | ||
1090 | MTK_FUNCTION(5, "TP_URTS2_AO"), | ||
1091 | MTK_FUNCTION(6, "WIFI_TXD"), | ||
1092 | MTK_FUNCTION(7, "DBG_MON_B25") | ||
1093 | ), | ||
1094 | MTK_PIN( | ||
1095 | 104, "GPIO104", | ||
1096 | MTK_EINT_FUNCTION(0, 104), | ||
1097 | DRV_GRP4, | ||
1098 | MTK_FUNCTION(0, "GPIO104"), | ||
1099 | MTK_FUNCTION(1, "SDA2"), | ||
1100 | MTK_FUNCTION(2, "TP_URXD1_AO"), | ||
1101 | MTK_FUNCTION(3, "MD_URXD0"), | ||
1102 | MTK_FUNCTION(4, "MD_URXD1"), | ||
1103 | MTK_FUNCTION(5, "TP_UCTS2_AO"), | ||
1104 | MTK_FUNCTION(6, "WIFI_RXD"), | ||
1105 | MTK_FUNCTION(7, "DBG_MON_B26") | ||
1106 | ), | ||
1107 | MTK_PIN( | ||
1108 | 105, "GPIO105", | ||
1109 | MTK_EINT_FUNCTION(0, 105), | ||
1110 | DRV_GRP4, | ||
1111 | MTK_FUNCTION(0, "GPIO105"), | ||
1112 | MTK_FUNCTION(1, "SCL4"), | ||
1113 | MTK_FUNCTION(3, "MD_UTXD1"), | ||
1114 | MTK_FUNCTION(4, "MD_UTXD0"), | ||
1115 | MTK_FUNCTION(5, "TP_UTXD2_AO"), | ||
1116 | MTK_FUNCTION(6, "PTA_TXD"), | ||
1117 | MTK_FUNCTION(7, "DBG_MON_B27") | ||
1118 | ), | ||
1119 | MTK_PIN( | ||
1120 | 106, "GPIO106", | ||
1121 | MTK_EINT_FUNCTION(0, 106), | ||
1122 | DRV_GRP4, | ||
1123 | MTK_FUNCTION(0, "GPIO106"), | ||
1124 | MTK_FUNCTION(1, "SDA4"), | ||
1125 | MTK_FUNCTION(3, "MD_URXD1"), | ||
1126 | MTK_FUNCTION(4, "MD_URXD0"), | ||
1127 | MTK_FUNCTION(5, "TP_URXD2_AO"), | ||
1128 | MTK_FUNCTION(6, "PTA_RXD"), | ||
1129 | MTK_FUNCTION(7, "DBG_MON_B28") | ||
1130 | ), | ||
1131 | MTK_PIN( | ||
1132 | 107, "GPIO107", | ||
1133 | MTK_EINT_FUNCTION(0, 107), | ||
1134 | DRV_GRP4, | ||
1135 | MTK_FUNCTION(0, "GPIO107"), | ||
1136 | MTK_FUNCTION(1, "UTXD1"), | ||
1137 | MTK_FUNCTION(2, "MD_UTXD0"), | ||
1138 | MTK_FUNCTION(3, "SDA_6306"), | ||
1139 | MTK_FUNCTION(4, "KPCOL3"), | ||
1140 | MTK_FUNCTION(5, "CMVREF0"), | ||
1141 | MTK_FUNCTION(6, "URTS0"), | ||
1142 | MTK_FUNCTION(7, "DBG_MON_B29") | ||
1143 | ), | ||
1144 | MTK_PIN( | ||
1145 | 108, "GPIO108", | ||
1146 | MTK_EINT_FUNCTION(0, 108), | ||
1147 | DRV_GRP4, | ||
1148 | MTK_FUNCTION(0, "GPIO108"), | ||
1149 | MTK_FUNCTION(1, "CMMCLK2"), | ||
1150 | MTK_FUNCTION(2, "MD_INT0"), | ||
1151 | MTK_FUNCTION(3, "CONN_MCU_DBGACK_N"), | ||
1152 | MTK_FUNCTION(4, "KPCOL4"), | ||
1153 | MTK_FUNCTION(6, "I2S3_MCK"), | ||
1154 | MTK_FUNCTION(7, "DBG_MON_B30") | ||
1155 | ), | ||
1156 | MTK_PIN( | ||
1157 | 109, "GPIO109", | ||
1158 | MTK_EINT_FUNCTION(0, 109), | ||
1159 | DRV_GRP4, | ||
1160 | MTK_FUNCTION(0, "GPIO109"), | ||
1161 | MTK_FUNCTION(1, "URXD1"), | ||
1162 | MTK_FUNCTION(2, "MD_URXD0"), | ||
1163 | MTK_FUNCTION(3, "ANT_SEL7"), | ||
1164 | MTK_FUNCTION(4, "KPCOL5"), | ||
1165 | MTK_FUNCTION(5, "CMVREF1"), | ||
1166 | MTK_FUNCTION(6, "UCTS0"), | ||
1167 | MTK_FUNCTION(7, "DBG_MON_B31") | ||
1168 | ), | ||
1169 | MTK_PIN( | ||
1170 | 110, "GPIO110", | ||
1171 | MTK_EINT_FUNCTION(0, 110), | ||
1172 | DRV_GRP4, | ||
1173 | MTK_FUNCTION(0, "GPIO110"), | ||
1174 | MTK_FUNCTION(1, "ANT_SEL0"), | ||
1175 | MTK_FUNCTION(2, "CLKM0"), | ||
1176 | MTK_FUNCTION(3, "PWM3"), | ||
1177 | MTK_FUNCTION(4, "MD_INT0"), | ||
1178 | MTK_FUNCTION(5, "IDDIG"), | ||
1179 | MTK_FUNCTION(6, "I2S3_BCK"), | ||
1180 | MTK_FUNCTION(7, "DBG_MON_B13") | ||
1181 | ), | ||
1182 | MTK_PIN( | ||
1183 | 111, "GPIO111", | ||
1184 | MTK_EINT_FUNCTION(0, 111), | ||
1185 | DRV_GRP4, | ||
1186 | MTK_FUNCTION(0, "GPIO111"), | ||
1187 | MTK_FUNCTION(1, "ANT_SEL1"), | ||
1188 | MTK_FUNCTION(2, "CLKM1"), | ||
1189 | MTK_FUNCTION(3, "PWM4"), | ||
1190 | MTK_FUNCTION(4, "PTA_RXD"), | ||
1191 | MTK_FUNCTION(5, "CMVREF0"), | ||
1192 | MTK_FUNCTION(6, "I2S3_LRCK"), | ||
1193 | MTK_FUNCTION(7, "DBG_MON_B14") | ||
1194 | ), | ||
1195 | MTK_PIN( | ||
1196 | 112, "GPIO112", | ||
1197 | MTK_EINT_FUNCTION(0, 112), | ||
1198 | DRV_GRP4, | ||
1199 | MTK_FUNCTION(0, "GPIO112"), | ||
1200 | MTK_FUNCTION(1, "ANT_SEL2"), | ||
1201 | MTK_FUNCTION(2, "CLKM2"), | ||
1202 | MTK_FUNCTION(3, "PWM5"), | ||
1203 | MTK_FUNCTION(4, "PTA_TXD"), | ||
1204 | MTK_FUNCTION(5, "CMVREF1"), | ||
1205 | MTK_FUNCTION(6, "I2S3_DO") | ||
1206 | ), | ||
1207 | MTK_PIN( | ||
1208 | 113, "GPIO113", | ||
1209 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1210 | DRV_GRP4, | ||
1211 | MTK_FUNCTION(0, "GPIO113"), | ||
1212 | MTK_FUNCTION(1, "CONN_TOP_CLK") | ||
1213 | ), | ||
1214 | MTK_PIN( | ||
1215 | 114, "GPIO114", | ||
1216 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1217 | DRV_GRP4, | ||
1218 | MTK_FUNCTION(0, "GPIO114"), | ||
1219 | MTK_FUNCTION(1, "CONN_TOP_DATA") | ||
1220 | ), | ||
1221 | MTK_PIN( | ||
1222 | 115, "GPIO115", | ||
1223 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1224 | DRV_GRP4, | ||
1225 | MTK_FUNCTION(0, "GPIO115"), | ||
1226 | MTK_FUNCTION(1, "CONN_BT_CLK") | ||
1227 | ), | ||
1228 | MTK_PIN( | ||
1229 | 116, "GPIO116", | ||
1230 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1231 | DRV_GRP4, | ||
1232 | MTK_FUNCTION(0, "GPIO116"), | ||
1233 | MTK_FUNCTION(1, "CONN_BT_DATA") | ||
1234 | ), | ||
1235 | MTK_PIN( | ||
1236 | 117, "GPIO117", | ||
1237 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1238 | DRV_GRP4, | ||
1239 | MTK_FUNCTION(0, "GPIO117"), | ||
1240 | MTK_FUNCTION(1, "CONN_WF_CTRL0") | ||
1241 | ), | ||
1242 | MTK_PIN( | ||
1243 | 118, "GPIO118", | ||
1244 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1245 | DRV_GRP4, | ||
1246 | MTK_FUNCTION(0, "GPIO118"), | ||
1247 | MTK_FUNCTION(1, "CONN_WF_CTRL1") | ||
1248 | ), | ||
1249 | MTK_PIN( | ||
1250 | 119, "GPIO119", | ||
1251 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1252 | DRV_GRP4, | ||
1253 | MTK_FUNCTION(0, "GPIO119"), | ||
1254 | MTK_FUNCTION(1, "CONN_WF_CTRL2") | ||
1255 | ), | ||
1256 | MTK_PIN( | ||
1257 | 120, "GPIO120", | ||
1258 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1259 | DRV_GRP4, | ||
1260 | MTK_FUNCTION(0, "GPIO120"), | ||
1261 | MTK_FUNCTION(1, "CONN_WB_PTA") | ||
1262 | ), | ||
1263 | MTK_PIN( | ||
1264 | 121, "GPIO121", | ||
1265 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1266 | DRV_GRP4, | ||
1267 | MTK_FUNCTION(0, "GPIO121"), | ||
1268 | MTK_FUNCTION(1, "CONN_HRST_B") | ||
1269 | ), | ||
1270 | MTK_PIN( | ||
1271 | 122, "GPIO122", | ||
1272 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1273 | DRV_GRP4, | ||
1274 | MTK_FUNCTION(0, "GPIO122"), | ||
1275 | MTK_FUNCTION(1, "MSDC0_CMD"), | ||
1276 | MTK_FUNCTION(2, "MSDC0_CMD") | ||
1277 | ), | ||
1278 | MTK_PIN( | ||
1279 | 123, "GPIO123", | ||
1280 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1281 | DRV_GRP4, | ||
1282 | MTK_FUNCTION(0, "GPIO123"), | ||
1283 | MTK_FUNCTION(1, "MSDC0_DAT0"), | ||
1284 | MTK_FUNCTION(2, "MSDC0_DAT4") | ||
1285 | ), | ||
1286 | MTK_PIN( | ||
1287 | 124, "GPIO124", | ||
1288 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1289 | DRV_GRP4, | ||
1290 | MTK_FUNCTION(0, "GPIO124"), | ||
1291 | MTK_FUNCTION(1, "MSDC0_CLK"), | ||
1292 | MTK_FUNCTION(2, "MSDC0_CLK") | ||
1293 | ), | ||
1294 | MTK_PIN( | ||
1295 | 125, "GPIO125", | ||
1296 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1297 | DRV_GRP4, | ||
1298 | MTK_FUNCTION(0, "GPIO125"), | ||
1299 | MTK_FUNCTION(1, "MSDC0_DAT2"), | ||
1300 | MTK_FUNCTION(2, "MSDC0_DAT5") | ||
1301 | ), | ||
1302 | MTK_PIN( | ||
1303 | 126, "GPIO126", | ||
1304 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1305 | DRV_GRP4, | ||
1306 | MTK_FUNCTION(0, "GPIO126"), | ||
1307 | MTK_FUNCTION(1, "MSDC0_DAT4"), | ||
1308 | MTK_FUNCTION(2, "MSDC0_DAT2") | ||
1309 | ), | ||
1310 | MTK_PIN( | ||
1311 | 127, "GPIO127", | ||
1312 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1313 | DRV_GRP4, | ||
1314 | MTK_FUNCTION(0, "GPIO127"), | ||
1315 | MTK_FUNCTION(1, "MSDC0_DAT6"), | ||
1316 | MTK_FUNCTION(2, "MSDC0_DAT1") | ||
1317 | ), | ||
1318 | MTK_PIN( | ||
1319 | 128, "GPIO128", | ||
1320 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1321 | DRV_GRP4, | ||
1322 | MTK_FUNCTION(0, "GPIO128"), | ||
1323 | MTK_FUNCTION(1, "MSDC0_DAT1"), | ||
1324 | MTK_FUNCTION(2, "MSDC0_DAT6") | ||
1325 | ), | ||
1326 | MTK_PIN( | ||
1327 | 129, "GPIO129", | ||
1328 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1329 | DRV_GRP4, | ||
1330 | MTK_FUNCTION(0, "GPIO129"), | ||
1331 | MTK_FUNCTION(1, "MSDC0_DAT5"), | ||
1332 | MTK_FUNCTION(2, "MSDC0_DAT0") | ||
1333 | ), | ||
1334 | MTK_PIN( | ||
1335 | 130, "GPIO130", | ||
1336 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1337 | DRV_GRP4, | ||
1338 | MTK_FUNCTION(0, "GPIO130"), | ||
1339 | MTK_FUNCTION(1, "MSDC0_DAT7"), | ||
1340 | MTK_FUNCTION(2, "MSDC0_DAT7") | ||
1341 | ), | ||
1342 | MTK_PIN( | ||
1343 | 131, "GPIO131", | ||
1344 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1345 | DRV_GRP4, | ||
1346 | MTK_FUNCTION(0, "GPIO131"), | ||
1347 | MTK_FUNCTION(1, "MSDC0_DSL"), | ||
1348 | MTK_FUNCTION(2, "MSDC0_DSL") | ||
1349 | ), | ||
1350 | MTK_PIN( | ||
1351 | 132, "GPIO132", | ||
1352 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1353 | DRV_GRP4, | ||
1354 | MTK_FUNCTION(0, "GPIO132"), | ||
1355 | MTK_FUNCTION(1, "MSDC0_DAT3"), | ||
1356 | MTK_FUNCTION(2, "MSDC0_DAT3") | ||
1357 | ), | ||
1358 | MTK_PIN( | ||
1359 | 133, "GPIO133", | ||
1360 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1361 | DRV_GRP4, | ||
1362 | MTK_FUNCTION(0, "GPIO133"), | ||
1363 | MTK_FUNCTION(1, "MSDC0_RSTB"), | ||
1364 | MTK_FUNCTION(2, "MSDC0_RSTB") | ||
1365 | ), | ||
1366 | MTK_PIN( | ||
1367 | 134, "GPIO134", | ||
1368 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1369 | DRV_GRP4, | ||
1370 | MTK_FUNCTION(0, "GPIO134"), | ||
1371 | MTK_FUNCTION(1, "RTC32K_CK") | ||
1372 | ), | ||
1373 | MTK_PIN( | ||
1374 | 135, "GPIO135", | ||
1375 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1376 | DRV_GRP4, | ||
1377 | MTK_FUNCTION(0, "GPIO135"), | ||
1378 | MTK_FUNCTION(1, "WATCHDOG") | ||
1379 | ), | ||
1380 | MTK_PIN( | ||
1381 | 136, "GPIO136", | ||
1382 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1383 | DRV_GRP4, | ||
1384 | MTK_FUNCTION(0, "GPIO136"), | ||
1385 | MTK_FUNCTION(1, "AUD_CLK_MOSI"), | ||
1386 | MTK_FUNCTION(2, "AUD_CLK_MISO"), | ||
1387 | MTK_FUNCTION(3, "I2S1_MCK") | ||
1388 | ), | ||
1389 | MTK_PIN( | ||
1390 | 137, "GPIO137", | ||
1391 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1392 | DRV_GRP4, | ||
1393 | MTK_FUNCTION(0, "GPIO137"), | ||
1394 | MTK_FUNCTION(1, "AUD_SYNC_MOSI"), | ||
1395 | MTK_FUNCTION(2, "AUD_SYNC_MISO"), | ||
1396 | MTK_FUNCTION(3, "I2S1_BCK") | ||
1397 | ), | ||
1398 | MTK_PIN( | ||
1399 | 138, "GPIO138", | ||
1400 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1401 | DRV_GRP4, | ||
1402 | MTK_FUNCTION(0, "GPIO138"), | ||
1403 | MTK_FUNCTION(1, "AUD_DAT_MOSI0"), | ||
1404 | MTK_FUNCTION(2, "AUD_DAT_MISO0"), | ||
1405 | MTK_FUNCTION(3, "I2S1_LRCK") | ||
1406 | ), | ||
1407 | MTK_PIN( | ||
1408 | 139, "GPIO139", | ||
1409 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1410 | DRV_GRP4, | ||
1411 | MTK_FUNCTION(0, "GPIO139"), | ||
1412 | MTK_FUNCTION(1, "AUD_DAT_MOSI1"), | ||
1413 | MTK_FUNCTION(2, "AUD_DAT_MISO1"), | ||
1414 | MTK_FUNCTION(3, "I2S1_DO") | ||
1415 | ), | ||
1416 | MTK_PIN( | ||
1417 | 140, "GPIO140", | ||
1418 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1419 | DRV_GRP4, | ||
1420 | MTK_FUNCTION(0, "GPIO140"), | ||
1421 | MTK_FUNCTION(1, "AUD_CLK_MISO"), | ||
1422 | MTK_FUNCTION(2, "AUD_CLK_MOSI"), | ||
1423 | MTK_FUNCTION(3, "I2S2_MCK") | ||
1424 | ), | ||
1425 | MTK_PIN( | ||
1426 | 141, "GPIO141", | ||
1427 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1428 | DRV_GRP4, | ||
1429 | MTK_FUNCTION(0, "GPIO141"), | ||
1430 | MTK_FUNCTION(1, "AUD_SYNC_MISO"), | ||
1431 | MTK_FUNCTION(2, "AUD_SYNC_MOSI"), | ||
1432 | MTK_FUNCTION(3, "I2S2_BCK") | ||
1433 | ), | ||
1434 | MTK_PIN( | ||
1435 | 142, "GPIO142", | ||
1436 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1437 | DRV_GRP4, | ||
1438 | MTK_FUNCTION(0, "GPIO142"), | ||
1439 | MTK_FUNCTION(1, "AUD_DAT_MISO0"), | ||
1440 | MTK_FUNCTION(2, "AUD_DAT_MOSI0"), | ||
1441 | MTK_FUNCTION(3, "I2S2_LRCK") | ||
1442 | ), | ||
1443 | MTK_PIN( | ||
1444 | 143, "GPIO143", | ||
1445 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1446 | DRV_GRP4, | ||
1447 | MTK_FUNCTION(0, "GPIO143"), | ||
1448 | MTK_FUNCTION(1, "AUD_DAT_MISO1"), | ||
1449 | MTK_FUNCTION(2, "AUD_DAT_MOSI1"), | ||
1450 | MTK_FUNCTION(3, "I2S2_DI") | ||
1451 | ), | ||
1452 | MTK_PIN( | ||
1453 | 144, "GPIO144", | ||
1454 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1455 | DRV_GRP4, | ||
1456 | MTK_FUNCTION(0, "GPIO144"), | ||
1457 | MTK_FUNCTION(1, "PWRAP_SPI0_MI"), | ||
1458 | MTK_FUNCTION(2, "PWRAP_SPI0_MO") | ||
1459 | ), | ||
1460 | MTK_PIN( | ||
1461 | 145, "GPIO145", | ||
1462 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1463 | DRV_GRP4, | ||
1464 | MTK_FUNCTION(0, "GPIO145"), | ||
1465 | MTK_FUNCTION(1, "PWRAP_SPI0_CSN") | ||
1466 | ), | ||
1467 | MTK_PIN( | ||
1468 | 146, "GPIO146", | ||
1469 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1470 | DRV_GRP4, | ||
1471 | MTK_FUNCTION(0, "GPIO146"), | ||
1472 | MTK_FUNCTION(1, "PWRAP_SPI0_MO"), | ||
1473 | MTK_FUNCTION(2, "PWRAP_SPI0_MI") | ||
1474 | ), | ||
1475 | MTK_PIN( | ||
1476 | 147, "GPIO147", | ||
1477 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1478 | DRV_GRP4, | ||
1479 | MTK_FUNCTION(0, "GPIO147"), | ||
1480 | MTK_FUNCTION(1, "PWRAP_SPI0_CK") | ||
1481 | ), | ||
1482 | MTK_PIN( | ||
1483 | 148, "GPIO148", | ||
1484 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1485 | DRV_GRP4, | ||
1486 | MTK_FUNCTION(0, "GPIO148"), | ||
1487 | MTK_FUNCTION(1, "SRCLKENA0") | ||
1488 | ), | ||
1489 | MTK_PIN( | ||
1490 | 149, "GPIO149", | ||
1491 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1492 | DRV_GRP4, | ||
1493 | MTK_FUNCTION(0, "GPIO149"), | ||
1494 | MTK_FUNCTION(1, "SRCLKENA1") | ||
1495 | ), | ||
1496 | MTK_PIN( | ||
1497 | 150, "GPIO150", | ||
1498 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1499 | DRV_GRP4, | ||
1500 | MTK_FUNCTION(0, "GPIO150"), | ||
1501 | MTK_FUNCTION(1, "PWM0"), | ||
1502 | MTK_FUNCTION(2, "CMFLASH"), | ||
1503 | MTK_FUNCTION(3, "ANT_SEL3"), | ||
1504 | MTK_FUNCTION(5, "MD_URXD0"), | ||
1505 | MTK_FUNCTION(6, "TP_URXD2_AO") | ||
1506 | ), | ||
1507 | MTK_PIN( | ||
1508 | 151, "GPIO151", | ||
1509 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1510 | DRV_GRP4, | ||
1511 | MTK_FUNCTION(0, "GPIO151"), | ||
1512 | MTK_FUNCTION(1, "PWM1"), | ||
1513 | MTK_FUNCTION(2, "CMVREF0"), | ||
1514 | MTK_FUNCTION(3, "ANT_SEL4"), | ||
1515 | MTK_FUNCTION(5, "MD_UTXD0"), | ||
1516 | MTK_FUNCTION(6, "TP_UTXD2_AO") | ||
1517 | ), | ||
1518 | MTK_PIN( | ||
1519 | 152, "GPIO152", | ||
1520 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1521 | DRV_GRP4, | ||
1522 | MTK_FUNCTION(0, "GPIO152"), | ||
1523 | MTK_FUNCTION(1, "PWM2"), | ||
1524 | MTK_FUNCTION(2, "CMVREF1"), | ||
1525 | MTK_FUNCTION(3, "ANT_SEL5"), | ||
1526 | MTK_FUNCTION(5, "MD_URXD1"), | ||
1527 | MTK_FUNCTION(6, "TP_UCTS1_AO") | ||
1528 | ), | ||
1529 | MTK_PIN( | ||
1530 | 153, "GPIO153", | ||
1531 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1532 | DRV_GRP4, | ||
1533 | MTK_FUNCTION(0, "GPIO153"), | ||
1534 | MTK_FUNCTION(1, "PWM3"), | ||
1535 | MTK_FUNCTION(2, "CLKM0"), | ||
1536 | MTK_FUNCTION(3, "ANT_SEL6"), | ||
1537 | MTK_FUNCTION(5, "MD_UTXD1"), | ||
1538 | MTK_FUNCTION(6, "TP_URTS1_AO") | ||
1539 | ), | ||
1540 | MTK_PIN( | ||
1541 | 154, "GPIO154", | ||
1542 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1543 | DRV_GRP4, | ||
1544 | MTK_FUNCTION(0, "GPIO154"), | ||
1545 | MTK_FUNCTION(1, "PWM5"), | ||
1546 | MTK_FUNCTION(2, "CLKM2"), | ||
1547 | MTK_FUNCTION(3, "USB_DRVVBUS"), | ||
1548 | MTK_FUNCTION(5, "PTA_TXD"), | ||
1549 | MTK_FUNCTION(6, "CONN_UART0_TXD") | ||
1550 | ), | ||
1551 | MTK_PIN( | ||
1552 | 155, "GPIO155", | ||
1553 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1554 | DRV_GRP4, | ||
1555 | MTK_FUNCTION(0, "GPIO155"), | ||
1556 | MTK_FUNCTION(1, "SPI0_MI"), | ||
1557 | MTK_FUNCTION(2, "IDDIG"), | ||
1558 | MTK_FUNCTION(3, "AGPS_SYNC"), | ||
1559 | MTK_FUNCTION(4, "TP_GPIO0_AO"), | ||
1560 | MTK_FUNCTION(5, "MFG_JTAG_TDO"), | ||
1561 | MTK_FUNCTION(6, "DFD_TDO"), | ||
1562 | MTK_FUNCTION(7, "JTDO_SEL1") | ||
1563 | ), | ||
1564 | MTK_PIN( | ||
1565 | 156, "GPIO156", | ||
1566 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1567 | DRV_GRP4, | ||
1568 | MTK_FUNCTION(0, "GPIO156"), | ||
1569 | MTK_FUNCTION(1, "SPI0_CSB"), | ||
1570 | MTK_FUNCTION(2, "USB_DRVVBUS"), | ||
1571 | MTK_FUNCTION(3, "DVFSRC_EXT_REQ"), | ||
1572 | MTK_FUNCTION(4, "TP_GPIO1_AO"), | ||
1573 | MTK_FUNCTION(5, "MFG_JTAG_TMS"), | ||
1574 | MTK_FUNCTION(6, "DFD_TMS"), | ||
1575 | MTK_FUNCTION(7, "JTMS_SEL1") | ||
1576 | ), | ||
1577 | MTK_PIN( | ||
1578 | 157, "GPIO157", | ||
1579 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1580 | DRV_GRP4, | ||
1581 | MTK_FUNCTION(0, "GPIO157"), | ||
1582 | MTK_FUNCTION(1, "SPI0_MO"), | ||
1583 | MTK_FUNCTION(2, "MD_INT1_C2K_UIM0_HOT_PLUG"), | ||
1584 | MTK_FUNCTION(3, "CLKM0"), | ||
1585 | MTK_FUNCTION(4, "TP_GPIO2_AO"), | ||
1586 | MTK_FUNCTION(5, "MFG_JTAG_TDI"), | ||
1587 | MTK_FUNCTION(6, "DFD_TDI"), | ||
1588 | MTK_FUNCTION(7, "JTDI_SEL1") | ||
1589 | ), | ||
1590 | MTK_PIN( | ||
1591 | 158, "GPIO158", | ||
1592 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1593 | DRV_GRP4, | ||
1594 | MTK_FUNCTION(0, "GPIO158"), | ||
1595 | MTK_FUNCTION(1, "SPI0_CLK"), | ||
1596 | MTK_FUNCTION(2, "MD_INT2_C2K_UIM1_HOT_PLUG"), | ||
1597 | MTK_FUNCTION(3, "EXT_FRAME_SYNC"), | ||
1598 | MTK_FUNCTION(4, "TP_GPIO3_AO"), | ||
1599 | MTK_FUNCTION(5, "MFG_JTAG_TCK"), | ||
1600 | MTK_FUNCTION(6, "DFD_TCK_XI"), | ||
1601 | MTK_FUNCTION(7, "JTCK_SEL1") | ||
1602 | ), | ||
1603 | MTK_PIN( | ||
1604 | 159, "GPIO159", | ||
1605 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1606 | DRV_GRP4, | ||
1607 | MTK_FUNCTION(0, "GPIO159"), | ||
1608 | MTK_FUNCTION(1, "PWM4"), | ||
1609 | MTK_FUNCTION(2, "CLKM1"), | ||
1610 | MTK_FUNCTION(3, "ANT_SEL7"), | ||
1611 | MTK_FUNCTION(5, "PTA_RXD"), | ||
1612 | MTK_FUNCTION(6, "CONN_UART0_RXD") | ||
1613 | ), | ||
1614 | MTK_PIN( | ||
1615 | 160, "GPIO160", | ||
1616 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1617 | DRV_GRP4, | ||
1618 | MTK_FUNCTION(0, "GPIO160"), | ||
1619 | MTK_FUNCTION(1, "CLKM0"), | ||
1620 | MTK_FUNCTION(2, "PWM2"), | ||
1621 | MTK_FUNCTION(3, "EXT_FRAME_SYNC"), | ||
1622 | MTK_FUNCTION(4, "TP_GPIO5_AO"), | ||
1623 | MTK_FUNCTION(5, "AGPS_SYNC"), | ||
1624 | MTK_FUNCTION(6, "DVFSRC_EXT_REQ") | ||
1625 | ), | ||
1626 | MTK_PIN( | ||
1627 | 161, "GPIO161", | ||
1628 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1629 | DRV_GRP4, | ||
1630 | MTK_FUNCTION(0, "GPIO161"), | ||
1631 | MTK_FUNCTION(1, "SCL6"), | ||
1632 | MTK_FUNCTION(2, "SCL_6306"), | ||
1633 | MTK_FUNCTION(3, "TP_GPIO6_AO"), | ||
1634 | MTK_FUNCTION(4, "KPCOL6"), | ||
1635 | MTK_FUNCTION(5, "PTA_RXD"), | ||
1636 | MTK_FUNCTION(6, "CONN_UART0_RXD") | ||
1637 | ), | ||
1638 | MTK_PIN( | ||
1639 | 162, "GPIO162", | ||
1640 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1641 | DRV_GRP4, | ||
1642 | MTK_FUNCTION(0, "GPIO162"), | ||
1643 | MTK_FUNCTION(1, "SDA6"), | ||
1644 | MTK_FUNCTION(2, "SDA_6306"), | ||
1645 | MTK_FUNCTION(3, "TP_GPIO7_AO"), | ||
1646 | MTK_FUNCTION(4, "KPCOL7"), | ||
1647 | MTK_FUNCTION(5, "PTA_TXD"), | ||
1648 | MTK_FUNCTION(6, "CONN_UART0_TXD") | ||
1649 | ), | ||
1650 | MTK_PIN( | ||
1651 | 163, "GPIO163", | ||
1652 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1653 | DRV_GRP4, | ||
1654 | MTK_FUNCTION(0, "GPIO163") | ||
1655 | ), | ||
1656 | MTK_PIN( | ||
1657 | 164, "GPIO164", | ||
1658 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1659 | DRV_GRP4, | ||
1660 | MTK_FUNCTION(0, "GPIO164") | ||
1661 | ), | ||
1662 | MTK_PIN( | ||
1663 | 165, "GPIO165", | ||
1664 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1665 | DRV_GRP4, | ||
1666 | MTK_FUNCTION(0, "GPIO165") | ||
1667 | ), | ||
1668 | MTK_PIN( | ||
1669 | 166, "GPIO166", | ||
1670 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1671 | DRV_GRP4, | ||
1672 | MTK_FUNCTION(0, "GPIO166") | ||
1673 | ), | ||
1674 | MTK_PIN( | ||
1675 | 167, "GPIO167", | ||
1676 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1677 | DRV_GRP4, | ||
1678 | MTK_FUNCTION(0, "GPIO167") | ||
1679 | ), | ||
1680 | MTK_PIN( | ||
1681 | 168, "GPIO168", | ||
1682 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1683 | DRV_GRP4, | ||
1684 | MTK_FUNCTION(0, "GPIO168") | ||
1685 | ), | ||
1686 | MTK_PIN( | ||
1687 | 169, "GPIO169", | ||
1688 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1689 | DRV_GRP4, | ||
1690 | MTK_FUNCTION(0, "GPIO169") | ||
1691 | ), | ||
1692 | MTK_PIN( | ||
1693 | 170, "GPIO170", | ||
1694 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1695 | DRV_GRP4, | ||
1696 | MTK_FUNCTION(0, "GPIO170") | ||
1697 | ), | ||
1698 | MTK_PIN( | ||
1699 | 171, "GPIO171", | ||
1700 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1701 | DRV_GRP4, | ||
1702 | MTK_FUNCTION(0, "GPIO171") | ||
1703 | ), | ||
1704 | MTK_PIN( | ||
1705 | 172, "GPIO172", | ||
1706 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1707 | DRV_GRP4, | ||
1708 | MTK_FUNCTION(0, "GPIO172") | ||
1709 | ), | ||
1710 | MTK_PIN( | ||
1711 | 173, "GPIO173", | ||
1712 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1713 | DRV_GRP4, | ||
1714 | MTK_FUNCTION(0, "GPIO173") | ||
1715 | ), | ||
1716 | MTK_PIN( | ||
1717 | 174, "GPIO174", | ||
1718 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1719 | DRV_GRP4, | ||
1720 | MTK_FUNCTION(0, "GPIO174") | ||
1721 | ), | ||
1722 | MTK_PIN( | ||
1723 | 175, "GPIO175", | ||
1724 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1725 | DRV_GRP4, | ||
1726 | MTK_FUNCTION(0, "GPIO175") | ||
1727 | ), | ||
1728 | MTK_PIN( | ||
1729 | 176, "GPIO176", | ||
1730 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1731 | DRV_GRP4, | ||
1732 | MTK_FUNCTION(0, "GPIO176") | ||
1733 | ), | ||
1734 | MTK_PIN( | ||
1735 | 177, "GPIO177", | ||
1736 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1737 | DRV_GRP4, | ||
1738 | MTK_FUNCTION(0, "GPIO177") | ||
1739 | ), | ||
1740 | MTK_PIN( | ||
1741 | 178, "GPIO178", | ||
1742 | MTK_EINT_FUNCTION(0, NO_EINT_SUPPORT), | ||
1743 | DRV_GRP4, | ||
1744 | MTK_FUNCTION(0, "GPIO178") | ||
1745 | ), | ||
1746 | MTK_PIN( | ||
1747 | 179, "GPIO179", | ||
1748 | MTK_EINT_FUNCTION(0, 151), | ||
1749 | DRV_GRP4, | ||
1750 | MTK_FUNCTION(0, "GPIO179") | ||
1751 | ), | ||
1752 | }; | ||
1753 | |||
1754 | #endif /* __PINCTRL_MTK_MT6765_H */ | ||