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