Lines Matching +full:3 +full:- +full:5
1 // SPDX-License-Identifier: GPL-2.0
9 #include "pinctrl-moore.h"
41 PIN_FIELD_BASE(2, 2, 5, 0x20, 0x10, 6, 1),
42 PIN_FIELD_BASE(3, 3, 4, 0x20, 0x10, 6, 1),
44 PIN_FIELD_BASE(5, 5, 4, 0x20, 0x10, 1, 1),
45 PIN_FIELD_BASE(6, 6, 4, 0x20, 0x10, 3, 1),
49 PIN_FIELD_BASE(9, 9, 5, 0x20, 0x10, 9, 1),
50 PIN_FIELD_BASE(10, 10, 5, 0x20, 0x10, 8, 1),
51 PIN_FIELD_BASE(11, 11, 5, 0x40, 0x10, 10, 1),
52 PIN_FIELD_BASE(12, 12, 5, 0x20, 0x10, 7, 1),
53 PIN_FIELD_BASE(13, 13, 5, 0x20, 0x10, 11, 1),
59 PIN_FIELD_BASE(17, 17, 2, 0x20, 0x10, 5, 1),
62 PIN_FIELD_BASE(20, 20, 2, 0x20, 0x10, 3, 1),
69 PIN_FIELD_BASE(26, 26, 5, 0x20, 0x10, 0, 1),
70 PIN_FIELD_BASE(27, 27, 5, 0x20, 0x10, 4, 1),
71 PIN_FIELD_BASE(28, 28, 5, 0x20, 0x10, 3, 1),
72 PIN_FIELD_BASE(29, 29, 5, 0x20, 0x10, 1, 1),
73 PIN_FIELD_BASE(30, 30, 5, 0x20, 0x10, 2, 1),
74 PIN_FIELD_BASE(31, 31, 5, 0x20, 0x10, 5, 1),
77 PIN_FIELD_BASE(33, 33, 1, 0x10, 0x10, 3, 1),
79 PIN_FIELD_BASE(34, 34, 4, 0x20, 0x10, 5, 1),
82 PIN_FIELD_BASE(36, 36, 3, 0x10, 0x10, 2, 1),
83 PIN_FIELD_BASE(37, 37, 3, 0x10, 0x10, 3, 1),
84 PIN_FIELD_BASE(38, 38, 3, 0x10, 0x10, 0, 1),
85 PIN_FIELD_BASE(39, 39, 3, 0x10, 0x10, 1, 1),
92 PIN_FIELD_BASE(45, 45, 7, 0x30, 0x10, 3, 1),
94 PIN_FIELD_BASE(47, 47, 7, 0x30, 0x10, 5, 1),
100 PIN_FIELD_BASE(52, 52, 6, 0x10, 0x10, 3, 1),
102 PIN_FIELD_BASE(54, 54, 6, 0x10, 0x10, 5, 1),
110 PIN_FIELD_BASE(2, 2, 5, 0x90, 0x10, 6, 1),
111 PIN_FIELD_BASE(3, 3, 4, 0x80, 0x10, 6, 1),
113 PIN_FIELD_BASE(5, 5, 4, 0x80, 0x10, 1, 1),
114 PIN_FIELD_BASE(6, 6, 4, 0x80, 0x10, 3, 1),
118 PIN_FIELD_BASE(9, 9, 5, 0x90, 0x10, 9, 1),
119 PIN_FIELD_BASE(10, 10, 5, 0x90, 0x10, 8, 1),
120 PIN_FIELD_BASE(11, 11, 5, 0x90, 0x10, 10, 1),
121 PIN_FIELD_BASE(12, 12, 5, 0x90, 0x10, 7, 1),
122 PIN_FIELD_BASE(13, 13, 5, 0x90, 0x10, 11, 1),
128 PIN_FIELD_BASE(17, 17, 2, 0x90, 0x10, 5, 1),
131 PIN_FIELD_BASE(20, 20, 2, 0x90, 0x10, 3, 1),
138 PIN_FIELD_BASE(26, 26, 5, 0x90, 0x10, 0, 1),
139 PIN_FIELD_BASE(27, 27, 5, 0x90, 0x10, 4, 1),
140 PIN_FIELD_BASE(28, 28, 5, 0x90, 0x10, 3, 1),
141 PIN_FIELD_BASE(29, 29, 5, 0x90, 0x10, 1, 1),
142 PIN_FIELD_BASE(30, 30, 5, 0x90, 0x10, 2, 1),
143 PIN_FIELD_BASE(31, 31, 5, 0x90, 0x10, 5, 1),
146 PIN_FIELD_BASE(33, 33, 1, 0x60, 0x10, 3, 1),
148 PIN_FIELD_BASE(34, 34, 4, 0x80, 0x10, 5, 1),
151 PIN_FIELD_BASE(36, 36, 3, 0x60, 0x10, 2, 1),
152 PIN_FIELD_BASE(37, 37, 3, 0x60, 0x10, 3, 1),
153 PIN_FIELD_BASE(38, 38, 3, 0x60, 0x10, 0, 1),
154 PIN_FIELD_BASE(39, 39, 3, 0x60, 0x10, 1, 1),
161 PIN_FIELD_BASE(45, 45, 7, 0x70, 0x10, 3, 1),
163 PIN_FIELD_BASE(47, 47, 7, 0x70, 0x10, 5, 1),
169 PIN_FIELD_BASE(52, 52, 6, 0x50, 0x10, 3, 1),
171 PIN_FIELD_BASE(54, 54, 6, 0x50, 0x10, 5, 1),
182 PIN_FIELD_BASE(45, 45, 7, 0x50, 0x10, 3, 1),
184 PIN_FIELD_BASE(47, 47, 7, 0x50, 0x10, 5, 1),
190 PIN_FIELD_BASE(52, 52, 6, 0x30, 0x10, 3, 1),
192 PIN_FIELD_BASE(54, 54, 6, 0x30, 0x10, 5, 1),
203 PIN_FIELD_BASE(45, 45, 7, 0x40, 0x10, 3, 1),
205 PIN_FIELD_BASE(47, 47, 7, 0x40, 0x10, 5, 1),
211 PIN_FIELD_BASE(52, 52, 6, 0x20, 0x10, 3, 1),
213 PIN_FIELD_BASE(54, 54, 6, 0x20, 0x10, 5, 1),
219 PIN_FIELD_BASE(0, 0, 1, 0x00, 0x10, 3, 3),
220 PIN_FIELD_BASE(1, 1, 1, 0x00, 0x10, 0, 3),
222 PIN_FIELD_BASE(2, 2, 5, 0x00, 0x10, 18, 3),
224 PIN_FIELD_BASE(3, 3, 4, 0x00, 0x10, 18, 1),
226 PIN_FIELD_BASE(5, 5, 4, 0x00, 0x10, 3, 3),
227 PIN_FIELD_BASE(6, 6, 4, 0x00, 0x10, 9, 3),
228 PIN_FIELD_BASE(7, 7, 4, 0x00, 0x10, 0, 3),
229 PIN_FIELD_BASE(8, 8, 4, 0x00, 0x10, 12, 3),
231 PIN_FIELD_BASE(9, 9, 5, 0x00, 0x10, 27, 3),
232 PIN_FIELD_BASE(10, 10, 5, 0x00, 0x10, 24, 3),
233 PIN_FIELD_BASE(11, 11, 5, 0x00, 0x10, 0, 3),
234 PIN_FIELD_BASE(12, 12, 5, 0x00, 0x10, 21, 3),
235 PIN_FIELD_BASE(13, 13, 5, 0x00, 0x10, 3, 3),
237 PIN_FIELD_BASE(14, 14, 4, 0x00, 0x10, 27, 3),
239 PIN_FIELD_BASE(15, 15, 2, 0x00, 0x10, 0, 3),
240 PIN_FIELD_BASE(16, 16, 2, 0x00, 0x10, 3, 3),
241 PIN_FIELD_BASE(17, 17, 2, 0x00, 0x10, 15, 3),
242 PIN_FIELD_BASE(18, 18, 2, 0x00, 0x10, 12, 3),
243 PIN_FIELD_BASE(19, 19, 2, 0x00, 0x10, 6, 3),
244 PIN_FIELD_BASE(20, 20, 2, 0x00, 0x10, 9, 3),
245 PIN_FIELD_BASE(21, 21, 2, 0x00, 0x10, 18, 3),
246 PIN_FIELD_BASE(22, 22, 2, 0x00, 0x10, 21, 3),
247 PIN_FIELD_BASE(23, 23, 2, 0x00, 0x10, 0, 3),
248 PIN_FIELD_BASE(24, 24, 2, 0x00, 0x10, 27, 3),
249 PIN_FIELD_BASE(25, 25, 2, 0x00, 0x10, 24, 3),
251 PIN_FIELD_BASE(26, 26, 5, 0x00, 0x10, 0, 3),
252 PIN_FIELD_BASE(27, 27, 5, 0x00, 0x10, 12, 3),
253 PIN_FIELD_BASE(28, 28, 5, 0x00, 0x10, 9, 3),
254 PIN_FIELD_BASE(29, 29, 5, 0x00, 0x10, 3, 3),
255 PIN_FIELD_BASE(30, 30, 5, 0x00, 0x10, 6, 3),
256 PIN_FIELD_BASE(31, 31, 5, 0x00, 0x10, 15, 3),
258 PIN_FIELD_BASE(32, 32, 1, 0x00, 0x10, 9, 3),
259 PIN_FIELD_BASE(33, 33, 1, 0x00, 0x10, 12, 3),
261 PIN_FIELD_BASE(34, 34, 4, 0x00, 0x10, 15, 3),
262 PIN_FIELD_BASE(35, 35, 4, 0x00, 0x10, 21, 3),
264 PIN_FIELD_BASE(36, 36, 3, 0x00, 0x10, 6, 3),
265 PIN_FIELD_BASE(37, 37, 3, 0x00, 0x10, 9, 3),
266 PIN_FIELD_BASE(38, 38, 3, 0x00, 0x10, 0, 3),
267 PIN_FIELD_BASE(39, 39, 3, 0x00, 0x10, 3, 3),
269 PIN_FIELD_BASE(40, 40, 7, 0x00, 0x10, 3, 3),
270 PIN_FIELD_BASE(41, 41, 7, 0x00, 0x10, 0, 3),
271 PIN_FIELD_BASE(42, 42, 7, 0x00, 0x10, 27, 3),
272 PIN_FIELD_BASE(43, 43, 7, 0x00, 0x10, 21, 3),
273 PIN_FIELD_BASE(44, 44, 7, 0x00, 0x10, 24, 3),
274 PIN_FIELD_BASE(45, 45, 7, 0x00, 0x10, 9, 3),
275 PIN_FIELD_BASE(46, 46, 7, 0x00, 0x10, 12, 3),
276 PIN_FIELD_BASE(47, 47, 7, 0x00, 0x10, 15, 3),
277 PIN_FIELD_BASE(48, 48, 7, 0x00, 0x10, 18, 3),
278 PIN_FIELD_BASE(49, 49, 7, 0x00, 0x10, 6, 3),
280 PIN_FIELD_BASE(50, 50, 6, 0x00, 0x10, 0, 3),
281 PIN_FIELD_BASE(51, 51, 6, 0x00, 0x10, 6, 3),
282 PIN_FIELD_BASE(52, 52, 6, 0x00, 0x10, 9, 3),
283 PIN_FIELD_BASE(53, 53, 6, 0x00, 0x10, 12, 3),
284 PIN_FIELD_BASE(54, 54, 6, 0x00, 0x10, 15, 3),
285 PIN_FIELD_BASE(55, 55, 6, 0x00, 0x10, 18, 3),
286 PIN_FIELD_BASE(56, 56, 6, 0x00, 0x10, 3, 3),
292 PIN_FIELD_BASE(2, 2, 5, 0x30, 0x10, 6, 1),
293 PIN_FIELD_BASE(3, 3, 4, 0x30, 0x10, 6, 1),
295 PIN_FIELD_BASE(5, 5, 4, 0x30, 0x10, 1, 1),
296 PIN_FIELD_BASE(6, 6, 4, 0x30, 0x10, 3, 1),
300 PIN_FIELD_BASE(9, 9, 5, 0x30, 0x10, 9, 1),
301 PIN_FIELD_BASE(10, 10, 5, 0x30, 0x10, 8, 1),
302 PIN_FIELD_BASE(11, 11, 5, 0x30, 0x10, 10, 1),
303 PIN_FIELD_BASE(12, 12, 5, 0x30, 0x10, 7, 1),
304 PIN_FIELD_BASE(13, 13, 5, 0x30, 0x10, 11, 1),
310 PIN_FIELD_BASE(17, 17, 2, 0x30, 0x10, 5, 1),
313 PIN_FIELD_BASE(20, 20, 2, 0x90, 0x10, 3, 1),
320 PIN_FIELD_BASE(26, 26, 5, 0x30, 0x10, 0, 1),
321 PIN_FIELD_BASE(27, 27, 5, 0x30, 0x10, 4, 1),
322 PIN_FIELD_BASE(28, 28, 5, 0x30, 0x10, 3, 1),
323 PIN_FIELD_BASE(29, 29, 5, 0x30, 0x10, 1, 1),
324 PIN_FIELD_BASE(30, 30, 5, 0x30, 0x10, 2, 1),
325 PIN_FIELD_BASE(31, 31, 5, 0x30, 0x10, 5, 1),
328 PIN_FIELD_BASE(33, 33, 1, 0x20, 0x10, 3, 1),
330 PIN_FIELD_BASE(34, 34, 4, 0x30, 0x10, 5, 1),
333 PIN_FIELD_BASE(36, 36, 3, 0x20, 0x10, 2, 1),
334 PIN_FIELD_BASE(37, 37, 3, 0x20, 0x10, 3, 1),
335 PIN_FIELD_BASE(38, 38, 3, 0x20, 0x10, 0, 1),
336 PIN_FIELD_BASE(39, 39, 3, 0x20, 0x10, 1, 1),
342 PIN_FIELD_BASE(2, 2, 5, 0x40, 0x10, 6, 1),
343 PIN_FIELD_BASE(3, 3, 4, 0x40, 0x10, 6, 1),
345 PIN_FIELD_BASE(5, 5, 4, 0x40, 0x10, 1, 1),
346 PIN_FIELD_BASE(6, 6, 4, 0x40, 0x10, 3, 1),
350 PIN_FIELD_BASE(9, 9, 5, 0x40, 0x10, 9, 1),
351 PIN_FIELD_BASE(10, 10, 5, 0x40, 0x10, 8, 1),
352 PIN_FIELD_BASE(11, 11, 5, 0x40, 0x10, 10, 1),
353 PIN_FIELD_BASE(12, 12, 5, 0x40, 0x10, 7, 1),
354 PIN_FIELD_BASE(13, 13, 5, 0x40, 0x10, 11, 1),
360 PIN_FIELD_BASE(17, 17, 2, 0x40, 0x10, 5, 1),
363 PIN_FIELD_BASE(20, 20, 2, 0x40, 0x10, 3, 1),
370 PIN_FIELD_BASE(26, 26, 5, 0x40, 0x10, 0, 1),
371 PIN_FIELD_BASE(27, 27, 5, 0x40, 0x10, 4, 1),
372 PIN_FIELD_BASE(28, 28, 5, 0x40, 0x10, 3, 1),
373 PIN_FIELD_BASE(29, 29, 5, 0x40, 0x10, 1, 1),
374 PIN_FIELD_BASE(30, 30, 5, 0x40, 0x10, 2, 1),
375 PIN_FIELD_BASE(31, 31, 5, 0x40, 0x10, 5, 1),
378 PIN_FIELD_BASE(33, 33, 1, 0x30, 0x10, 3, 1),
380 PIN_FIELD_BASE(34, 34, 4, 0x40, 0x10, 5, 1),
383 PIN_FIELD_BASE(36, 36, 3, 0x30, 0x10, 2, 1),
384 PIN_FIELD_BASE(37, 37, 3, 0x30, 0x10, 3, 1),
385 PIN_FIELD_BASE(38, 38, 3, 0x30, 0x10, 0, 1),
386 PIN_FIELD_BASE(39, 39, 3, 0x30, 0x10, 1, 1),
392 PIN_FIELD_BASE(2, 2, 5, 0x50, 0x10, 6, 1),
393 PIN_FIELD_BASE(3, 3, 4, 0x50, 0x10, 6, 1),
395 PIN_FIELD_BASE(5, 5, 4, 0x50, 0x10, 1, 1),
396 PIN_FIELD_BASE(6, 6, 4, 0x50, 0x10, 3, 1),
400 PIN_FIELD_BASE(9, 9, 5, 0x50, 0x10, 9, 1),
401 PIN_FIELD_BASE(10, 10, 5, 0x50, 0x10, 8, 1),
402 PIN_FIELD_BASE(11, 11, 5, 0x50, 0x10, 10, 1),
403 PIN_FIELD_BASE(12, 12, 5, 0x50, 0x10, 7, 1),
404 PIN_FIELD_BASE(13, 13, 5, 0x50, 0x10, 11, 1),
410 PIN_FIELD_BASE(17, 17, 2, 0x50, 0x10, 5, 1),
413 PIN_FIELD_BASE(20, 20, 2, 0x50, 0x10, 3, 1),
420 PIN_FIELD_BASE(26, 26, 5, 0x50, 0x10, 0, 1),
421 PIN_FIELD_BASE(27, 27, 5, 0x50, 0x10, 4, 1),
422 PIN_FIELD_BASE(28, 28, 5, 0x50, 0x10, 3, 1),
423 PIN_FIELD_BASE(29, 29, 5, 0x50, 0x10, 1, 1),
424 PIN_FIELD_BASE(30, 30, 5, 0x50, 0x10, 2, 1),
425 PIN_FIELD_BASE(31, 31, 5, 0x50, 0x10, 5, 1),
428 PIN_FIELD_BASE(33, 33, 1, 0x40, 0x10, 3, 1),
430 PIN_FIELD_BASE(34, 34, 4, 0x50, 0x10, 5, 1),
433 PIN_FIELD_BASE(36, 36, 3, 0x40, 0x10, 2, 1),
434 PIN_FIELD_BASE(37, 37, 3, 0x40, 0x10, 3, 1),
435 PIN_FIELD_BASE(38, 38, 3, 0x40, 0x10, 0, 1),
436 PIN_FIELD_BASE(39, 39, 3, 0x40, 0x10, 1, 1),
441 MTK_PULL_PUPD_R1R0_TYPE,/*2*/ MTK_PULL_PUPD_R1R0_TYPE,/*3*/
442 MTK_PULL_PUPD_R1R0_TYPE,/*4*/ MTK_PULL_PUPD_R1R0_TYPE,/*5*/
490 MT7981_PIN(3, "PCIE_PERESET_N"),
492 MT7981_PIN(5, "JTAG_JTDI"),
556 static int mt7981_wa_aice2_funcs[] = { 3, 3, };
559 static int mt7981_wa_aice3_funcs[] = { 3, 3, };
565 static int mt7981_wm_aice2_funcs[] = { 5, 5, };
569 static int mt7981_wm_uart_0_funcs[] = { 5, 5, };
575 static int mt7981_wm_uart_2_funcs[] = { 3, 3, };
578 static int mt7981_dfd_pins[] = { 0, 1, 4, 5, };
579 static int mt7981_dfd_funcs[] = { 5, 5, 6, 6, };
586 static int mt7981_watchdog1_funcs[] = { 5, };
589 static int mt7981_pcie_pereset_pins[] = { 3, };
593 static int mt7981_jtag_pins[] = { 4, 5, 6, 7, 8, };
597 static int mt7981_wm_jtag_0_pins[] = { 4, 5, 6, 7, 8, };
601 static int mt7981_wm_jtag_1_funcs[] = { 5, 5, 5, 5, 5, };
608 static int mt7981_wo0_jtag_1_funcs[] = { 5, 5, 5, 5, 5, };
611 static int mt7981_uart2_0_pins[] = { 4, 5, 6, 7, };
612 static int mt7981_uart2_0_funcs[] = { 3, 3, 3, 3, };
614 static int mt7981_uart2_0_tx_rx_pins[] = { 4, 5, };
615 static int mt7981_uart2_0_tx_rx_funcs[] = { 3, 3, };
619 static int mt7981_gbe_led0_funcs[] = { 3, };
622 static int mt7981_pta_ext_0_pins[] = { 4, 5, 6, };
637 static int mt7981_net_wo0_uart_txd_1_funcs[] = { 3, };
643 static int mt7981_spi1_0_pins[] = { 4, 5, 6, 7, };
644 static int mt7981_spi1_0_funcs[] = { 5, 5, 5, 5, };
660 static int mt7981_u3_phy_i2c_funcs[] = { 3, 3, };
666 static int mt7981_sgmii0_phy_i2c_funcs[] = { 5, 5, };
684 static int mt7981_pwm1_1_funcs[] = { 3, };
688 static int mt7981_gbe_led1_funcs[] = { 3, };
717 static int mt7981_snfi_funcs[] = { 3, 3, 3, 3, 3, 3, };
754 static int mt7981_uart2_1_funcs[] = { 3, 3, 3, 3, };
773 static int mt7981_gbe_ext_mdc_mdio_funcs[] = { 3, 3, };
808 /* @GPIO(0,1): WA_AICE(3) */
810 /* @GPIO(0,1): WM_UART(5) */
812 /* @GPIO(0,1,4,5): DFD(6) */
816 /* @GPIO(3): PCIE_PERESET_N(1) */
824 /* @GPIO(4,7) WM_JTAG(3) */
826 /* @GPIO(4,5) WM_JTAG(4) */
828 /* @GPIO(8) GBE_LED0(3) */
836 /* @GPIO(4,7) SPI1(5) */
838 /* @GPIO(6,7) I2C(5) */
840 /* @GPIO(0,1,4,5): DFD_NTRST(6) */
850 /* @GPIO(15): PWM1(3) */
852 /* @GPIO(14) NET_WO0_UART_TXD(3) */
856 /* @GPIO(13) GBE_LED0(3) */
860 /* @GPIO(13): SYS_WATCHDOG1(5) */
874 /* @GPIO(16,21): SNFI(3) */
894 /* @GPIO(22,25): UART1(3) */
900 /* @GPIO(30,31): WM_UART(3) */
902 /* @GPIO(20,24) WM_JTAG(5) */
904 /* @GPIO(25,29) WO0_JTAG(5) */
906 /* @GPIO(28,29): WA_AICE(3) */
908 /* @GPIO(30,31): WM_AICE(5) */
918 /* @GPIO(32,33): I2C(3) */
920 /* @GPIO(32,33): I2C(5) */
930 /* @GPIO(36,37): MDC_MDIO(3) */
934 /* @GPIO(74,80): WF0_MODE3(3) */
1039 { .compatible = "mediatek,mt7981-pinctrl", },
1050 .name = "mt7981-pinctrl",