1# GD32E507XX pin definitions
2#
3# Sources:
4# - GD32E507XX Datasheet (Revision 1.4)
5# - GD32E50X User Manual (Revision 1.0)
6#
7# Pin codes:
8#
9# - 144 pins: Z
10# - 100 pins: V
11# - 64 pins:  R
12#
13# Memory codes:
14#
15# - 512Kb  Flash, 128Kb  SRAM: E
16# - 256Kb  Flash,  96Kb  SRAM: C
17#
18# Copyright (c) 2022 Teslabs Engineering S.L.
19# SPDX-License-Identifier: Apache 2.0
20
21model: afio
22
23series: gd32e507
24
25variants:
26  - pincode: Z
27    memories: [E, C]
28  - pincode: V
29    memories: [E, C]
30  - pincode: R
31    memories: [E, C]
32
33signal-configs:
34  ADC01_IN0:
35    modes: [analog]
36  ADC01_IN1:
37    modes: [analog]
38  ADC01_IN2:
39    modes: [analog]
40  ADC01_IN3:
41    modes: [analog]
42  ADC01_IN4:
43    modes: [analog]
44  ADC01_IN5:
45    modes: [analog]
46  ADC01_IN6:
47    modes: [analog]
48  ADC01_IN7:
49    modes: [analog]
50  ADC01_IN8:
51    modes: [analog]
52  ADC01_IN9:
53    modes: [analog]
54  ADC01_IN10:
55    modes: [analog]
56  ADC01_IN11:
57    modes: [analog]
58  ADC01_IN12:
59    modes: [analog]
60  ADC01_IN13:
61    modes: [analog]
62  ADC01_IN14:
63    modes: [analog]
64  ADC01_IN15:
65    modes: [analog]
66  CAN0_RX:
67    modes: [inp]
68  CAN0_TX:
69    modes: [out]
70  CAN1_RX:
71    modes: [inp]
72  CAN1_TX:
73    modes: [out]
74  CAN2_RX:
75    modes: [inp]
76  CAN2_TX:
77    modes: [out]
78  CK_OUT:
79    modes: [out]
80  CMP1_IM4:
81    modes: [inp]
82  CMP1_IM5:
83    modes: [inp]
84  CMP1_IM6:
85    modes: [inp]
86  CMP1_IP:
87    modes: [inp]
88  CMP1_OUT:
89    modes: [out]
90  CMP3_IM4:
91    modes: [inp]
92  CMP3_IM5:
93    modes: [inp]
94  CMP3_IM7:
95    modes: [inp]
96  CMP3_IP:
97    modes: [inp]
98  CMP3_OUT:
99    modes: [out]
100  CMP5_IM4:
101    modes: [inp]
102  CMP5_IM5:
103    modes: [inp]
104  CMP5_IM7:
105    modes: [inp]
106  CMP5_IP:
107    modes: [inp]
108  CMP5_OUT:
109    modes: [out]
110  CTC_SYNC:
111    modes: [out]
112  DAC_OUT0:
113    modes: [analog]
114  DAC_OUT1:
115    modes: [analog]
116  ETH_MII_COL:
117    modes: [inp]
118  ETH_MII_CRS:
119    modes: [inp]
120  ETH_MII_MDC:
121    modes: [out]
122  ETH_MII_MDIO:
123    modes: [out]
124  ETH_MII_PPS_OUT:
125    modes: [out]
126  ETH_MII_RX_CLK:
127    modes: [inp]
128  ETH_MII_RX_DV:
129    modes: [inp]
130  ETH_MII_RX_ER:
131    modes: [inp]
132  ETH_MII_RXD0:
133    modes: [inp]
134  ETH_MII_RXD1:
135    modes: [inp]
136  ETH_MII_RXD2:
137    modes: [inp]
138  ETH_MII_RXD3:
139    modes: [inp]
140  ETH_MII_TX_CLK:
141    modes: [inp]
142  ETH_MII_TX_EN:
143    modes: [out]
144  ETH_MII_TXD0:
145    modes: [out]
146  ETH_MII_TXD1:
147    modes: [out]
148  ETH_MII_TXD2:
149    modes: [out]
150  ETH_MII_TXD3:
151    modes: [out]
152  ETH_RMII_CRS_DV:
153    modes: [inp]
154  ETH_RMII_MDC:
155    modes: [out]
156  ETH_RMII_MDIO:
157    modes: [out]
158  ETH_RMII_PPS_OUT:
159    modes: [out]
160  ETH_RMII_REF_CLK:
161    modes: [inp]
162  ETH_RMII_RXD0:
163    modes: [inp]
164  ETH_RMII_RXD1:
165    modes: [inp]
166  ETH_RMII_TX_EN:
167    modes: [out]
168  ETH_RMII_TXD0:
169    modes: [out]
170  ETH_RMII_TXD1:
171    modes: [out]
172  EXMC_A0:
173    modes: [out]
174    exclude-pincodes: [R]
175  EXMC_A1:
176    modes: [out]
177    exclude-pincodes: [R]
178  EXMC_A2:
179    modes: [out]
180    exclude-pincodes: [R]
181  EXMC_A3:
182    modes: [out]
183    exclude-pincodes: [R]
184  EXMC_A4:
185    modes: [out]
186    exclude-pincodes: [R]
187  EXMC_A5:
188    modes: [out]
189    exclude-pincodes: [R]
190  EXMC_A6:
191    modes: [out]
192    exclude-pincodes: [R]
193  EXMC_A7:
194    modes: [out]
195    exclude-pincodes: [R]
196  EXMC_A8:
197    modes: [out]
198    exclude-pincodes: [R]
199  EXMC_A9:
200    modes: [out]
201    exclude-pincodes: [R]
202  EXMC_A10:
203    modes: [out]
204    exclude-pincodes: [R]
205  EXMC_A11:
206    modes: [out]
207    exclude-pincodes: [R]
208  EXMC_A12:
209    modes: [out]
210    exclude-pincodes: [R]
211  EXMC_A13:
212    modes: [out]
213    exclude-pincodes: [R]
214  EXMC_A14:
215    modes: [out]
216    exclude-pincodes: [R]
217  EXMC_A15:
218    modes: [out]
219    exclude-pincodes: [R]
220  EXMC_A16:
221    modes: [out]
222    exclude-pincodes: [R]
223  EXMC_A17:
224    modes: [out]
225    exclude-pincodes: [R]
226  EXMC_A18:
227    modes: [out]
228    exclude-pincodes: [R]
229  EXMC_A19:
230    modes: [out]
231    exclude-pincodes: [R]
232  EXMC_A20:
233    modes: [out]
234    exclude-pincodes: [R]
235  EXMC_A21:
236    modes: [out]
237    exclude-pincodes: [R]
238  EXMC_A22:
239    modes: [out]
240    exclude-pincodes: [R]
241  EXMC_A23:
242    modes: [out]
243    exclude-pincodes: [R]
244  EXMC_A24:
245    modes: [out]
246    exclude-pincodes: [R]
247  EXMC_A25:
248    modes: [out]
249    exclude-pincodes: [R]
250  EXMC_CD:
251    modes: [inp]
252  EXMC_CLK:
253    modes: [out]
254    exclude-pincodes: [R]
255  EXMC_D0:
256    modes: [out]
257    exclude-pincodes: [R]
258  EXMC_D1:
259    modes: [out]
260    exclude-pincodes: [R]
261  EXMC_D2:
262    modes: [out]
263    exclude-pincodes: [R]
264  EXMC_D3:
265    modes: [out]
266    exclude-pincodes: [R]
267  EXMC_D4:
268    modes: [out]
269    exclude-pincodes: [R]
270  EXMC_D5:
271    modes: [out]
272    exclude-pincodes: [R]
273  EXMC_D6:
274    modes: [out]
275    exclude-pincodes: [R]
276  EXMC_D7:
277    modes: [out]
278    exclude-pincodes: [R]
279  EXMC_D8:
280    modes: [out]
281    exclude-pincodes: [R]
282  EXMC_D9:
283    modes: [out]
284    exclude-pincodes: [R]
285  EXMC_D10:
286    modes: [out]
287    exclude-pincodes: [R]
288  EXMC_D11:
289    modes: [out]
290    exclude-pincodes: [R]
291  EXMC_D12:
292    modes: [out]
293    exclude-pincodes: [R]
294  EXMC_D13:
295    modes: [out]
296    exclude-pincodes: [R]
297  EXMC_D14:
298    modes: [out]
299    exclude-pincodes: [R]
300  EXMC_D15:
301    modes: [out]
302    exclude-pincodes: [R]
303  EXMC_INT1:
304    modes: [inp]
305  EXMC_INT2:
306    modes: [inp]
307  EXMC_INTR:
308    modes: [inp]
309  EXMC_NADV:
310    modes: [out]
311    exclude-pincodes: [R]
312  EXMC_NBL0:
313    modes: [out]
314    exclude-pincodes: [R]
315  EXMC_NBL1:
316    modes: [out]
317    exclude-pincodes: [R]
318  EXMC_NCE1:
319    modes: [out]
320    exclude-pincodes: [R]
321  EXMC_NCE2:
322    modes: [out]
323    exclude-pincodes: [R]
324  EXMC_NCE3_0:
325    modes: [out]
326    exclude-pincodes: [R]
327  EXMC_NCE3_1:
328    modes: [out]
329    exclude-pincodes: [R]
330  EXMC_NE0:
331    modes: [out]
332    exclude-pincodes: [R]
333  EXMC_NE1:
334    modes: [out]
335    exclude-pincodes: [R]
336  EXMC_NE2:
337    modes: [out]
338    exclude-pincodes: [R]
339  EXMC_NE3:
340    modes: [out]
341    exclude-pincodes: [R]
342  EXMC_NIORD:
343    modes: [out]
344    exclude-pincodes: [R]
345  EXMC_NIOS16:
346    modes: [inp]
347  EXMC_NIOWR:
348    modes: [out]
349    exclude-pincodes: [R]
350  EXMC_NOE:
351    modes: [out]
352    exclude-pincodes: [R]
353  EXMC_NREG:
354    modes: [out]
355    exclude-pincodes: [R]
356  EXMC_NWAIT:
357    modes: [inp]
358  EXMC_NWE:
359    modes: [out]
360    exclude-pincodes: [R]
361  I2C0_SCL:
362    modes: [out]
363  I2C0_SDA:
364    modes: [out]
365  I2C0_SMBA:
366    modes: [out]
367  I2C0_TXFRAME:
368    modes: [out]
369  I2C1_SCL:
370    modes: [out]
371  I2C1_SDA:
372    modes: [out]
373  I2C1_SMBA:
374    modes: [out]
375  I2C1_TXFRAME:
376    modes: [out]
377  I2C2_SCL:
378    modes: [out]
379  I2C2_SDA:
380    modes: [out]
381  I2C2_SMBA:
382    modes: [out]
383  I2S1_ADD_SD:
384    modes: [inp, out]
385  I2S1_CK:
386    modes: [inp, out]
387  I2S1_MCK:
388    modes: [out]
389  I2S1_SD:
390    modes: [inp, out]
391  I2S1_WS:
392    modes: [inp, out]
393  I2S2_ADD_SD:
394    modes: [inp, out]
395  I2S2_CK:
396    modes: [inp, out]
397  I2S2_MCK:
398    modes: [out]
399  I2S2_SD:
400    modes: [inp, out]
401  I2S2_WS:
402    modes: [inp, out]
403  OSC32IN:
404    modes: [inp]
405  OSC32OUT:
406    modes: [out]
407  SHRTIMER_EXEV0:
408    modes: [inp]
409  SHRTIMER_EXEV1:
410    modes: [inp]
411  SHRTIMER_EXEV2:
412    modes: [inp]
413  SHRTIMER_EXEV3:
414    modes: [inp]
415  SHRTIMER_EXEV4:
416    modes: [inp]
417  SHRTIMER_EXEV5:
418    modes: [inp]
419  SHRTIMER_EXEV6:
420    modes: [inp]
421  SHRTIMER_EXEV7:
422    modes: [inp]
423  SHRTIMER_EXEV8:
424    modes: [inp]
425  SHRTIMER_FLT0:
426    modes: [inp]
427  SHRTIMER_FLT1:
428    modes: [inp]
429  SHRTIMER_FLT2:
430    modes: [inp]
431  SHRTIMER_FLT3:
432    modes: [inp]
433  SHRTIMER_FLT4:
434    modes: [inp]
435  SHRTIMER_SCIN:
436    modes: [inp]
437  SHRTIMER_SCOUT:
438    modes: [out]
439  SHRTIMER_ST0CH0:
440    modes: [out]
441  SHRTIMER_ST0CH1:
442    modes: [out]
443  SHRTIMER_ST1CH0:
444    modes: [out]
445  SHRTIMER_ST1CH1:
446    modes: [out]
447  SHRTIMER_ST2CH0:
448    modes: [out]
449  SHRTIMER_ST2CH1:
450    modes: [out]
451  SHRTIMER_ST3CH0:
452    modes: [out]
453  SHRTIMER_ST3CH1:
454    modes: [out]
455  SHRTIMER_ST4CH0:
456    modes: [out]
457  SHRTIMER_ST4CH1:
458    modes: [out]
459  SQPI_CLK:
460    modes: [out]
461  SQPI_CSN:
462    modes: [out]
463  SQPI_D0:
464    modes: [out]
465  SQPI_D1:
466    modes: [out]
467  SQPI_D2:
468    modes: [out]
469  SQPI_D3:
470    modes: [out]
471  SPI0_IO2:
472    modes: [out]
473  SPI0_IO3:
474    modes: [out]
475  SPI0_MISO:
476    modes: [inp, out]
477  SPI0_MOSI:
478    modes: [inp, out]
479  SPI0_NSS:
480    modes: [inp, out]
481  SPI0_SCK:
482    modes: [inp, out]
483  SPI1_MISO:
484    modes: [inp, out]
485  SPI1_MOSI:
486    modes: [inp, out]
487  SPI1_NSS:
488    modes: [inp, out]
489  SPI1_SCK:
490    modes: [inp, out]
491  SPI2_MISO:
492    modes: [inp, out]
493  SPI2_MOSI:
494    modes: [inp, out]
495  SPI2_NSS:
496    modes: [inp, out]
497  SPI2_SCK:
498    modes: [inp, out]
499  TAMPER_RTC:
500    modes: [inp]
501  TIMER0_BRKIN:
502    modes: [inp]
503  TIMER0_CH0:
504    modes: [inp, out]
505  TIMER0_CH0_ON:
506    modes: [out]
507  TIMER0_CH1:
508    modes: [inp, out]
509  TIMER0_CH1_ON:
510    modes: [out]
511  TIMER0_CH2:
512    modes: [inp, out]
513  TIMER0_CH2_ON:
514    modes: [out]
515  TIMER0_CH3:
516    modes: [inp, out]
517  TIMER0_ETI:
518    modes: [inp]
519  TIMER1_CH0:
520    modes: [inp, out]
521  TIMER1_CH1:
522    modes: [inp, out]
523  TIMER1_CH2:
524    modes: [inp, out]
525  TIMER1_CH3:
526    modes: [inp, out]
527  TIMER1_ETI:
528    modes: [inp]
529  TIMER2_CH0:
530    modes: [inp, out]
531  TIMER2_CH1:
532    modes: [inp, out]
533  TIMER2_CH2:
534    modes: [inp, out]
535  TIMER2_CH3:
536    modes: [inp, out]
537  TIMER2_ETI:
538    modes: [inp]
539  TIMER3_CH0:
540    modes: [inp, out]
541  TIMER3_CH1:
542    modes: [inp, out]
543  TIMER3_CH2:
544    modes: [inp, out]
545  TIMER3_CH3:
546    modes: [inp, out]
547  TIMER3_ETI:
548    modes: [inp]
549  TIMER4_CH0:
550    modes: [inp, out]
551  TIMER4_CH1:
552    modes: [inp, out]
553  TIMER4_CH2:
554    modes: [inp, out]
555  TIMER4_CH3:
556    modes: [inp, out]
557  TIMER7_ETI:
558    modes: [inp]
559    exclude-memories: [C]
560  TIMER7_BRKIN:
561    modes: [inp]
562    exclude-memories: [C]
563  TIMER7_CH0:
564    modes: [inp, out]
565    exclude-memories: [C]
566  TIMER7_CH0_ON:
567    modes: [out]
568    exclude-memories: [C]
569  TIMER7_CH1:
570    modes: [inp, out]
571    exclude-memories: [C]
572  TIMER7_CH1_ON:
573    modes: [out]
574    exclude-memories: [C]
575  TIMER7_CH2:
576    modes: [inp, out]
577    exclude-memories: [C]
578  TIMER7_CH2_ON:
579    modes: [out]
580    exclude-memories: [C]
581  TIMER7_CH3:
582    modes: [inp, out]
583    exclude-memories: [C]
584  TIMER8_CH0:
585    modes: [inp, out]
586    exclude-memories: [C]
587  TIMER8_CH1:
588    modes: [inp, out]
589    exclude-memories: [C]
590  TIMER9_CH0:
591    modes: [inp, out]
592    exclude-memories: [C]
593  TIMER10_CH0:
594    modes: [inp, out]
595    exclude-memories: [C]
596  TIMER11_CH0:
597    modes: [inp, out]
598    exclude-memories: [C]
599  TIMER11_CH1:
600    modes: [inp, out]
601    exclude-memories: [C]
602  TIMER12_CH0:
603    modes: [inp, out]
604    exclude-memories: [C]
605  TIMER13_CH0:
606    modes: [inp, out]
607    exclude-memories: [C]
608  UART3_RX:
609    modes: [inp]
610  UART3_TX:
611    modes: [out]
612  UART4_RX:
613    modes: [inp]
614  UART4_TX:
615    modes: [out]
616  USART0_CK:
617    modes: [out]
618  USART0_CTS:
619    modes: [inp]
620  USART0_RTS:
621    modes: [out]
622  USART0_RX:
623    modes: [inp]
624  USART0_TX:
625    modes: [out]
626  USART1_CK:
627    modes: [out]
628  USART1_CTS:
629    modes: [inp]
630  USART1_RTS:
631    modes: [out]
632  USART1_RX:
633    modes: [inp]
634  USART1_TX:
635    modes: [out]
636  USART2_CK:
637    modes: [out]
638  USART2_CTS:
639    modes: [inp]
640  USART2_RTS:
641    modes: [out]
642  USART2_RX:
643    modes: [inp]
644  USART2_TX:
645    modes: [out]
646  USART5_CK:
647    modes: [out]
648  USART5_RX:
649    modes: [inp]
650  USART5_TX:
651    modes: [out]
652  USBHS_DM:
653    modes: [inp, out]
654  USBHS_DP:
655    modes: [inp, out]
656  USBHS_ID:
657    modes: [inp, out]
658  USBHS_SOF:
659    modes: [out]
660  USBHS_ULPI_CK:
661    modes: [inp]
662  USBHS_ULPI_D0:
663    modes: [inp, out]
664  USBHS_ULPI_D1:
665    modes: [inp, out]
666  USBHS_ULPI_D2:
667    modes: [inp, out]
668  USBHS_ULPI_D3:
669    modes: [inp, out]
670  USBHS_ULPI_D4:
671    modes: [inp, out]
672  USBHS_ULPI_D5:
673    modes: [inp, out]
674  USBHS_ULPI_D6:
675    modes: [inp, out]
676  USBHS_ULPI_D7:
677    modes: [inp, out]
678  USBHS_ULPI_DIR:
679    modes: [inp]
680  USBHS_ULPI_NXT:
681    modes: [inp]
682  USBHS_VBUS:
683    modes: [inp]
684  WKUP0:
685    modes: [inp]
686  WKUP1:
687    modes: [inp]
688  WKUP2:
689    modes: [inp]
690  WKUP3:
691    modes: [inp]
692  WKUP4:
693    modes: [inp]
694  WKUP5:
695    modes: [inp]
696  WKUP6:
697    modes: [inp]
698  WKUP7:
699    modes: [inp]
700
701pins:
702  PA0:
703    pincodes: [Z, V, R]
704    afs: [WKUP0, USART1_CTS, ADC01_IN0, TIMER1_CH0, TIMER1_ETI, TIMER4_CH0, TIMER7_ETI, ETH_MII_CRS]
705  PA1:
706    pincodes: [Z, V, R]
707    afs: [USART1_RTS, ADC01_IN1, TIMER4_CH1, TIMER1_CH1, ETH_MII_RX_CLK, ETH_RMII_REF_CLK]
708  PA2:
709    pincodes: [Z, V, R]
710    afs: [CMP1_OUT, USART1_TX, TIMER4_CH2, ADC01_IN2, TIMER8_CH0, TIMER1_CH2, ETH_MII_MDIO, ETH_RMII_MDIO, SPI0_IO2, WKUP3, CMP1_IM6]
711  PA3:
712    pincodes: [Z, V, R]
713    afs: [USBHS_ULPI_D0, USART1_RX, TIMER4_CH3, ADC01_IN3, TIMER1_CH3, TIMER8_CH1, ETH_MII_COL, SPI0_IO3]
714  PA4:
715    pincodes: [Z, V, R]
716    afs: [SPI0_NSS, USART1_CK, DAC_OUT0, ADC01_IN4, CMP1_IM4, CMP3_IM4, CMP5_IM4]
717  PA5:
718    pincodes: [Z, V, R]
719    afs: [USBHS_ULPI_CK, SPI0_SCK, ADC01_IN5, DAC_OUT1, CMP1_IM5, CMP3_IM5, CMP5_IM5]
720  PA6:
721    pincodes: [Z, V, R]
722    afs: [SPI0_MISO, TIMER7_BRKIN, ADC01_IN6, TIMER2_CH0, TIMER12_CH0]
723  PA7:
724    pincodes: [Z, V, R]
725    afs: [SPI0_MOSI, TIMER7_CH0_ON, ADC01_IN7, TIMER2_CH1, TIMER13_CH0, ETH_MII_RX_DV, ETH_RMII_CRS_DV, CMP1_IP]
726  PA8:
727    pincodes: [Z, V, R]
728    afs: [SHRTIMER_ST0CH0, I2C2_SCL, USART0_CK, TIMER0_CH0, CK_OUT, USBHS_SOF, CTC_SYNC]
729  PA9:
730    pincodes: [Z, V, R]
731    afs: [CAN2_RX, SHRTIMER_ST0CH1, I2C2_SMBA, USART0_TX, TIMER0_CH1, USBHS_VBUS]
732  PA10:
733    pincodes: [Z, V, R]
734    afs: [CAN2_TX, CMP5_OUT, SHRTIMER_ST1CH0, USART0_RX, TIMER0_CH2, USBHS_ID]
735  PA11:
736    pincodes: [Z, V, R]
737    afs: [SHRTIMER_ST1CH1, USART5_TX, USART0_CTS, CAN0_RX, TIMER0_CH3, USBHS_DM]
738  PA12:
739    pincodes: [Z, V, R]
740    afs: [CMP1_OUT, SHRTIMER_FLT0, USART5_RX, USART0_RTS, CAN0_TX, TIMER0_ETI, USBHS_DP]
741  PA13:
742    pincodes: [Z, V, R]
743    afs: []
744  PA14:
745    pincodes: [Z, V, R]
746    afs: []
747  PA15:
748    pincodes: [Z, V, R]
749    afs: [SHRTIMER_FLT1, SPI2_NSS, I2S2_WS]
750  PB0:
751    pincodes: [Z, V, R]
752    afs: [USBHS_ULPI_D1, ADC01_IN8, TIMER2_CH2, TIMER7_CH1_ON, ETH_MII_RXD2, CMP3_IP]
753  PB1:
754    pincodes: [Z, V, R]
755    afs: [CMP3_OUT, USBHS_ULPI_D2, SHRTIMER_SCOUT, ADC01_IN9, TIMER2_CH3, TIMER7_CH2_ON, ETH_MII_RXD3]
756  PB2:
757    pincodes: [Z, V, R]
758    afs: [USBHS_ULPI_D4, SHRTIMER_SCIN, CMP3_IM7]
759  PB3:
760    pincodes: [Z, V, R]
761    afs: [SHRTIMER_SCOUT, SHRTIMER_EXEV8, SPI2_SCK, I2S2_CK]
762  PB4:
763    pincodes: [Z, V, R]
764    afs: [SHRTIMER_EXEV6, I2C2_SDA, I2S2_ADD_SD, SPI2_MISO, I2C0_TXFRAME]
765  PB5:
766    pincodes: [Z, V, R]
767    afs: [USBHS_ULPI_D7, SHRTIMER_EXEV5, I2C2_SCL, I2C0_SMBA, SPI2_MOSI, I2S2_SD, ETH_MII_PPS_OUT, ETH_RMII_PPS_OUT, WKUP5]
768  PB6:
769    pincodes: [Z, V, R]
770    afs: [SHRTIMER_SCIN, SHRTIMER_EXEV3, I2C0_SCL, TIMER3_CH0]
771  PB7:
772    pincodes: [Z, V, R]
773    afs: [SHRTIMER_EXEV2, I2C0_SDA , TIMER3_CH1, EXMC_NADV]
774  PB8:
775    pincodes: [Z, V, R]
776    afs: [SHRTIMER_EXEV7, I2C2_SDA, TIMER3_CH2, TIMER9_CH0, ETH_MII_TXD3]
777  PB9:
778    pincodes: [Z, V, R]
779    afs: [CMP1_OUT, SHRTIMER_EXEV4, IMER3_CH3, TIMER10_CH0]
780  PB10:
781    pincodes: [Z, V, R]
782    afs: [CAN2_RX, USBHS_ULPI_D3, SHRTIMER_FLT2, I2C1_SCL, USART2_TX, ETH_MII_RX_ER]
783  PB11:
784    pincodes: [Z, V, R]
785    afs: [CAN2_TX, USBHS_ULPI_D4, SHRTIMER_FLT3, I2C1_SDA, USART2_RX, ETH_MII_TX_EN, ETH_RMII_TX_EN, CMP5_IP]
786  PB12:
787    pincodes: [Z, V, R]
788    afs: [USBHS_ULPI_D5, SHRTIMER_ST2CH0, SPI1_NSS, I2S1_WS, I2C1_SMBA, USART2_CK, TIMER0_BRKIN, CAN1_RX, ETH_MII_TXD0, ETH_RMII_TXD0]
789  PB13:
790    pincodes: [Z, V, R]
791    afs: [USBHS_ULPI_D6, SHRTIMER_ST2CH1, SPI1_SCK, I2S1_CK, USART2_CTS, TIMER0_CH0_ON, CAN1_TX, ETH_MII_TXD1, ETH_RMII_TXD1, I2C1_TXFRAME]
792  PB14:
793    pincodes: [Z, V, R]
794    afs: [SHRTIMER_ST3CH0, I2S1_ADD_SD, SPI1_MISO, USART2_RTS, TIMER0_CH1_ON, TIMER11_CH0]
795  PB15:
796    pincodes: [Z, V, R]
797    afs: [SHRTIMER_ST3CH1, SPI1_MOSI, TIMER0_CH2_ON, I2S1_SD, TIMER11_CH1, WKUP6, CMP5_IM7]
798  PC0:
799    pincodes: [Z, V, R]
800    afs: [USBHS_ULPI_STP, ADC01_IN10]
801  PC1:
802    pincodes: [Z, V, R]
803    afs: [ADC01_IN11, ETH_MII_MDC, ETH_RMII_MDC]
804  PC2:
805    pincodes: [Z, V, R]
806    afs: [USBHS_ULPI_DIR, I2S1_ADD_SD, ADC01_IN12, ETH_MII_TXD2]
807  PC3:
808    pincodes: [Z, V, R]
809    afs: [USBHS_ULPI_NXT, ADC01_IN13, ETH_MII_TX_CLK]
810  PC4:
811    pincodes: [Z, V, R]
812    afs: [ADC01_IN14, ETH_MII_RXD0, ETH_RMII_RXD0]
813  PC5:
814    pincodes: [Z, V, R]
815    afs: [ADC01_IN15, ETH_MII_RXD1, ETH_RMII_RXD1]
816  PC6:
817    pincodes: [Z, V, R]
818    afs: [SHRTIMER_EXEV9, CMP5_OUT, USART5_TX, I2S1_MCK, TIMER7_CH0]
819  PC7:
820    pincodes: [Z, V, R]
821    afs: [SHRTIMER_FLT4, USART5_RX, I2S2_MCK, TIMER7_CH1]
822  PC8:
823    pincodes: [Z, V, R]
824    afs: [SHRTIMER_ST4CH0, USART5_CK, TIMER7_CH2]
825  PC9:
826    pincodes: [Z, V, R]
827    afs: [SHRTIMER_ST4CH1, I2C2_SDA, TIMER7_CH3]
828  PC10:
829    pincodes: [Z, V, R]
830    afs: [I2C2_SCL, UART3_TX]
831  PC11:
832    pincodes: [Z, V, R]
833    afs: [SHRTIMER_EXEV1, I2S2_ADD_SD, UART3_RX]
834  PC12:
835    pincodes: [Z, V, R]
836    afs: [SHRTIMER_EXEV0, UART4_TX]
837  PC13:
838    pincodes: [Z, V, R]
839    afs: [TAMPER_RTC, WKUP1]
840  PC14:
841    pincodes: [Z, V, R]
842    afs: [OSC32IN]
843  PC15:
844    pincodes: [Z, V, R]
845    afs: [OSC32OUT]
846  PD0:
847    pincodes: [Z, V]
848    afs: [EXMC_D2]
849  PD1:
850    pincodes: [Z, V]
851    afs: [EXMC_D3]
852  PD2:
853    pincodes: [Z, V, R]
854    afs: [TIMER2_ETI, UART4_RX]
855  PD3:
856    pincodes: [Z, V]
857    afs: [EXMC_CLK]
858  PD4:
859    pincodes: [Z, V]
860    afs: [SHRTIMER_FLT2, EXMC_NOE]
861  PD5:
862    pincodes: [Z, V]
863    afs: [SHRTIMER_EXEV2, EXMC_NWE]
864  PD6:
865    pincodes: [Z, V]
866    afs: [EXMC_NWAIT]
867  PD7:
868    pincodes: [Z, V]
869    afs: [EXMC_NE0, EXMC_NCE1]
870  PD8:
871    pincodes: [Z, V]
872    afs: [EXMC_D13]
873  PD9:
874    pincodes: [Z, V]
875    afs: [EXMC_D14]
876  PD10:
877    pincodes: [Z, V]
878    afs: [EXMC_D15]
879  PD11:
880    pincodes: [Z, V]
881    afs: [EXMC_A16]
882  PD12:
883    pincodes: [Z, V]
884    afs: [EXMC_A17]
885  PD13:
886    pincodes: [Z, V]
887    afs: [EXMC_A18]
888  PD14:
889    pincodes: [Z, V]
890    afs: [EXMC_D0]
891  PD15:
892    pincodes: [Z, V]
893    afs: [EXMC_D1]
894  PE0:
895    pincodes: [Z, V]
896    afs: [CAN2_RX, SHRTIMER_SCIN, TIMER3_ETI, EXMC_NBL0]
897  PE1:
898    pincodes: [Z, V]
899    afs: [CAN2_TX, SHRTIMER_SCOUT, EXMC_NBL1]
900  PE2:
901    pincodes: [Z, V]
902    afs: [EXMC_A23]
903  PE3:
904    pincodes: [Z, V]
905    afs: [EXMC_A19]
906  PE4:
907    pincodes: [Z, V]
908    afs: [EXMC_A20]
909  PE5:
910    pincodes: [Z, V]
911    afs: [EXMC_A21]
912  PE6:
913    pincodes: [Z, V]
914    afs: [EXMC_A22, WKUP2]
915  PE7:
916    pincodes: [Z, V]
917    afs: [EXMC_D4]
918  PE8:
919    pincodes: [Z, V]
920    afs: [CMP1_OUT, EXMC_D5]
921  PE9:
922    pincodes: [Z, V]
923    afs: [CMP3_OUT, EXMC_D6]
924  PE10:
925    pincodes: [Z, V]
926    afs: [CMP5_OUT, EXMC_D7]
927  PE11:
928    pincodes: [Z, V]
929    afs: [CMP5_OUT, EXMC_D8]
930  PE12:
931    pincodes: [Z, V]
932    afs: [CMP3_OUT, EXMC_D9]
933  PE13:
934    pincodes: [Z, V]
935    afs: [CMP1_OUT, EXMC_D10]
936  PE14:
937    pincodes: [Z, V]
938    afs: [EXMC_D11]
939  PE15:
940    pincodes: [Z, V]
941    afs: [EXMC_D12]
942  PF0:
943    pincodes: [Z]
944    afs: [EXMC_A0, SQPI_D0]
945  PF1:
946    pincodes: [Z]
947    afs: [EXMC_A1]
948  PF2:
949    pincodes: [Z]
950    afs: [EXMC_A2, SQPI_D2]
951  PF3:
952    pincodes: [Z]
953    afs: [EXMC_A3]
954  PF4:
955    pincodes: [Z]
956    afs: [EXMC_A4, SQPI_D1]
957  PF5:
958    pincodes: [Z]
959    afs: [EXMC_A5]
960  PF6:
961    pincodes: [Z]
962    afs: [EXMC_NIORD, SQPI_CSN]
963  PF7:
964    pincodes: [Z]
965    afs: [EXMC_NREG]
966  PF8:
967    pincodes: [Z]
968    afs: [EXMC_NIOWR, WKUP7, SQPI_CLK]
969  PF9:
970    pincodes: [Z]
971    afs: [EXMC_CD]
972  PF10:
973    pincodes: [Z]
974    afs: [EXMC_INTR, SQPI_D3]
975  PF11:
976    pincodes: [Z]
977    afs: [EXMC_NIOS16]
978  PF12:
979    pincodes: [Z]
980    afs: [EXMC_A6]
981  PF13:
982    pincodes: [Z]
983    afs: [EXMC_A7]
984  PF14:
985    pincodes: [Z]
986    afs: [EXMC_A8]
987  PF15:
988    pincodes: [Z]
989    afs: [EXMC_A9]
990  PG0:
991    pincodes: [Z]
992    afs: [EXMC_A10]
993  PG1:
994    pincodes: [Z]
995    afs: [EXMC_A11]
996  PG2:
997    pincodes: [Z]
998    afs: [EXMC_A12]
999  PG3:
1000    pincodes: [Z]
1001    afs: [EXMC_A13]
1002  PG4:
1003    pincodes: [Z]
1004    afs: [EXMC_A14, SQPI_CSN]
1005  PG5:
1006    pincodes: [Z]
1007    afs: [EXMC_A15]
1008  PG6:
1009    pincodes: [Z]
1010    afs: [SHRTIMER_ST4CH0, EXMC_INT1, SQPI_D1]
1011  PG7:
1012    pincodes: [Z]
1013    afs: [SHRTIMER_ST4CH1, USART5_CK, EXMC_INT2]
1014  PG8:
1015    pincodes: [Z]
1016    afs: [SQPI_D2]
1017  PG9:
1018    pincodes: [Z]
1019    afs: [USART5_RX, EXMC_NE1, EXMC_NCE2]
1020  PG10:
1021    pincodes: [Z]
1022    afs: [SHRTIMER_FLT4, EXMC_NCE3_0, EXMC_NE2]
1023  PG11:
1024    pincodes: [Z]
1025    afs: [SHRTIMER_EXEV3, EXMC_NCE3_1]
1026  PG12:
1027    pincodes: [Z]
1028    afs: [SHRTIMER_EXEV4, EXMC_NE3]
1029  PG13:
1030    pincodes: [Z]
1031    afs: [SHRTIMER_EXEV9, EXMC_A24]
1032  PG14:
1033    pincodes: [Z]
1034    afs: [USART5_TX, EXMC_A25]
1035  PG15:
1036    pincodes: [Z]
1037    afs: []
1038
1039remaps:
1040  CAN0_RX:
1041    pins: [PA11, null, PB8, PD0]
1042  CAN0_TX:
1043    pins: [PA12, null, PB9, PD1]
1044  CAN1_RX:
1045    pins: [PB12, PB5]
1046  CAN1_TX:
1047    pins: [PB13, PB6]
1048  CTC_SYNC:
1049    pins: [PA8, PD15, null, PF0]
1050  ETH_MII_RX_DV:
1051    pins: [PA7, PD8]
1052  ETH_MII_RXD0:
1053    pins: [PC4, PD9]
1054  ETH_MII_RXD1:
1055    pins: [PC5, PD10]
1056  ETH_MII_RXD2:
1057    pins: [PB0, PD11]
1058  ETH_MII_RXD3:
1059    pins: [PB1, PD12]
1060  ETH_RMII_CRS_DV:
1061    pins: [PA7, PD8]
1062  ETH_RMII_RXD0:
1063    pins: [PC4, PD9]
1064  ETH_RMII_RXD1:
1065    pins: [PC5, PD10]
1066  I2C0_SCL:
1067    pins: [PB6, PB8]
1068  I2C0_SDA:
1069    pins: [PB7, PB9]
1070  I2S2_SD:
1071    pins: [PB5, PC12]
1072  I2S2_WS:
1073    pins: [PA15, PA4]
1074  I2S2_CK:
1075    pins: [PB3, PC10]
1076  SPI0_IO2:
1077    pins: [PA2, PB6]
1078  SPI0_IO3:
1079    pins: [PA3, PB7]
1080  SPI0_MISO:
1081    pins: [PA6, PB4]
1082  SPI0_MOSI:
1083    pins: [PA7, PB5]
1084  SPI0_NSS:
1085    pins: [PA4, PA15]
1086  SPI0_SCK:
1087    pins: [PA5, PB3]
1088  SPI2_MISO:
1089    pins: [PB4, PC11]
1090  SPI2_MOSI:
1091    pins: [PB5, PC12]
1092  SPI2_NSS:
1093    pins: [PA15, PA4]
1094  SPI2_SCK:
1095    pins: [PB3, PC10]
1096  TIMER0_BKIN:
1097    pins: [PB12, PA6, null, PE15]
1098  TIMER0_CH0:
1099    pins: [PA8, PA8, null, PE9]
1100  TIMER0_CH1:
1101    pins: [PA9, PA9, null, PE11]
1102  TIMER0_CH2:
1103    pins: [PA10, PA10, null, PE13]
1104  TIMER0_CH3:
1105    pins: [PA11, PA11, null, PE14]
1106  TIMER0_CH0_ON:
1107    pins: [PB13, PA7, null, PE8]
1108  TIMER0_CH1_ON:
1109    pins: [PB14, PB0, null, PE10]
1110  TIMER0_CH2_ON:
1111    pins: [PB15, PB1, null, PE12]
1112  TIMER0_ETI:
1113    pins: [PA12, PA12, null, PE7]
1114  TIMER1_CH0:
1115    pins: [PA0, PA15, PA0, PA15]
1116  TIMER1_CH1:
1117    pins: [PA1, PB3, PA1, PB3]
1118  TIMER1_CH2:
1119    pins: [PA2, PA2, PB10, PB10]
1120  TIMER1_CH3:
1121    pins: [PA3, PA3, PB11, PB11]
1122  TIMER1_ETI:
1123    pins: [PA0, PA15, PA0, PA15]
1124  TIMER2_CH0:
1125    pins: [PA6, null, PB4, PC6]
1126  TIMER2_CH1:
1127    pins: [PA7, null, PB5, PC7]
1128  TIMER2_CH2:
1129    pins: [PB0, null, PB0, PC8]
1130  TIMER2_CH3:
1131    pins: [PB1, null, PB1, PC9]
1132  TIMER3_CH0:
1133    pins: [PB6, PD12]
1134  TIMER3_CH1:
1135    pins: [PB7, PD13]
1136  TIMER3_CH2:
1137    pins: [PB8, PD14]
1138  TIMER3_CH3:
1139    pins: [PB9, PD15]
1140  TIMER8_CH0:
1141    pins: [PA2, PE5]
1142  TIMER8_CH1:
1143    pins: [PA3, PE6]
1144  TIMER9_CH0:
1145    pins: [PB8, PF6]
1146  TIMER10_CH0:
1147    pins: [PB9, PF7]
1148  TIMER12_CH0:
1149    pins: [PA6, PF8]
1150  TIMER13_CH0:
1151    pins: [PA7, PF9]
1152  USART0_RX:
1153    pins: [PA10, PB7]
1154  USART0_TX:
1155    pins: [PA9, PB6]
1156  USART1_CK:
1157    pins: [PA4, PD7]
1158  USART1_CTS:
1159    pins: [PA0, PD3]
1160  USART1_RTS:
1161    pins: [PA1, PD4]
1162  USART1_RX:
1163    pins: [PA3, PD6]
1164  USART1_TX:
1165    pins: [PA2, PD5]
1166  USART2_CK:
1167    pins: [PB12, PC12, null, PD10]
1168  USART2_CTS:
1169    pins: [PB13, PB13, null, PD11]
1170  USART2_RTS:
1171    pins: [PB14, PB14, null, PD12]
1172  USART2_RX:
1173    pins: [PB11, PC11, null, PD9]
1174  USART2_TX:
1175    pins: [PB10, PC10, null, PD8]
1176