1 /*
2  * Copyright (C) Maxime Coquelin 2015
3  * Author:  Maxime Coquelin <mcoquelin.stm32@gmail.com>
4  * License terms:  GNU General Public License (GPL), version 2
5  */
6 #include <linux/init.h>
7 #include <linux/of.h>
8 #include <linux/platform_device.h>
9 
10 #include "pinctrl-stm32.h"
11 
12 static const struct stm32_desc_pin stm32f746_pins[] = {
13 	STM32_PIN(
14 		PINCTRL_PIN(0, "PA0"),
15 		STM32_FUNCTION(0, "GPIOA0"),
16 		STM32_FUNCTION(2, "TIM2_CH1 TIM2_ETR"),
17 		STM32_FUNCTION(3, "TIM5_CH1"),
18 		STM32_FUNCTION(4, "TIM8_ETR"),
19 		STM32_FUNCTION(8, "USART2_CTS"),
20 		STM32_FUNCTION(9, "UART4_TX"),
21 		STM32_FUNCTION(11, "SAI2_SD_B"),
22 		STM32_FUNCTION(12, "ETH_MII_CRS"),
23 		STM32_FUNCTION(16, "EVENTOUT"),
24 		STM32_FUNCTION(17, "ANALOG")
25 	),
26 	STM32_PIN(
27 		PINCTRL_PIN(1, "PA1"),
28 		STM32_FUNCTION(0, "GPIOA1"),
29 		STM32_FUNCTION(2, "TIM2_CH2"),
30 		STM32_FUNCTION(3, "TIM5_CH2"),
31 		STM32_FUNCTION(8, "USART2_RTS"),
32 		STM32_FUNCTION(9, "UART4_RX"),
33 		STM32_FUNCTION(10, "QUADSPI_BK1_IO3"),
34 		STM32_FUNCTION(11, "SAI2_MCLK_B"),
35 		STM32_FUNCTION(12, "ETH_MII_RX_CLK ETH_RMII_REF_CLK"),
36 		STM32_FUNCTION(15, "LCD_R2"),
37 		STM32_FUNCTION(16, "EVENTOUT"),
38 		STM32_FUNCTION(17, "ANALOG")
39 	),
40 	STM32_PIN(
41 		PINCTRL_PIN(2, "PA2"),
42 		STM32_FUNCTION(0, "GPIOA2"),
43 		STM32_FUNCTION(2, "TIM2_CH3"),
44 		STM32_FUNCTION(3, "TIM5_CH3"),
45 		STM32_FUNCTION(4, "TIM9_CH1"),
46 		STM32_FUNCTION(8, "USART2_TX"),
47 		STM32_FUNCTION(9, "SAI2_SCK_B"),
48 		STM32_FUNCTION(12, "ETH_MDIO"),
49 		STM32_FUNCTION(15, "LCD_R1"),
50 		STM32_FUNCTION(16, "EVENTOUT"),
51 		STM32_FUNCTION(17, "ANALOG")
52 	),
53 	STM32_PIN(
54 		PINCTRL_PIN(3, "PA3"),
55 		STM32_FUNCTION(0, "GPIOA3"),
56 		STM32_FUNCTION(2, "TIM2_CH4"),
57 		STM32_FUNCTION(3, "TIM5_CH4"),
58 		STM32_FUNCTION(4, "TIM9_CH2"),
59 		STM32_FUNCTION(8, "USART2_RX"),
60 		STM32_FUNCTION(11, "OTG_HS_ULPI_D0"),
61 		STM32_FUNCTION(12, "ETH_MII_COL"),
62 		STM32_FUNCTION(15, "LCD_B5"),
63 		STM32_FUNCTION(16, "EVENTOUT"),
64 		STM32_FUNCTION(17, "ANALOG")
65 	),
66 	STM32_PIN(
67 		PINCTRL_PIN(4, "PA4"),
68 		STM32_FUNCTION(0, "GPIOA4"),
69 		STM32_FUNCTION(6, "SPI1_NSS I2S1_WS"),
70 		STM32_FUNCTION(7, "SPI3_NSS I2S3_WS"),
71 		STM32_FUNCTION(8, "USART2_CK"),
72 		STM32_FUNCTION(13, "OTG_HS_SOF"),
73 		STM32_FUNCTION(14, "DCMI_HSYNC"),
74 		STM32_FUNCTION(15, "LCD_VSYNC"),
75 		STM32_FUNCTION(16, "EVENTOUT"),
76 		STM32_FUNCTION(17, "ANALOG")
77 	),
78 	STM32_PIN(
79 		PINCTRL_PIN(5, "PA5"),
80 		STM32_FUNCTION(0, "GPIOA5"),
81 		STM32_FUNCTION(2, "TIM2_CH1 TIM2_ETR"),
82 		STM32_FUNCTION(4, "TIM8_CH1N"),
83 		STM32_FUNCTION(6, "SPI1_SCK I2S1_CK"),
84 		STM32_FUNCTION(11, "OTG_HS_ULPI_CK"),
85 		STM32_FUNCTION(15, "LCD_R4"),
86 		STM32_FUNCTION(16, "EVENTOUT"),
87 		STM32_FUNCTION(17, "ANALOG")
88 	),
89 	STM32_PIN(
90 		PINCTRL_PIN(6, "PA6"),
91 		STM32_FUNCTION(0, "GPIOA6"),
92 		STM32_FUNCTION(2, "TIM1_BKIN"),
93 		STM32_FUNCTION(3, "TIM3_CH1"),
94 		STM32_FUNCTION(4, "TIM8_BKIN"),
95 		STM32_FUNCTION(6, "SPI1_MISO"),
96 		STM32_FUNCTION(10, "TIM13_CH1"),
97 		STM32_FUNCTION(14, "DCMI_PIXCLK"),
98 		STM32_FUNCTION(15, "LCD_G2"),
99 		STM32_FUNCTION(16, "EVENTOUT"),
100 		STM32_FUNCTION(17, "ANALOG")
101 	),
102 	STM32_PIN(
103 		PINCTRL_PIN(7, "PA7"),
104 		STM32_FUNCTION(0, "GPIOA7"),
105 		STM32_FUNCTION(2, "TIM1_CH1N"),
106 		STM32_FUNCTION(3, "TIM3_CH2"),
107 		STM32_FUNCTION(4, "TIM8_CH1N"),
108 		STM32_FUNCTION(6, "SPI1_MOSI I2S1_SD"),
109 		STM32_FUNCTION(10, "TIM14_CH1"),
110 		STM32_FUNCTION(12, "ETH_MII_RX_DV ETH_RMII_CRS_DV"),
111 		STM32_FUNCTION(13, "FMC_SDNWE"),
112 		STM32_FUNCTION(16, "EVENTOUT"),
113 		STM32_FUNCTION(17, "ANALOG")
114 	),
115 	STM32_PIN(
116 		PINCTRL_PIN(8, "PA8"),
117 		STM32_FUNCTION(0, "GPIOA8"),
118 		STM32_FUNCTION(1, "MCO1"),
119 		STM32_FUNCTION(2, "TIM1_CH1"),
120 		STM32_FUNCTION(4, "TIM8_BKIN2"),
121 		STM32_FUNCTION(5, "I2C3_SCL"),
122 		STM32_FUNCTION(8, "USART1_CK"),
123 		STM32_FUNCTION(11, "OTG_FS_SOF"),
124 		STM32_FUNCTION(15, "LCD_R6"),
125 		STM32_FUNCTION(16, "EVENTOUT"),
126 		STM32_FUNCTION(17, "ANALOG")
127 	),
128 	STM32_PIN(
129 		PINCTRL_PIN(9, "PA9"),
130 		STM32_FUNCTION(0, "GPIOA9"),
131 		STM32_FUNCTION(2, "TIM1_CH2"),
132 		STM32_FUNCTION(5, "I2C3_SMBA"),
133 		STM32_FUNCTION(6, "SPI2_SCK I2S2_CK"),
134 		STM32_FUNCTION(8, "USART1_TX"),
135 		STM32_FUNCTION(14, "DCMI_D0"),
136 		STM32_FUNCTION(16, "EVENTOUT"),
137 		STM32_FUNCTION(17, "ANALOG")
138 	),
139 	STM32_PIN(
140 		PINCTRL_PIN(10, "PA10"),
141 		STM32_FUNCTION(0, "GPIOA10"),
142 		STM32_FUNCTION(2, "TIM1_CH3"),
143 		STM32_FUNCTION(8, "USART1_RX"),
144 		STM32_FUNCTION(11, "OTG_FS_ID"),
145 		STM32_FUNCTION(14, "DCMI_D1"),
146 		STM32_FUNCTION(16, "EVENTOUT"),
147 		STM32_FUNCTION(17, "ANALOG")
148 	),
149 	STM32_PIN(
150 		PINCTRL_PIN(11, "PA11"),
151 		STM32_FUNCTION(0, "GPIOA11"),
152 		STM32_FUNCTION(2, "TIM1_CH4"),
153 		STM32_FUNCTION(8, "USART1_CTS"),
154 		STM32_FUNCTION(10, "CAN1_RX"),
155 		STM32_FUNCTION(11, "OTG_FS_DM"),
156 		STM32_FUNCTION(15, "LCD_R4"),
157 		STM32_FUNCTION(16, "EVENTOUT"),
158 		STM32_FUNCTION(17, "ANALOG")
159 	),
160 	STM32_PIN(
161 		PINCTRL_PIN(12, "PA12"),
162 		STM32_FUNCTION(0, "GPIOA12"),
163 		STM32_FUNCTION(2, "TIM1_ETR"),
164 		STM32_FUNCTION(8, "USART1_RTS"),
165 		STM32_FUNCTION(9, "SAI2_FS_B"),
166 		STM32_FUNCTION(10, "CAN1_TX"),
167 		STM32_FUNCTION(11, "OTG_FS_DP"),
168 		STM32_FUNCTION(15, "LCD_R5"),
169 		STM32_FUNCTION(16, "EVENTOUT"),
170 		STM32_FUNCTION(17, "ANALOG")
171 	),
172 	STM32_PIN(
173 		PINCTRL_PIN(13, "PA13"),
174 		STM32_FUNCTION(0, "GPIOA13"),
175 		STM32_FUNCTION(1, "JTMS SWDIO"),
176 		STM32_FUNCTION(16, "EVENTOUT"),
177 		STM32_FUNCTION(17, "ANALOG")
178 	),
179 	STM32_PIN(
180 		PINCTRL_PIN(14, "PA14"),
181 		STM32_FUNCTION(0, "GPIOA14"),
182 		STM32_FUNCTION(1, "JTCK SWCLK"),
183 		STM32_FUNCTION(16, "EVENTOUT"),
184 		STM32_FUNCTION(17, "ANALOG")
185 	),
186 	STM32_PIN(
187 		PINCTRL_PIN(15, "PA15"),
188 		STM32_FUNCTION(0, "GPIOA15"),
189 		STM32_FUNCTION(1, "JTDI"),
190 		STM32_FUNCTION(2, "TIM2_CH1 TIM2_ETR"),
191 		STM32_FUNCTION(5, "HDMI_CEC"),
192 		STM32_FUNCTION(6, "SPI1_NSS I2S1_WS"),
193 		STM32_FUNCTION(7, "SPI3_NSS I2S3_WS"),
194 		STM32_FUNCTION(9, "UART4_RTS"),
195 		STM32_FUNCTION(16, "EVENTOUT"),
196 		STM32_FUNCTION(17, "ANALOG")
197 	),
198 	STM32_PIN(
199 		PINCTRL_PIN(16, "PB0"),
200 		STM32_FUNCTION(0, "GPIOB0"),
201 		STM32_FUNCTION(2, "TIM1_CH2N"),
202 		STM32_FUNCTION(3, "TIM3_CH3"),
203 		STM32_FUNCTION(4, "TIM8_CH2N"),
204 		STM32_FUNCTION(9, "UART4_CTS"),
205 		STM32_FUNCTION(10, "LCD_R3"),
206 		STM32_FUNCTION(11, "OTG_HS_ULPI_D1"),
207 		STM32_FUNCTION(12, "ETH_MII_RXD2"),
208 		STM32_FUNCTION(16, "EVENTOUT"),
209 		STM32_FUNCTION(17, "ANALOG")
210 	),
211 	STM32_PIN(
212 		PINCTRL_PIN(17, "PB1"),
213 		STM32_FUNCTION(0, "GPIOB1"),
214 		STM32_FUNCTION(2, "TIM1_CH3N"),
215 		STM32_FUNCTION(3, "TIM3_CH4"),
216 		STM32_FUNCTION(4, "TIM8_CH3N"),
217 		STM32_FUNCTION(10, "LCD_R6"),
218 		STM32_FUNCTION(11, "OTG_HS_ULPI_D2"),
219 		STM32_FUNCTION(12, "ETH_MII_RXD3"),
220 		STM32_FUNCTION(16, "EVENTOUT"),
221 		STM32_FUNCTION(17, "ANALOG")
222 	),
223 	STM32_PIN(
224 		PINCTRL_PIN(18, "PB2"),
225 		STM32_FUNCTION(0, "GPIOB2"),
226 		STM32_FUNCTION(7, "SAI1_SD_A"),
227 		STM32_FUNCTION(8, "SPI3_MOSI I2S3_SD"),
228 		STM32_FUNCTION(10, "QUADSPI_CLK"),
229 		STM32_FUNCTION(16, "EVENTOUT"),
230 		STM32_FUNCTION(17, "ANALOG")
231 	),
232 	STM32_PIN(
233 		PINCTRL_PIN(19, "PB3"),
234 		STM32_FUNCTION(0, "GPIOB3"),
235 		STM32_FUNCTION(1, "JTDO TRACESWO"),
236 		STM32_FUNCTION(2, "TIM2_CH2"),
237 		STM32_FUNCTION(6, "SPI1_SCK I2S1_CK"),
238 		STM32_FUNCTION(7, "SPI3_SCK I2S3_CK"),
239 		STM32_FUNCTION(16, "EVENTOUT"),
240 		STM32_FUNCTION(17, "ANALOG")
241 	),
242 	STM32_PIN(
243 		PINCTRL_PIN(20, "PB4"),
244 		STM32_FUNCTION(0, "GPIOB4"),
245 		STM32_FUNCTION(1, "NJTRST"),
246 		STM32_FUNCTION(3, "TIM3_CH1"),
247 		STM32_FUNCTION(6, "SPI1_MISO"),
248 		STM32_FUNCTION(7, "SPI3_MISO"),
249 		STM32_FUNCTION(8, "SPI2_NSS I2S2_WS"),
250 		STM32_FUNCTION(16, "EVENTOUT"),
251 		STM32_FUNCTION(17, "ANALOG")
252 	),
253 	STM32_PIN(
254 		PINCTRL_PIN(21, "PB5"),
255 		STM32_FUNCTION(0, "GPIOB5"),
256 		STM32_FUNCTION(3, "TIM3_CH2"),
257 		STM32_FUNCTION(5, "I2C1_SMBA"),
258 		STM32_FUNCTION(6, "SPI1_MOSI I2S1_SD"),
259 		STM32_FUNCTION(7, "SPI3_MOSI I2S3_SD"),
260 		STM32_FUNCTION(10, "CAN2_RX"),
261 		STM32_FUNCTION(11, "OTG_HS_ULPI_D7"),
262 		STM32_FUNCTION(12, "ETH_PPS_OUT"),
263 		STM32_FUNCTION(13, "FMC_SDCKE1"),
264 		STM32_FUNCTION(14, "DCMI_D10"),
265 		STM32_FUNCTION(16, "EVENTOUT"),
266 		STM32_FUNCTION(17, "ANALOG")
267 	),
268 	STM32_PIN(
269 		PINCTRL_PIN(22, "PB6"),
270 		STM32_FUNCTION(0, "GPIOB6"),
271 		STM32_FUNCTION(3, "TIM4_CH1"),
272 		STM32_FUNCTION(4, "HDMI_CEC"),
273 		STM32_FUNCTION(5, "I2C1_SCL"),
274 		STM32_FUNCTION(8, "USART1_TX"),
275 		STM32_FUNCTION(10, "CAN2_TX"),
276 		STM32_FUNCTION(11, "QUADSPI_BK1_NCS"),
277 		STM32_FUNCTION(13, "FMC_SDNE1"),
278 		STM32_FUNCTION(14, "DCMI_D5"),
279 		STM32_FUNCTION(16, "EVENTOUT"),
280 		STM32_FUNCTION(17, "ANALOG")
281 	),
282 	STM32_PIN(
283 		PINCTRL_PIN(23, "PB7"),
284 		STM32_FUNCTION(0, "GPIOB7"),
285 		STM32_FUNCTION(3, "TIM4_CH2"),
286 		STM32_FUNCTION(5, "I2C1_SDA"),
287 		STM32_FUNCTION(8, "USART1_RX"),
288 		STM32_FUNCTION(13, "FMC_NL"),
289 		STM32_FUNCTION(14, "DCMI_VSYNC"),
290 		STM32_FUNCTION(16, "EVENTOUT"),
291 		STM32_FUNCTION(17, "ANALOG")
292 	),
293 	STM32_PIN(
294 		PINCTRL_PIN(24, "PB8"),
295 		STM32_FUNCTION(0, "GPIOB8"),
296 		STM32_FUNCTION(3, "TIM4_CH3"),
297 		STM32_FUNCTION(4, "TIM10_CH1"),
298 		STM32_FUNCTION(5, "I2C1_SCL"),
299 		STM32_FUNCTION(10, "CAN1_RX"),
300 		STM32_FUNCTION(12, "ETH_MII_TXD3"),
301 		STM32_FUNCTION(13, "SDMMC1_D4"),
302 		STM32_FUNCTION(14, "DCMI_D6"),
303 		STM32_FUNCTION(15, "LCD_B6"),
304 		STM32_FUNCTION(16, "EVENTOUT"),
305 		STM32_FUNCTION(17, "ANALOG")
306 	),
307 	STM32_PIN(
308 		PINCTRL_PIN(25, "PB9"),
309 		STM32_FUNCTION(0, "GPIOB9"),
310 		STM32_FUNCTION(3, "TIM4_CH4"),
311 		STM32_FUNCTION(4, "TIM11_CH1"),
312 		STM32_FUNCTION(5, "I2C1_SDA"),
313 		STM32_FUNCTION(6, "SPI2_NSS I2S2_WS"),
314 		STM32_FUNCTION(10, "CAN1_TX"),
315 		STM32_FUNCTION(13, "SDMMC1_D5"),
316 		STM32_FUNCTION(14, "DCMI_D7"),
317 		STM32_FUNCTION(15, "LCD_B7"),
318 		STM32_FUNCTION(16, "EVENTOUT"),
319 		STM32_FUNCTION(17, "ANALOG")
320 	),
321 	STM32_PIN(
322 		PINCTRL_PIN(26, "PB10"),
323 		STM32_FUNCTION(0, "GPIOB10"),
324 		STM32_FUNCTION(2, "TIM2_CH3"),
325 		STM32_FUNCTION(5, "I2C2_SCL"),
326 		STM32_FUNCTION(6, "SPI2_SCK I2S2_CK"),
327 		STM32_FUNCTION(8, "USART3_TX"),
328 		STM32_FUNCTION(11, "OTG_HS_ULPI_D3"),
329 		STM32_FUNCTION(12, "ETH_MII_RX_ER"),
330 		STM32_FUNCTION(15, "LCD_G4"),
331 		STM32_FUNCTION(16, "EVENTOUT"),
332 		STM32_FUNCTION(17, "ANALOG")
333 	),
334 	STM32_PIN(
335 		PINCTRL_PIN(27, "PB11"),
336 		STM32_FUNCTION(0, "GPIOB11"),
337 		STM32_FUNCTION(2, "TIM2_CH4"),
338 		STM32_FUNCTION(5, "I2C2_SDA"),
339 		STM32_FUNCTION(8, "USART3_RX"),
340 		STM32_FUNCTION(11, "OTG_HS_ULPI_D4"),
341 		STM32_FUNCTION(12, "ETH_MII_TX_EN ETH_RMII_TX_EN"),
342 		STM32_FUNCTION(15, "LCD_G5"),
343 		STM32_FUNCTION(16, "EVENTOUT"),
344 		STM32_FUNCTION(17, "ANALOG")
345 	),
346 	STM32_PIN(
347 		PINCTRL_PIN(28, "PB12"),
348 		STM32_FUNCTION(0, "GPIOB12"),
349 		STM32_FUNCTION(2, "TIM1_BKIN"),
350 		STM32_FUNCTION(5, "I2C2_SMBA"),
351 		STM32_FUNCTION(6, "SPI2_NSS I2S2_WS"),
352 		STM32_FUNCTION(8, "USART3_CK"),
353 		STM32_FUNCTION(10, "CAN2_RX"),
354 		STM32_FUNCTION(11, "OTG_HS_ULPI_D5"),
355 		STM32_FUNCTION(12, "ETH_MII_TXD0 ETH_RMII_TXD0"),
356 		STM32_FUNCTION(13, "OTG_HS_ID"),
357 		STM32_FUNCTION(16, "EVENTOUT"),
358 		STM32_FUNCTION(17, "ANALOG")
359 	),
360 	STM32_PIN(
361 		PINCTRL_PIN(29, "PB13"),
362 		STM32_FUNCTION(0, "GPIOB13"),
363 		STM32_FUNCTION(2, "TIM1_CH1N"),
364 		STM32_FUNCTION(6, "SPI2_SCK I2S2_CK"),
365 		STM32_FUNCTION(8, "USART3_CTS"),
366 		STM32_FUNCTION(10, "CAN2_TX"),
367 		STM32_FUNCTION(11, "OTG_HS_ULPI_D6"),
368 		STM32_FUNCTION(12, "ETH_MII_TXD1 ETH_RMII_TXD1"),
369 		STM32_FUNCTION(16, "EVENTOUT"),
370 		STM32_FUNCTION(17, "ANALOG")
371 	),
372 	STM32_PIN(
373 		PINCTRL_PIN(30, "PB14"),
374 		STM32_FUNCTION(0, "GPIOB14"),
375 		STM32_FUNCTION(2, "TIM1_CH2N"),
376 		STM32_FUNCTION(4, "TIM8_CH2N"),
377 		STM32_FUNCTION(6, "SPI2_MISO"),
378 		STM32_FUNCTION(8, "USART3_RTS"),
379 		STM32_FUNCTION(10, "TIM12_CH1"),
380 		STM32_FUNCTION(13, "OTG_HS_DM"),
381 		STM32_FUNCTION(16, "EVENTOUT"),
382 		STM32_FUNCTION(17, "ANALOG")
383 	),
384 	STM32_PIN(
385 		PINCTRL_PIN(31, "PB15"),
386 		STM32_FUNCTION(0, "GPIOB15"),
387 		STM32_FUNCTION(1, "RTC_REFIN"),
388 		STM32_FUNCTION(2, "TIM1_CH3N"),
389 		STM32_FUNCTION(4, "TIM8_CH3N"),
390 		STM32_FUNCTION(6, "SPI2_MOSI I2S2_SD"),
391 		STM32_FUNCTION(10, "TIM12_CH2"),
392 		STM32_FUNCTION(13, "OTG_HS_DP"),
393 		STM32_FUNCTION(16, "EVENTOUT"),
394 		STM32_FUNCTION(17, "ANALOG")
395 	),
396 	STM32_PIN(
397 		PINCTRL_PIN(32, "PC0"),
398 		STM32_FUNCTION(0, "GPIOC0"),
399 		STM32_FUNCTION(9, "SAI2_FS_B"),
400 		STM32_FUNCTION(11, "OTG_HS_ULPI_STP"),
401 		STM32_FUNCTION(13, "FMC_SDNWE"),
402 		STM32_FUNCTION(15, "LCD_R5"),
403 		STM32_FUNCTION(16, "EVENTOUT"),
404 		STM32_FUNCTION(17, "ANALOG")
405 	),
406 	STM32_PIN(
407 		PINCTRL_PIN(33, "PC1"),
408 		STM32_FUNCTION(0, "GPIOC1"),
409 		STM32_FUNCTION(1, "TRACED0"),
410 		STM32_FUNCTION(6, "SPI2_MOSI I2S2_SD"),
411 		STM32_FUNCTION(7, "SAI1_SD_A"),
412 		STM32_FUNCTION(12, "ETH_MDC"),
413 		STM32_FUNCTION(16, "EVENTOUT"),
414 		STM32_FUNCTION(17, "ANALOG")
415 	),
416 	STM32_PIN(
417 		PINCTRL_PIN(34, "PC2"),
418 		STM32_FUNCTION(0, "GPIOC2"),
419 		STM32_FUNCTION(6, "SPI2_MISO"),
420 		STM32_FUNCTION(11, "OTG_HS_ULPI_DIR"),
421 		STM32_FUNCTION(12, "ETH_MII_TXD2"),
422 		STM32_FUNCTION(13, "FMC_SDNE0"),
423 		STM32_FUNCTION(16, "EVENTOUT"),
424 		STM32_FUNCTION(17, "ANALOG")
425 	),
426 	STM32_PIN(
427 		PINCTRL_PIN(35, "PC3"),
428 		STM32_FUNCTION(0, "GPIOC3"),
429 		STM32_FUNCTION(6, "SPI2_MOSI I2S2_SD"),
430 		STM32_FUNCTION(11, "OTG_HS_ULPI_NXT"),
431 		STM32_FUNCTION(12, "ETH_MII_TX_CLK"),
432 		STM32_FUNCTION(13, "FMC_SDCKE0"),
433 		STM32_FUNCTION(16, "EVENTOUT"),
434 		STM32_FUNCTION(17, "ANALOG")
435 	),
436 	STM32_PIN(
437 		PINCTRL_PIN(36, "PC4"),
438 		STM32_FUNCTION(0, "GPIOC4"),
439 		STM32_FUNCTION(6, "I2S1_MCK"),
440 		STM32_FUNCTION(9, "SPDIFRX_IN2"),
441 		STM32_FUNCTION(12, "ETH_MII_RXD0 ETH_RMII_RXD0"),
442 		STM32_FUNCTION(13, "FMC_SDNE0"),
443 		STM32_FUNCTION(16, "EVENTOUT"),
444 		STM32_FUNCTION(17, "ANALOG")
445 	),
446 	STM32_PIN(
447 		PINCTRL_PIN(37, "PC5"),
448 		STM32_FUNCTION(0, "GPIOC5"),
449 		STM32_FUNCTION(9, "SPDIFRX_IN3"),
450 		STM32_FUNCTION(12, "ETH_MII_RXD1 ETH_RMII_RXD1"),
451 		STM32_FUNCTION(13, "FMC_SDCKE0"),
452 		STM32_FUNCTION(16, "EVENTOUT"),
453 		STM32_FUNCTION(17, "ANALOG")
454 	),
455 	STM32_PIN(
456 		PINCTRL_PIN(38, "PC6"),
457 		STM32_FUNCTION(0, "GPIOC6"),
458 		STM32_FUNCTION(3, "TIM3_CH1"),
459 		STM32_FUNCTION(4, "TIM8_CH1"),
460 		STM32_FUNCTION(6, "I2S2_MCK"),
461 		STM32_FUNCTION(9, "USART6_TX"),
462 		STM32_FUNCTION(13, "SDMMC1_D6"),
463 		STM32_FUNCTION(14, "DCMI_D0"),
464 		STM32_FUNCTION(15, "LCD_HSYNC"),
465 		STM32_FUNCTION(16, "EVENTOUT"),
466 		STM32_FUNCTION(17, "ANALOG")
467 	),
468 	STM32_PIN(
469 		PINCTRL_PIN(39, "PC7"),
470 		STM32_FUNCTION(0, "GPIOC7"),
471 		STM32_FUNCTION(3, "TIM3_CH2"),
472 		STM32_FUNCTION(4, "TIM8_CH2"),
473 		STM32_FUNCTION(7, "I2S3_MCK"),
474 		STM32_FUNCTION(9, "USART6_RX"),
475 		STM32_FUNCTION(13, "SDMMC1_D7"),
476 		STM32_FUNCTION(14, "DCMI_D1"),
477 		STM32_FUNCTION(15, "LCD_G6"),
478 		STM32_FUNCTION(16, "EVENTOUT"),
479 		STM32_FUNCTION(17, "ANALOG")
480 	),
481 	STM32_PIN(
482 		PINCTRL_PIN(40, "PC8"),
483 		STM32_FUNCTION(0, "GPIOC8"),
484 		STM32_FUNCTION(1, "TRACED1"),
485 		STM32_FUNCTION(3, "TIM3_CH3"),
486 		STM32_FUNCTION(4, "TIM8_CH3"),
487 		STM32_FUNCTION(8, "UART5_RTS"),
488 		STM32_FUNCTION(9, "USART6_CK"),
489 		STM32_FUNCTION(13, "SDMMC1_D0"),
490 		STM32_FUNCTION(14, "DCMI_D2"),
491 		STM32_FUNCTION(16, "EVENTOUT"),
492 		STM32_FUNCTION(17, "ANALOG")
493 	),
494 	STM32_PIN(
495 		PINCTRL_PIN(41, "PC9"),
496 		STM32_FUNCTION(0, "GPIOC9"),
497 		STM32_FUNCTION(1, "MCO2"),
498 		STM32_FUNCTION(3, "TIM3_CH4"),
499 		STM32_FUNCTION(4, "TIM8_CH4"),
500 		STM32_FUNCTION(5, "I2C3_SDA"),
501 		STM32_FUNCTION(6, "I2S_CKIN"),
502 		STM32_FUNCTION(8, "UART5_CTS"),
503 		STM32_FUNCTION(10, "QUADSPI_BK1_IO0"),
504 		STM32_FUNCTION(13, "SDMMC1_D1"),
505 		STM32_FUNCTION(14, "DCMI_D3"),
506 		STM32_FUNCTION(16, "EVENTOUT"),
507 		STM32_FUNCTION(17, "ANALOG")
508 	),
509 	STM32_PIN(
510 		PINCTRL_PIN(42, "PC10"),
511 		STM32_FUNCTION(0, "GPIOC10"),
512 		STM32_FUNCTION(7, "SPI3_SCK I2S3_CK"),
513 		STM32_FUNCTION(8, "USART3_TX"),
514 		STM32_FUNCTION(9, "UART4_TX"),
515 		STM32_FUNCTION(10, "QUADSPI_BK1_IO1"),
516 		STM32_FUNCTION(13, "SDMMC1_D2"),
517 		STM32_FUNCTION(14, "DCMI_D8"),
518 		STM32_FUNCTION(15, "LCD_R2"),
519 		STM32_FUNCTION(16, "EVENTOUT"),
520 		STM32_FUNCTION(17, "ANALOG")
521 	),
522 	STM32_PIN(
523 		PINCTRL_PIN(43, "PC11"),
524 		STM32_FUNCTION(0, "GPIOC11"),
525 		STM32_FUNCTION(7, "SPI3_MISO"),
526 		STM32_FUNCTION(8, "USART3_RX"),
527 		STM32_FUNCTION(9, "UART4_RX"),
528 		STM32_FUNCTION(10, "QUADSPI_BK2_NCS"),
529 		STM32_FUNCTION(13, "SDMMC1_D3"),
530 		STM32_FUNCTION(14, "DCMI_D4"),
531 		STM32_FUNCTION(16, "EVENTOUT"),
532 		STM32_FUNCTION(17, "ANALOG")
533 	),
534 	STM32_PIN(
535 		PINCTRL_PIN(44, "PC12"),
536 		STM32_FUNCTION(0, "GPIOC12"),
537 		STM32_FUNCTION(1, "TRACED3"),
538 		STM32_FUNCTION(7, "SPI3_MOSI I2S3_SD"),
539 		STM32_FUNCTION(8, "USART3_CK"),
540 		STM32_FUNCTION(9, "UART5_TX"),
541 		STM32_FUNCTION(13, "SDMMC1_CK"),
542 		STM32_FUNCTION(14, "DCMI_D9"),
543 		STM32_FUNCTION(16, "EVENTOUT"),
544 		STM32_FUNCTION(17, "ANALOG")
545 	),
546 	STM32_PIN(
547 		PINCTRL_PIN(45, "PC13"),
548 		STM32_FUNCTION(0, "GPIOC13"),
549 		STM32_FUNCTION(16, "EVENTOUT"),
550 		STM32_FUNCTION(17, "ANALOG")
551 	),
552 	STM32_PIN(
553 		PINCTRL_PIN(46, "PC14"),
554 		STM32_FUNCTION(0, "GPIOC14"),
555 		STM32_FUNCTION(16, "EVENTOUT"),
556 		STM32_FUNCTION(17, "ANALOG")
557 	),
558 	STM32_PIN(
559 		PINCTRL_PIN(47, "PC15"),
560 		STM32_FUNCTION(0, "GPIOC15"),
561 		STM32_FUNCTION(16, "EVENTOUT"),
562 		STM32_FUNCTION(17, "ANALOG")
563 	),
564 	STM32_PIN(
565 		PINCTRL_PIN(48, "PD0"),
566 		STM32_FUNCTION(0, "GPIOD0"),
567 		STM32_FUNCTION(10, "CAN1_RX"),
568 		STM32_FUNCTION(13, "FMC_D2"),
569 		STM32_FUNCTION(16, "EVENTOUT"),
570 		STM32_FUNCTION(17, "ANALOG")
571 	),
572 	STM32_PIN(
573 		PINCTRL_PIN(49, "PD1"),
574 		STM32_FUNCTION(0, "GPIOD1"),
575 		STM32_FUNCTION(10, "CAN1_TX"),
576 		STM32_FUNCTION(13, "FMC_D3"),
577 		STM32_FUNCTION(16, "EVENTOUT"),
578 		STM32_FUNCTION(17, "ANALOG")
579 	),
580 	STM32_PIN(
581 		PINCTRL_PIN(50, "PD2"),
582 		STM32_FUNCTION(0, "GPIOD2"),
583 		STM32_FUNCTION(1, "TRACED2"),
584 		STM32_FUNCTION(3, "TIM3_ETR"),
585 		STM32_FUNCTION(9, "UART5_RX"),
586 		STM32_FUNCTION(13, "SDMMC1_CMD"),
587 		STM32_FUNCTION(14, "DCMI_D11"),
588 		STM32_FUNCTION(16, "EVENTOUT"),
589 		STM32_FUNCTION(17, "ANALOG")
590 	),
591 	STM32_PIN(
592 		PINCTRL_PIN(51, "PD3"),
593 		STM32_FUNCTION(0, "GPIOD3"),
594 		STM32_FUNCTION(6, "SPI2_SCK I2S2_CK"),
595 		STM32_FUNCTION(8, "USART2_CTS"),
596 		STM32_FUNCTION(13, "FMC_CLK"),
597 		STM32_FUNCTION(14, "DCMI_D5"),
598 		STM32_FUNCTION(15, "LCD_G7"),
599 		STM32_FUNCTION(16, "EVENTOUT"),
600 		STM32_FUNCTION(17, "ANALOG")
601 	),
602 	STM32_PIN(
603 		PINCTRL_PIN(52, "PD4"),
604 		STM32_FUNCTION(0, "GPIOD4"),
605 		STM32_FUNCTION(8, "USART2_RTS"),
606 		STM32_FUNCTION(13, "FMC_NOE"),
607 		STM32_FUNCTION(16, "EVENTOUT"),
608 		STM32_FUNCTION(17, "ANALOG")
609 	),
610 	STM32_PIN(
611 		PINCTRL_PIN(53, "PD5"),
612 		STM32_FUNCTION(0, "GPIOD5"),
613 		STM32_FUNCTION(8, "USART2_TX"),
614 		STM32_FUNCTION(13, "FMC_NWE"),
615 		STM32_FUNCTION(16, "EVENTOUT"),
616 		STM32_FUNCTION(17, "ANALOG")
617 	),
618 	STM32_PIN(
619 		PINCTRL_PIN(54, "PD6"),
620 		STM32_FUNCTION(0, "GPIOD6"),
621 		STM32_FUNCTION(6, "SPI3_MOSI I2S3_SD"),
622 		STM32_FUNCTION(7, "SAI1_SD_A"),
623 		STM32_FUNCTION(8, "USART2_RX"),
624 		STM32_FUNCTION(13, "FMC_NWAIT"),
625 		STM32_FUNCTION(14, "DCMI_D10"),
626 		STM32_FUNCTION(15, "LCD_B2"),
627 		STM32_FUNCTION(16, "EVENTOUT"),
628 		STM32_FUNCTION(17, "ANALOG")
629 	),
630 	STM32_PIN(
631 		PINCTRL_PIN(55, "PD7"),
632 		STM32_FUNCTION(0, "GPIOD7"),
633 		STM32_FUNCTION(8, "USART2_CK"),
634 		STM32_FUNCTION(9, "SPDIFRX_IN0"),
635 		STM32_FUNCTION(13, "FMC_NE1"),
636 		STM32_FUNCTION(16, "EVENTOUT"),
637 		STM32_FUNCTION(17, "ANALOG")
638 	),
639 	STM32_PIN(
640 		PINCTRL_PIN(56, "PD8"),
641 		STM32_FUNCTION(0, "GPIOD8"),
642 		STM32_FUNCTION(8, "USART3_TX"),
643 		STM32_FUNCTION(9, "SPDIFRX_IN1"),
644 		STM32_FUNCTION(13, "FMC_D13"),
645 		STM32_FUNCTION(16, "EVENTOUT"),
646 		STM32_FUNCTION(17, "ANALOG")
647 	),
648 	STM32_PIN(
649 		PINCTRL_PIN(57, "PD9"),
650 		STM32_FUNCTION(0, "GPIOD9"),
651 		STM32_FUNCTION(8, "USART3_RX"),
652 		STM32_FUNCTION(13, "FMC_D14"),
653 		STM32_FUNCTION(16, "EVENTOUT"),
654 		STM32_FUNCTION(17, "ANALOG")
655 	),
656 	STM32_PIN(
657 		PINCTRL_PIN(58, "PD10"),
658 		STM32_FUNCTION(0, "GPIOD10"),
659 		STM32_FUNCTION(8, "USART3_CK"),
660 		STM32_FUNCTION(13, "FMC_D15"),
661 		STM32_FUNCTION(15, "LCD_B3"),
662 		STM32_FUNCTION(16, "EVENTOUT"),
663 		STM32_FUNCTION(17, "ANALOG")
664 	),
665 	STM32_PIN(
666 		PINCTRL_PIN(59, "PD11"),
667 		STM32_FUNCTION(0, "GPIOD11"),
668 		STM32_FUNCTION(5, "I2C4_SMBA"),
669 		STM32_FUNCTION(8, "USART3_CTS"),
670 		STM32_FUNCTION(10, "QUADSPI_BK1_IO0"),
671 		STM32_FUNCTION(11, "SAI2_SD_A"),
672 		STM32_FUNCTION(13, "FMC_A16 FMC_CLE"),
673 		STM32_FUNCTION(16, "EVENTOUT"),
674 		STM32_FUNCTION(17, "ANALOG")
675 	),
676 	STM32_PIN(
677 		PINCTRL_PIN(60, "PD12"),
678 		STM32_FUNCTION(0, "GPIOD12"),
679 		STM32_FUNCTION(3, "TIM4_CH1"),
680 		STM32_FUNCTION(4, "LPTIM1_IN1"),
681 		STM32_FUNCTION(5, "I2C4_SCL"),
682 		STM32_FUNCTION(8, "USART3_RTS"),
683 		STM32_FUNCTION(10, "QUADSPI_BK1_IO1"),
684 		STM32_FUNCTION(11, "SAI2_FS_A"),
685 		STM32_FUNCTION(13, "FMC_A17 FMC_ALE"),
686 		STM32_FUNCTION(16, "EVENTOUT"),
687 		STM32_FUNCTION(17, "ANALOG")
688 	),
689 	STM32_PIN(
690 		PINCTRL_PIN(61, "PD13"),
691 		STM32_FUNCTION(0, "GPIOD13"),
692 		STM32_FUNCTION(3, "TIM4_CH2"),
693 		STM32_FUNCTION(4, "LPTIM1_OUT"),
694 		STM32_FUNCTION(5, "I2C4_SDA"),
695 		STM32_FUNCTION(10, "QUADSPI_BK1_IO3"),
696 		STM32_FUNCTION(11, "SAI2_SCK_A"),
697 		STM32_FUNCTION(13, "FMC_A18"),
698 		STM32_FUNCTION(16, "EVENTOUT"),
699 		STM32_FUNCTION(17, "ANALOG")
700 	),
701 	STM32_PIN(
702 		PINCTRL_PIN(62, "PD14"),
703 		STM32_FUNCTION(0, "GPIOD14"),
704 		STM32_FUNCTION(3, "TIM4_CH3"),
705 		STM32_FUNCTION(9, "UART8_CTS"),
706 		STM32_FUNCTION(13, "FMC_D0"),
707 		STM32_FUNCTION(16, "EVENTOUT"),
708 		STM32_FUNCTION(17, "ANALOG")
709 	),
710 	STM32_PIN(
711 		PINCTRL_PIN(63, "PD15"),
712 		STM32_FUNCTION(0, "GPIOD15"),
713 		STM32_FUNCTION(3, "TIM4_CH4"),
714 		STM32_FUNCTION(9, "UART8_RTS"),
715 		STM32_FUNCTION(13, "FMC_D1"),
716 		STM32_FUNCTION(16, "EVENTOUT"),
717 		STM32_FUNCTION(17, "ANALOG")
718 	),
719 	STM32_PIN(
720 		PINCTRL_PIN(64, "PE0"),
721 		STM32_FUNCTION(0, "GPIOE0"),
722 		STM32_FUNCTION(3, "TIM4_ETR"),
723 		STM32_FUNCTION(4, "LPTIM1_ETR"),
724 		STM32_FUNCTION(9, "UART8_RX"),
725 		STM32_FUNCTION(11, "SAI2_MCLK_A"),
726 		STM32_FUNCTION(13, "FMC_NBL0"),
727 		STM32_FUNCTION(14, "DCMI_D2"),
728 		STM32_FUNCTION(16, "EVENTOUT"),
729 		STM32_FUNCTION(17, "ANALOG")
730 	),
731 	STM32_PIN(
732 		PINCTRL_PIN(65, "PE1"),
733 		STM32_FUNCTION(0, "GPIOE1"),
734 		STM32_FUNCTION(4, "LPTIM1_IN2"),
735 		STM32_FUNCTION(9, "UART8_TX"),
736 		STM32_FUNCTION(13, "FMC_NBL1"),
737 		STM32_FUNCTION(14, "DCMI_D3"),
738 		STM32_FUNCTION(16, "EVENTOUT"),
739 		STM32_FUNCTION(17, "ANALOG")
740 	),
741 	STM32_PIN(
742 		PINCTRL_PIN(66, "PE2"),
743 		STM32_FUNCTION(0, "GPIOE2"),
744 		STM32_FUNCTION(1, "TRACECLK"),
745 		STM32_FUNCTION(6, "SPI4_SCK"),
746 		STM32_FUNCTION(7, "SAI1_MCLK_A"),
747 		STM32_FUNCTION(10, "QUADSPI_BK1_IO2"),
748 		STM32_FUNCTION(12, "ETH_MII_TXD3"),
749 		STM32_FUNCTION(13, "FMC_A23"),
750 		STM32_FUNCTION(16, "EVENTOUT"),
751 		STM32_FUNCTION(17, "ANALOG")
752 	),
753 	STM32_PIN(
754 		PINCTRL_PIN(67, "PE3"),
755 		STM32_FUNCTION(0, "GPIOE3"),
756 		STM32_FUNCTION(1, "TRACED0"),
757 		STM32_FUNCTION(7, "SAI1_SD_B"),
758 		STM32_FUNCTION(13, "FMC_A19"),
759 		STM32_FUNCTION(16, "EVENTOUT"),
760 		STM32_FUNCTION(17, "ANALOG")
761 	),
762 	STM32_PIN(
763 		PINCTRL_PIN(68, "PE4"),
764 		STM32_FUNCTION(0, "GPIOE4"),
765 		STM32_FUNCTION(1, "TRACED1"),
766 		STM32_FUNCTION(6, "SPI4_NSS"),
767 		STM32_FUNCTION(7, "SAI1_FS_A"),
768 		STM32_FUNCTION(13, "FMC_A20"),
769 		STM32_FUNCTION(14, "DCMI_D4"),
770 		STM32_FUNCTION(15, "LCD_B0"),
771 		STM32_FUNCTION(16, "EVENTOUT"),
772 		STM32_FUNCTION(17, "ANALOG")
773 	),
774 	STM32_PIN(
775 		PINCTRL_PIN(69, "PE5"),
776 		STM32_FUNCTION(0, "GPIOE5"),
777 		STM32_FUNCTION(1, "TRACED2"),
778 		STM32_FUNCTION(4, "TIM9_CH1"),
779 		STM32_FUNCTION(6, "SPI4_MISO"),
780 		STM32_FUNCTION(7, "SAI1_SCK_A"),
781 		STM32_FUNCTION(13, "FMC_A21"),
782 		STM32_FUNCTION(14, "DCMI_D6"),
783 		STM32_FUNCTION(15, "LCD_G0"),
784 		STM32_FUNCTION(16, "EVENTOUT"),
785 		STM32_FUNCTION(17, "ANALOG")
786 	),
787 	STM32_PIN(
788 		PINCTRL_PIN(70, "PE6"),
789 		STM32_FUNCTION(0, "GPIOE6"),
790 		STM32_FUNCTION(1, "TRACED3"),
791 		STM32_FUNCTION(2, "TIM1_BKIN2"),
792 		STM32_FUNCTION(4, "TIM9_CH2"),
793 		STM32_FUNCTION(6, "SPI4_MOSI"),
794 		STM32_FUNCTION(7, "SAI1_SD_A"),
795 		STM32_FUNCTION(11, "SAI2_MCLK_B"),
796 		STM32_FUNCTION(13, "FMC_A22"),
797 		STM32_FUNCTION(14, "DCMI_D7"),
798 		STM32_FUNCTION(15, "LCD_G1"),
799 		STM32_FUNCTION(16, "EVENTOUT"),
800 		STM32_FUNCTION(17, "ANALOG")
801 	),
802 	STM32_PIN(
803 		PINCTRL_PIN(71, "PE7"),
804 		STM32_FUNCTION(0, "GPIOE7"),
805 		STM32_FUNCTION(2, "TIM1_ETR"),
806 		STM32_FUNCTION(9, "UART7_RX"),
807 		STM32_FUNCTION(11, "QUADSPI_BK2_IO0"),
808 		STM32_FUNCTION(13, "FMC_D4"),
809 		STM32_FUNCTION(16, "EVENTOUT"),
810 		STM32_FUNCTION(17, "ANALOG")
811 	),
812 	STM32_PIN(
813 		PINCTRL_PIN(72, "PE8"),
814 		STM32_FUNCTION(0, "GPIOE8"),
815 		STM32_FUNCTION(2, "TIM1_CH1N"),
816 		STM32_FUNCTION(9, "UART7_TX"),
817 		STM32_FUNCTION(11, "QUADSPI_BK2_IO1"),
818 		STM32_FUNCTION(13, "FMC_D5"),
819 		STM32_FUNCTION(16, "EVENTOUT"),
820 		STM32_FUNCTION(17, "ANALOG")
821 	),
822 	STM32_PIN(
823 		PINCTRL_PIN(73, "PE9"),
824 		STM32_FUNCTION(0, "GPIOE9"),
825 		STM32_FUNCTION(2, "TIM1_CH1"),
826 		STM32_FUNCTION(9, "UART7_RTS"),
827 		STM32_FUNCTION(11, "QUADSPI_BK2_IO2"),
828 		STM32_FUNCTION(13, "FMC_D6"),
829 		STM32_FUNCTION(16, "EVENTOUT"),
830 		STM32_FUNCTION(17, "ANALOG")
831 	),
832 	STM32_PIN(
833 		PINCTRL_PIN(74, "PE10"),
834 		STM32_FUNCTION(0, "GPIOE10"),
835 		STM32_FUNCTION(2, "TIM1_CH2N"),
836 		STM32_FUNCTION(9, "UART7_CTS"),
837 		STM32_FUNCTION(11, "QUADSPI_BK2_IO3"),
838 		STM32_FUNCTION(13, "FMC_D7"),
839 		STM32_FUNCTION(16, "EVENTOUT"),
840 		STM32_FUNCTION(17, "ANALOG")
841 	),
842 	STM32_PIN(
843 		PINCTRL_PIN(75, "PE11"),
844 		STM32_FUNCTION(0, "GPIOE11"),
845 		STM32_FUNCTION(2, "TIM1_CH2"),
846 		STM32_FUNCTION(6, "SPI4_NSS"),
847 		STM32_FUNCTION(11, "SAI2_SD_B"),
848 		STM32_FUNCTION(13, "FMC_D8"),
849 		STM32_FUNCTION(15, "LCD_G3"),
850 		STM32_FUNCTION(16, "EVENTOUT"),
851 		STM32_FUNCTION(17, "ANALOG")
852 	),
853 	STM32_PIN(
854 		PINCTRL_PIN(76, "PE12"),
855 		STM32_FUNCTION(0, "GPIOE12"),
856 		STM32_FUNCTION(2, "TIM1_CH3N"),
857 		STM32_FUNCTION(6, "SPI4_SCK"),
858 		STM32_FUNCTION(11, "SAI2_SCK_B"),
859 		STM32_FUNCTION(13, "FMC_D9"),
860 		STM32_FUNCTION(15, "LCD_B4"),
861 		STM32_FUNCTION(16, "EVENTOUT"),
862 		STM32_FUNCTION(17, "ANALOG")
863 	),
864 	STM32_PIN(
865 		PINCTRL_PIN(77, "PE13"),
866 		STM32_FUNCTION(0, "GPIOE13"),
867 		STM32_FUNCTION(2, "TIM1_CH3"),
868 		STM32_FUNCTION(6, "SPI4_MISO"),
869 		STM32_FUNCTION(11, "SAI2_FS_B"),
870 		STM32_FUNCTION(13, "FMC_D10"),
871 		STM32_FUNCTION(15, "LCD_DE"),
872 		STM32_FUNCTION(16, "EVENTOUT"),
873 		STM32_FUNCTION(17, "ANALOG")
874 	),
875 	STM32_PIN(
876 		PINCTRL_PIN(78, "PE14"),
877 		STM32_FUNCTION(0, "GPIOE14"),
878 		STM32_FUNCTION(2, "TIM1_CH4"),
879 		STM32_FUNCTION(6, "SPI4_MOSI"),
880 		STM32_FUNCTION(11, "SAI2_MCLK_B"),
881 		STM32_FUNCTION(13, "FMC_D11"),
882 		STM32_FUNCTION(15, "LCD_CLK"),
883 		STM32_FUNCTION(16, "EVENTOUT"),
884 		STM32_FUNCTION(17, "ANALOG")
885 	),
886 	STM32_PIN(
887 		PINCTRL_PIN(79, "PE15"),
888 		STM32_FUNCTION(0, "GPIOE15"),
889 		STM32_FUNCTION(2, "TIM1_BKIN"),
890 		STM32_FUNCTION(13, "FMC_D12"),
891 		STM32_FUNCTION(15, "LCD_R7"),
892 		STM32_FUNCTION(16, "EVENTOUT"),
893 		STM32_FUNCTION(17, "ANALOG")
894 	),
895 	STM32_PIN(
896 		PINCTRL_PIN(80, "PF0"),
897 		STM32_FUNCTION(0, "GPIOF0"),
898 		STM32_FUNCTION(5, "I2C2_SDA"),
899 		STM32_FUNCTION(13, "FMC_A0"),
900 		STM32_FUNCTION(16, "EVENTOUT"),
901 		STM32_FUNCTION(17, "ANALOG")
902 	),
903 	STM32_PIN(
904 		PINCTRL_PIN(81, "PF1"),
905 		STM32_FUNCTION(0, "GPIOF1"),
906 		STM32_FUNCTION(5, "I2C2_SCL"),
907 		STM32_FUNCTION(13, "FMC_A1"),
908 		STM32_FUNCTION(16, "EVENTOUT"),
909 		STM32_FUNCTION(17, "ANALOG")
910 	),
911 	STM32_PIN(
912 		PINCTRL_PIN(82, "PF2"),
913 		STM32_FUNCTION(0, "GPIOF2"),
914 		STM32_FUNCTION(5, "I2C2_SMBA"),
915 		STM32_FUNCTION(13, "FMC_A2"),
916 		STM32_FUNCTION(16, "EVENTOUT"),
917 		STM32_FUNCTION(17, "ANALOG")
918 	),
919 	STM32_PIN(
920 		PINCTRL_PIN(83, "PF3"),
921 		STM32_FUNCTION(0, "GPIOF3"),
922 		STM32_FUNCTION(13, "FMC_A3"),
923 		STM32_FUNCTION(16, "EVENTOUT"),
924 		STM32_FUNCTION(17, "ANALOG")
925 	),
926 	STM32_PIN(
927 		PINCTRL_PIN(84, "PF4"),
928 		STM32_FUNCTION(0, "GPIOF4"),
929 		STM32_FUNCTION(13, "FMC_A4"),
930 		STM32_FUNCTION(16, "EVENTOUT"),
931 		STM32_FUNCTION(17, "ANALOG")
932 	),
933 	STM32_PIN(
934 		PINCTRL_PIN(85, "PF5"),
935 		STM32_FUNCTION(0, "GPIOF5"),
936 		STM32_FUNCTION(13, "FMC_A5"),
937 		STM32_FUNCTION(16, "EVENTOUT"),
938 		STM32_FUNCTION(17, "ANALOG")
939 	),
940 	STM32_PIN(
941 		PINCTRL_PIN(86, "PF6"),
942 		STM32_FUNCTION(0, "GPIOF6"),
943 		STM32_FUNCTION(4, "TIM10_CH1"),
944 		STM32_FUNCTION(6, "SPI5_NSS"),
945 		STM32_FUNCTION(7, "SAI1_SD_B"),
946 		STM32_FUNCTION(9, "UART7_RX"),
947 		STM32_FUNCTION(10, "QUADSPI_BK1_IO3"),
948 		STM32_FUNCTION(16, "EVENTOUT"),
949 		STM32_FUNCTION(17, "ANALOG")
950 	),
951 	STM32_PIN(
952 		PINCTRL_PIN(87, "PF7"),
953 		STM32_FUNCTION(0, "GPIOF7"),
954 		STM32_FUNCTION(4, "TIM11_CH1"),
955 		STM32_FUNCTION(6, "SPI5_SCK"),
956 		STM32_FUNCTION(7, "SAI1_MCLK_B"),
957 		STM32_FUNCTION(9, "UART7_TX"),
958 		STM32_FUNCTION(10, "QUADSPI_BK1_IO2"),
959 		STM32_FUNCTION(16, "EVENTOUT"),
960 		STM32_FUNCTION(17, "ANALOG")
961 	),
962 	STM32_PIN(
963 		PINCTRL_PIN(88, "PF8"),
964 		STM32_FUNCTION(0, "GPIOF8"),
965 		STM32_FUNCTION(6, "SPI5_MISO"),
966 		STM32_FUNCTION(7, "SAI1_SCK_B"),
967 		STM32_FUNCTION(9, "UART7_RTS"),
968 		STM32_FUNCTION(10, "TIM13_CH1"),
969 		STM32_FUNCTION(11, "QUADSPI_BK1_IO0"),
970 		STM32_FUNCTION(16, "EVENTOUT"),
971 		STM32_FUNCTION(17, "ANALOG")
972 	),
973 	STM32_PIN(
974 		PINCTRL_PIN(89, "PF9"),
975 		STM32_FUNCTION(0, "GPIOF9"),
976 		STM32_FUNCTION(6, "SPI5_MOSI"),
977 		STM32_FUNCTION(7, "SAI1_FS_B"),
978 		STM32_FUNCTION(9, "UART7_CTS"),
979 		STM32_FUNCTION(10, "TIM14_CH1"),
980 		STM32_FUNCTION(11, "QUADSPI_BK1_IO1"),
981 		STM32_FUNCTION(16, "EVENTOUT"),
982 		STM32_FUNCTION(17, "ANALOG")
983 	),
984 	STM32_PIN(
985 		PINCTRL_PIN(90, "PF10"),
986 		STM32_FUNCTION(0, "GPIOF10"),
987 		STM32_FUNCTION(14, "DCMI_D11"),
988 		STM32_FUNCTION(15, "LCD_DE"),
989 		STM32_FUNCTION(16, "EVENTOUT"),
990 		STM32_FUNCTION(17, "ANALOG")
991 	),
992 	STM32_PIN(
993 		PINCTRL_PIN(91, "PF11"),
994 		STM32_FUNCTION(0, "GPIOF11"),
995 		STM32_FUNCTION(6, "SPI5_MOSI"),
996 		STM32_FUNCTION(11, "SAI2_SD_B"),
997 		STM32_FUNCTION(13, "FMC_SDNRAS"),
998 		STM32_FUNCTION(14, "DCMI_D12"),
999 		STM32_FUNCTION(16, "EVENTOUT"),
1000 		STM32_FUNCTION(17, "ANALOG")
1001 	),
1002 	STM32_PIN(
1003 		PINCTRL_PIN(92, "PF12"),
1004 		STM32_FUNCTION(0, "GPIOF12"),
1005 		STM32_FUNCTION(13, "FMC_A6"),
1006 		STM32_FUNCTION(16, "EVENTOUT"),
1007 		STM32_FUNCTION(17, "ANALOG")
1008 	),
1009 	STM32_PIN(
1010 		PINCTRL_PIN(93, "PF13"),
1011 		STM32_FUNCTION(0, "GPIOF13"),
1012 		STM32_FUNCTION(5, "I2C4_SMBA"),
1013 		STM32_FUNCTION(13, "FMC_A7"),
1014 		STM32_FUNCTION(16, "EVENTOUT"),
1015 		STM32_FUNCTION(17, "ANALOG")
1016 	),
1017 	STM32_PIN(
1018 		PINCTRL_PIN(94, "PF14"),
1019 		STM32_FUNCTION(0, "GPIOF14"),
1020 		STM32_FUNCTION(5, "I2C4_SCL"),
1021 		STM32_FUNCTION(13, "FMC_A8"),
1022 		STM32_FUNCTION(16, "EVENTOUT"),
1023 		STM32_FUNCTION(17, "ANALOG")
1024 	),
1025 	STM32_PIN(
1026 		PINCTRL_PIN(95, "PF15"),
1027 		STM32_FUNCTION(0, "GPIOF15"),
1028 		STM32_FUNCTION(5, "I2C4_SDA"),
1029 		STM32_FUNCTION(13, "FMC_A9"),
1030 		STM32_FUNCTION(16, "EVENTOUT"),
1031 		STM32_FUNCTION(17, "ANALOG")
1032 	),
1033 	STM32_PIN(
1034 		PINCTRL_PIN(96, "PG0"),
1035 		STM32_FUNCTION(0, "GPIOG0"),
1036 		STM32_FUNCTION(13, "FMC_A10"),
1037 		STM32_FUNCTION(16, "EVENTOUT"),
1038 		STM32_FUNCTION(17, "ANALOG")
1039 	),
1040 	STM32_PIN(
1041 		PINCTRL_PIN(97, "PG1"),
1042 		STM32_FUNCTION(0, "GPIOG1"),
1043 		STM32_FUNCTION(13, "FMC_A11"),
1044 		STM32_FUNCTION(16, "EVENTOUT"),
1045 		STM32_FUNCTION(17, "ANALOG")
1046 	),
1047 	STM32_PIN(
1048 		PINCTRL_PIN(98, "PG2"),
1049 		STM32_FUNCTION(0, "GPIOG2"),
1050 		STM32_FUNCTION(13, "FMC_A12"),
1051 		STM32_FUNCTION(16, "EVENTOUT"),
1052 		STM32_FUNCTION(17, "ANALOG")
1053 	),
1054 	STM32_PIN(
1055 		PINCTRL_PIN(99, "PG3"),
1056 		STM32_FUNCTION(0, "GPIOG3"),
1057 		STM32_FUNCTION(13, "FMC_A13"),
1058 		STM32_FUNCTION(16, "EVENTOUT"),
1059 		STM32_FUNCTION(17, "ANALOG")
1060 	),
1061 	STM32_PIN(
1062 		PINCTRL_PIN(100, "PG4"),
1063 		STM32_FUNCTION(0, "GPIOG4"),
1064 		STM32_FUNCTION(13, "FMC_A14 FMC_BA0"),
1065 		STM32_FUNCTION(16, "EVENTOUT"),
1066 		STM32_FUNCTION(17, "ANALOG")
1067 	),
1068 	STM32_PIN(
1069 		PINCTRL_PIN(101, "PG5"),
1070 		STM32_FUNCTION(0, "GPIOG5"),
1071 		STM32_FUNCTION(13, "FMC_A15 FMC_BA1"),
1072 		STM32_FUNCTION(16, "EVENTOUT"),
1073 		STM32_FUNCTION(17, "ANALOG")
1074 	),
1075 	STM32_PIN(
1076 		PINCTRL_PIN(102, "PG6"),
1077 		STM32_FUNCTION(0, "GPIOG6"),
1078 		STM32_FUNCTION(14, "DCMI_D12"),
1079 		STM32_FUNCTION(15, "LCD_R7"),
1080 		STM32_FUNCTION(16, "EVENTOUT"),
1081 		STM32_FUNCTION(17, "ANALOG")
1082 	),
1083 	STM32_PIN(
1084 		PINCTRL_PIN(103, "PG7"),
1085 		STM32_FUNCTION(0, "GPIOG7"),
1086 		STM32_FUNCTION(9, "USART6_CK"),
1087 		STM32_FUNCTION(13, "FMC_INT"),
1088 		STM32_FUNCTION(14, "DCMI_D13"),
1089 		STM32_FUNCTION(15, "LCD_CLK"),
1090 		STM32_FUNCTION(16, "EVENTOUT"),
1091 		STM32_FUNCTION(17, "ANALOG")
1092 	),
1093 	STM32_PIN(
1094 		PINCTRL_PIN(104, "PG8"),
1095 		STM32_FUNCTION(0, "GPIOG8"),
1096 		STM32_FUNCTION(6, "SPI6_NSS"),
1097 		STM32_FUNCTION(8, "SPDIFRX_IN2"),
1098 		STM32_FUNCTION(9, "USART6_RTS"),
1099 		STM32_FUNCTION(12, "ETH_PPS_OUT"),
1100 		STM32_FUNCTION(13, "FMC_SDCLK"),
1101 		STM32_FUNCTION(16, "EVENTOUT"),
1102 		STM32_FUNCTION(17, "ANALOG")
1103 	),
1104 	STM32_PIN(
1105 		PINCTRL_PIN(105, "PG9"),
1106 		STM32_FUNCTION(0, "GPIOG9"),
1107 		STM32_FUNCTION(8, "SPDIFRX_IN3"),
1108 		STM32_FUNCTION(9, "USART6_RX"),
1109 		STM32_FUNCTION(10, "QUADSPI_BK2_IO2"),
1110 		STM32_FUNCTION(11, "SAI2_FS_B"),
1111 		STM32_FUNCTION(13, "FMC_NE2 FMC_NCE"),
1112 		STM32_FUNCTION(14, "DCMI_VSYNC"),
1113 		STM32_FUNCTION(16, "EVENTOUT"),
1114 		STM32_FUNCTION(17, "ANALOG")
1115 	),
1116 	STM32_PIN(
1117 		PINCTRL_PIN(106, "PG10"),
1118 		STM32_FUNCTION(0, "GPIOG10"),
1119 		STM32_FUNCTION(10, "LCD_G3"),
1120 		STM32_FUNCTION(11, "SAI2_SD_B"),
1121 		STM32_FUNCTION(13, "FMC_NE3"),
1122 		STM32_FUNCTION(14, "DCMI_D2"),
1123 		STM32_FUNCTION(15, "LCD_B2"),
1124 		STM32_FUNCTION(16, "EVENTOUT"),
1125 		STM32_FUNCTION(17, "ANALOG")
1126 	),
1127 	STM32_PIN(
1128 		PINCTRL_PIN(107, "PG11"),
1129 		STM32_FUNCTION(0, "GPIOG11"),
1130 		STM32_FUNCTION(8, "SPDIFRX_IN0"),
1131 		STM32_FUNCTION(12, "ETH_MII_TX_EN ETH_RMII_TX_EN"),
1132 		STM32_FUNCTION(14, "DCMI_D3"),
1133 		STM32_FUNCTION(15, "LCD_B3"),
1134 		STM32_FUNCTION(16, "EVENTOUT"),
1135 		STM32_FUNCTION(17, "ANALOG")
1136 	),
1137 	STM32_PIN(
1138 		PINCTRL_PIN(108, "PG12"),
1139 		STM32_FUNCTION(0, "GPIOG12"),
1140 		STM32_FUNCTION(4, "LPTIM1_IN1"),
1141 		STM32_FUNCTION(6, "SPI6_MISO"),
1142 		STM32_FUNCTION(8, "SPDIFRX_IN1"),
1143 		STM32_FUNCTION(9, "USART6_RTS"),
1144 		STM32_FUNCTION(10, "LCD_B4"),
1145 		STM32_FUNCTION(13, "FMC_NE4"),
1146 		STM32_FUNCTION(15, "LCD_B1"),
1147 		STM32_FUNCTION(16, "EVENTOUT"),
1148 		STM32_FUNCTION(17, "ANALOG")
1149 	),
1150 	STM32_PIN(
1151 		PINCTRL_PIN(109, "PG13"),
1152 		STM32_FUNCTION(0, "GPIOG13"),
1153 		STM32_FUNCTION(1, "TRACED0"),
1154 		STM32_FUNCTION(4, "LPTIM1_OUT"),
1155 		STM32_FUNCTION(6, "SPI6_SCK"),
1156 		STM32_FUNCTION(9, "USART6_CTS"),
1157 		STM32_FUNCTION(12, "ETH_MII_TXD0 ETH_RMII_TXD0"),
1158 		STM32_FUNCTION(13, "FMC_A24"),
1159 		STM32_FUNCTION(15, "LCD_R0"),
1160 		STM32_FUNCTION(16, "EVENTOUT"),
1161 		STM32_FUNCTION(17, "ANALOG")
1162 	),
1163 	STM32_PIN(
1164 		PINCTRL_PIN(110, "PG14"),
1165 		STM32_FUNCTION(0, "GPIOG14"),
1166 		STM32_FUNCTION(1, "TRACED1"),
1167 		STM32_FUNCTION(4, "LPTIM1_ETR"),
1168 		STM32_FUNCTION(6, "SPI6_MOSI"),
1169 		STM32_FUNCTION(9, "USART6_TX"),
1170 		STM32_FUNCTION(10, "QUADSPI_BK2_IO3"),
1171 		STM32_FUNCTION(12, "ETH_MII_TXD1 ETH_RMII_TXD1"),
1172 		STM32_FUNCTION(13, "FMC_A25"),
1173 		STM32_FUNCTION(15, "LCD_B0"),
1174 		STM32_FUNCTION(16, "EVENTOUT"),
1175 		STM32_FUNCTION(17, "ANALOG")
1176 	),
1177 	STM32_PIN(
1178 		PINCTRL_PIN(111, "PG15"),
1179 		STM32_FUNCTION(0, "GPIOG15"),
1180 		STM32_FUNCTION(9, "USART6_CTS"),
1181 		STM32_FUNCTION(13, "FMC_SDNCAS"),
1182 		STM32_FUNCTION(14, "DCMI_D13"),
1183 		STM32_FUNCTION(16, "EVENTOUT"),
1184 		STM32_FUNCTION(17, "ANALOG")
1185 	),
1186 	STM32_PIN(
1187 		PINCTRL_PIN(112, "PH0"),
1188 		STM32_FUNCTION(0, "GPIOH0"),
1189 		STM32_FUNCTION(16, "EVENTOUT"),
1190 		STM32_FUNCTION(17, "ANALOG")
1191 	),
1192 	STM32_PIN(
1193 		PINCTRL_PIN(113, "PH1"),
1194 		STM32_FUNCTION(0, "GPIOH1"),
1195 		STM32_FUNCTION(16, "EVENTOUT"),
1196 		STM32_FUNCTION(17, "ANALOG")
1197 	),
1198 	STM32_PIN(
1199 		PINCTRL_PIN(114, "PH2"),
1200 		STM32_FUNCTION(0, "GPIOH2"),
1201 		STM32_FUNCTION(4, "LPTIM1_IN2"),
1202 		STM32_FUNCTION(10, "QUADSPI_BK2_IO0"),
1203 		STM32_FUNCTION(11, "SAI2_SCK_B"),
1204 		STM32_FUNCTION(12, "ETH_MII_CRS"),
1205 		STM32_FUNCTION(13, "FMC_SDCKE0"),
1206 		STM32_FUNCTION(15, "LCD_R0"),
1207 		STM32_FUNCTION(16, "EVENTOUT"),
1208 		STM32_FUNCTION(17, "ANALOG")
1209 	),
1210 	STM32_PIN(
1211 		PINCTRL_PIN(115, "PH3"),
1212 		STM32_FUNCTION(0, "GPIOH3"),
1213 		STM32_FUNCTION(10, "QUADSPI_BK2_IO1"),
1214 		STM32_FUNCTION(11, "SAI2_MCLK_B"),
1215 		STM32_FUNCTION(12, "ETH_MII_COL"),
1216 		STM32_FUNCTION(13, "FMC_SDNE0"),
1217 		STM32_FUNCTION(15, "LCD_R1"),
1218 		STM32_FUNCTION(16, "EVENTOUT"),
1219 		STM32_FUNCTION(17, "ANALOG")
1220 	),
1221 	STM32_PIN(
1222 		PINCTRL_PIN(116, "PH4"),
1223 		STM32_FUNCTION(0, "GPIOH4"),
1224 		STM32_FUNCTION(5, "I2C2_SCL"),
1225 		STM32_FUNCTION(11, "OTG_HS_ULPI_NXT"),
1226 		STM32_FUNCTION(16, "EVENTOUT"),
1227 		STM32_FUNCTION(17, "ANALOG")
1228 	),
1229 	STM32_PIN(
1230 		PINCTRL_PIN(117, "PH5"),
1231 		STM32_FUNCTION(0, "GPIOH5"),
1232 		STM32_FUNCTION(5, "I2C2_SDA"),
1233 		STM32_FUNCTION(6, "SPI5_NSS"),
1234 		STM32_FUNCTION(13, "FMC_SDNWE"),
1235 		STM32_FUNCTION(16, "EVENTOUT"),
1236 		STM32_FUNCTION(17, "ANALOG")
1237 	),
1238 	STM32_PIN(
1239 		PINCTRL_PIN(118, "PH6"),
1240 		STM32_FUNCTION(0, "GPIOH6"),
1241 		STM32_FUNCTION(5, "I2C2_SMBA"),
1242 		STM32_FUNCTION(6, "SPI5_SCK"),
1243 		STM32_FUNCTION(10, "TIM12_CH1"),
1244 		STM32_FUNCTION(12, "ETH_MII_RXD2"),
1245 		STM32_FUNCTION(13, "FMC_SDNE1"),
1246 		STM32_FUNCTION(14, "DCMI_D8"),
1247 		STM32_FUNCTION(16, "EVENTOUT"),
1248 		STM32_FUNCTION(17, "ANALOG")
1249 	),
1250 	STM32_PIN(
1251 		PINCTRL_PIN(119, "PH7"),
1252 		STM32_FUNCTION(0, "GPIOH7"),
1253 		STM32_FUNCTION(5, "I2C3_SCL"),
1254 		STM32_FUNCTION(6, "SPI5_MISO"),
1255 		STM32_FUNCTION(12, "ETH_MII_RXD3"),
1256 		STM32_FUNCTION(13, "FMC_SDCKE1"),
1257 		STM32_FUNCTION(14, "DCMI_D9"),
1258 		STM32_FUNCTION(16, "EVENTOUT"),
1259 		STM32_FUNCTION(17, "ANALOG")
1260 	),
1261 	STM32_PIN(
1262 		PINCTRL_PIN(120, "PH8"),
1263 		STM32_FUNCTION(0, "GPIOH8"),
1264 		STM32_FUNCTION(5, "I2C3_SDA"),
1265 		STM32_FUNCTION(13, "FMC_D16"),
1266 		STM32_FUNCTION(14, "DCMI_HSYNC"),
1267 		STM32_FUNCTION(15, "LCD_R2"),
1268 		STM32_FUNCTION(16, "EVENTOUT"),
1269 		STM32_FUNCTION(17, "ANALOG")
1270 	),
1271 	STM32_PIN(
1272 		PINCTRL_PIN(121, "PH9"),
1273 		STM32_FUNCTION(0, "GPIOH9"),
1274 		STM32_FUNCTION(5, "I2C3_SMBA"),
1275 		STM32_FUNCTION(10, "TIM12_CH2"),
1276 		STM32_FUNCTION(13, "FMC_D17"),
1277 		STM32_FUNCTION(14, "DCMI_D0"),
1278 		STM32_FUNCTION(15, "LCD_R3"),
1279 		STM32_FUNCTION(16, "EVENTOUT"),
1280 		STM32_FUNCTION(17, "ANALOG")
1281 	),
1282 	STM32_PIN(
1283 		PINCTRL_PIN(122, "PH10"),
1284 		STM32_FUNCTION(0, "GPIOH10"),
1285 		STM32_FUNCTION(3, "TIM5_CH1"),
1286 		STM32_FUNCTION(5, "I2C4_SMBA"),
1287 		STM32_FUNCTION(13, "FMC_D18"),
1288 		STM32_FUNCTION(14, "DCMI_D1"),
1289 		STM32_FUNCTION(15, "LCD_R4"),
1290 		STM32_FUNCTION(16, "EVENTOUT"),
1291 		STM32_FUNCTION(17, "ANALOG")
1292 	),
1293 	STM32_PIN(
1294 		PINCTRL_PIN(123, "PH11"),
1295 		STM32_FUNCTION(0, "GPIOH11"),
1296 		STM32_FUNCTION(3, "TIM5_CH2"),
1297 		STM32_FUNCTION(5, "I2C4_SCL"),
1298 		STM32_FUNCTION(13, "FMC_D19"),
1299 		STM32_FUNCTION(14, "DCMI_D2"),
1300 		STM32_FUNCTION(15, "LCD_R5"),
1301 		STM32_FUNCTION(16, "EVENTOUT"),
1302 		STM32_FUNCTION(17, "ANALOG")
1303 	),
1304 	STM32_PIN(
1305 		PINCTRL_PIN(124, "PH12"),
1306 		STM32_FUNCTION(0, "GPIOH12"),
1307 		STM32_FUNCTION(3, "TIM5_CH3"),
1308 		STM32_FUNCTION(5, "I2C4_SDA"),
1309 		STM32_FUNCTION(13, "FMC_D20"),
1310 		STM32_FUNCTION(14, "DCMI_D3"),
1311 		STM32_FUNCTION(15, "LCD_R6"),
1312 		STM32_FUNCTION(16, "EVENTOUT"),
1313 		STM32_FUNCTION(17, "ANALOG")
1314 	),
1315 	STM32_PIN(
1316 		PINCTRL_PIN(125, "PH13"),
1317 		STM32_FUNCTION(0, "GPIOH13"),
1318 		STM32_FUNCTION(4, "TIM8_CH1N"),
1319 		STM32_FUNCTION(10, "CAN1_TX"),
1320 		STM32_FUNCTION(13, "FMC_D21"),
1321 		STM32_FUNCTION(15, "LCD_G2"),
1322 		STM32_FUNCTION(16, "EVENTOUT"),
1323 		STM32_FUNCTION(17, "ANALOG")
1324 	),
1325 	STM32_PIN(
1326 		PINCTRL_PIN(126, "PH14"),
1327 		STM32_FUNCTION(0, "GPIOH14"),
1328 		STM32_FUNCTION(4, "TIM8_CH2N"),
1329 		STM32_FUNCTION(13, "FMC_D22"),
1330 		STM32_FUNCTION(14, "DCMI_D4"),
1331 		STM32_FUNCTION(15, "LCD_G3"),
1332 		STM32_FUNCTION(16, "EVENTOUT"),
1333 		STM32_FUNCTION(17, "ANALOG")
1334 	),
1335 	STM32_PIN(
1336 		PINCTRL_PIN(127, "PH15"),
1337 		STM32_FUNCTION(0, "GPIOH15"),
1338 		STM32_FUNCTION(4, "TIM8_CH3N"),
1339 		STM32_FUNCTION(13, "FMC_D23"),
1340 		STM32_FUNCTION(14, "DCMI_D11"),
1341 		STM32_FUNCTION(15, "LCD_G4"),
1342 		STM32_FUNCTION(16, "EVENTOUT"),
1343 		STM32_FUNCTION(17, "ANALOG")
1344 	),
1345 	STM32_PIN(
1346 		PINCTRL_PIN(128, "PI0"),
1347 		STM32_FUNCTION(0, "GPIOI0"),
1348 		STM32_FUNCTION(3, "TIM5_CH4"),
1349 		STM32_FUNCTION(6, "SPI2_NSS I2S2_WS"),
1350 		STM32_FUNCTION(13, "FMC_D24"),
1351 		STM32_FUNCTION(14, "DCMI_D13"),
1352 		STM32_FUNCTION(15, "LCD_G5"),
1353 		STM32_FUNCTION(16, "EVENTOUT"),
1354 		STM32_FUNCTION(17, "ANALOG")
1355 	),
1356 	STM32_PIN(
1357 		PINCTRL_PIN(129, "PI1"),
1358 		STM32_FUNCTION(0, "GPIOI1"),
1359 		STM32_FUNCTION(4, "TIM8_BKIN2"),
1360 		STM32_FUNCTION(6, "SPI2_SCK I2S2_CK"),
1361 		STM32_FUNCTION(13, "FMC_D25"),
1362 		STM32_FUNCTION(14, "DCMI_D8"),
1363 		STM32_FUNCTION(15, "LCD_G6"),
1364 		STM32_FUNCTION(16, "EVENTOUT"),
1365 		STM32_FUNCTION(17, "ANALOG")
1366 	),
1367 	STM32_PIN(
1368 		PINCTRL_PIN(130, "PI2"),
1369 		STM32_FUNCTION(0, "GPIOI2"),
1370 		STM32_FUNCTION(4, "TIM8_CH4"),
1371 		STM32_FUNCTION(6, "SPI2_MISO"),
1372 		STM32_FUNCTION(13, "FMC_D26"),
1373 		STM32_FUNCTION(14, "DCMI_D9"),
1374 		STM32_FUNCTION(15, "LCD_G7"),
1375 		STM32_FUNCTION(16, "EVENTOUT"),
1376 		STM32_FUNCTION(17, "ANALOG")
1377 	),
1378 	STM32_PIN(
1379 		PINCTRL_PIN(131, "PI3"),
1380 		STM32_FUNCTION(0, "GPIOI3"),
1381 		STM32_FUNCTION(4, "TIM8_ETR"),
1382 		STM32_FUNCTION(6, "SPI2_MOSI I2S2_SD"),
1383 		STM32_FUNCTION(13, "FMC_D27"),
1384 		STM32_FUNCTION(14, "DCMI_D10"),
1385 		STM32_FUNCTION(16, "EVENTOUT"),
1386 		STM32_FUNCTION(17, "ANALOG")
1387 	),
1388 	STM32_PIN(
1389 		PINCTRL_PIN(132, "PI4"),
1390 		STM32_FUNCTION(0, "GPIOI4"),
1391 		STM32_FUNCTION(4, "TIM8_BKIN"),
1392 		STM32_FUNCTION(11, "SAI2_MCLK_A"),
1393 		STM32_FUNCTION(13, "FMC_NBL2"),
1394 		STM32_FUNCTION(14, "DCMI_D5"),
1395 		STM32_FUNCTION(15, "LCD_B4"),
1396 		STM32_FUNCTION(16, "EVENTOUT"),
1397 		STM32_FUNCTION(17, "ANALOG")
1398 	),
1399 	STM32_PIN(
1400 		PINCTRL_PIN(133, "PI5"),
1401 		STM32_FUNCTION(0, "GPIOI5"),
1402 		STM32_FUNCTION(4, "TIM8_CH1"),
1403 		STM32_FUNCTION(11, "SAI2_SCK_A"),
1404 		STM32_FUNCTION(13, "FMC_NBL3"),
1405 		STM32_FUNCTION(14, "DCMI_VSYNC"),
1406 		STM32_FUNCTION(15, "LCD_B5"),
1407 		STM32_FUNCTION(16, "EVENTOUT"),
1408 		STM32_FUNCTION(17, "ANALOG")
1409 	),
1410 	STM32_PIN(
1411 		PINCTRL_PIN(134, "PI6"),
1412 		STM32_FUNCTION(0, "GPIOI6"),
1413 		STM32_FUNCTION(4, "TIM8_CH2"),
1414 		STM32_FUNCTION(11, "SAI2_SD_A"),
1415 		STM32_FUNCTION(13, "FMC_D28"),
1416 		STM32_FUNCTION(14, "DCMI_D6"),
1417 		STM32_FUNCTION(15, "LCD_B6"),
1418 		STM32_FUNCTION(16, "EVENTOUT"),
1419 		STM32_FUNCTION(17, "ANALOG")
1420 	),
1421 	STM32_PIN(
1422 		PINCTRL_PIN(135, "PI7"),
1423 		STM32_FUNCTION(0, "GPIOI7"),
1424 		STM32_FUNCTION(4, "TIM8_CH3"),
1425 		STM32_FUNCTION(11, "SAI2_FS_A"),
1426 		STM32_FUNCTION(13, "FMC_D29"),
1427 		STM32_FUNCTION(14, "DCMI_D7"),
1428 		STM32_FUNCTION(15, "LCD_B7"),
1429 		STM32_FUNCTION(16, "EVENTOUT"),
1430 		STM32_FUNCTION(17, "ANALOG")
1431 	),
1432 	STM32_PIN(
1433 		PINCTRL_PIN(136, "PI8"),
1434 		STM32_FUNCTION(0, "GPIOI8"),
1435 		STM32_FUNCTION(16, "EVENTOUT"),
1436 		STM32_FUNCTION(17, "ANALOG")
1437 	),
1438 	STM32_PIN(
1439 		PINCTRL_PIN(137, "PI9"),
1440 		STM32_FUNCTION(0, "GPIOI9"),
1441 		STM32_FUNCTION(10, "CAN1_RX"),
1442 		STM32_FUNCTION(13, "FMC_D30"),
1443 		STM32_FUNCTION(15, "LCD_VSYNC"),
1444 		STM32_FUNCTION(16, "EVENTOUT"),
1445 		STM32_FUNCTION(17, "ANALOG")
1446 	),
1447 	STM32_PIN(
1448 		PINCTRL_PIN(138, "PI10"),
1449 		STM32_FUNCTION(0, "GPIOI10"),
1450 		STM32_FUNCTION(12, "ETH_MII_RX_ER"),
1451 		STM32_FUNCTION(13, "FMC_D31"),
1452 		STM32_FUNCTION(15, "LCD_HSYNC"),
1453 		STM32_FUNCTION(16, "EVENTOUT"),
1454 		STM32_FUNCTION(17, "ANALOG")
1455 	),
1456 	STM32_PIN(
1457 		PINCTRL_PIN(139, "PI11"),
1458 		STM32_FUNCTION(0, "GPIOI11"),
1459 		STM32_FUNCTION(11, "OTG_HS_ULPI_DIR"),
1460 		STM32_FUNCTION(16, "EVENTOUT"),
1461 		STM32_FUNCTION(17, "ANALOG")
1462 	),
1463 	STM32_PIN(
1464 		PINCTRL_PIN(140, "PI12"),
1465 		STM32_FUNCTION(0, "GPIOI12"),
1466 		STM32_FUNCTION(15, "LCD_HSYNC"),
1467 		STM32_FUNCTION(16, "EVENTOUT"),
1468 		STM32_FUNCTION(17, "ANALOG")
1469 	),
1470 	STM32_PIN(
1471 		PINCTRL_PIN(141, "PI13"),
1472 		STM32_FUNCTION(0, "GPIOI13"),
1473 		STM32_FUNCTION(15, "LCD_VSYNC"),
1474 		STM32_FUNCTION(16, "EVENTOUT"),
1475 		STM32_FUNCTION(17, "ANALOG")
1476 	),
1477 	STM32_PIN(
1478 		PINCTRL_PIN(142, "PI14"),
1479 		STM32_FUNCTION(0, "GPIOI14"),
1480 		STM32_FUNCTION(15, "LCD_CLK"),
1481 		STM32_FUNCTION(16, "EVENTOUT"),
1482 		STM32_FUNCTION(17, "ANALOG")
1483 	),
1484 	STM32_PIN(
1485 		PINCTRL_PIN(143, "PI15"),
1486 		STM32_FUNCTION(0, "GPIOI15"),
1487 		STM32_FUNCTION(15, "LCD_R0"),
1488 		STM32_FUNCTION(16, "EVENTOUT"),
1489 		STM32_FUNCTION(17, "ANALOG")
1490 	),
1491 	STM32_PIN(
1492 		PINCTRL_PIN(144, "PJ0"),
1493 		STM32_FUNCTION(0, "GPIOJ0"),
1494 		STM32_FUNCTION(15, "LCD_R1"),
1495 		STM32_FUNCTION(16, "EVENTOUT"),
1496 		STM32_FUNCTION(17, "ANALOG")
1497 	),
1498 	STM32_PIN(
1499 		PINCTRL_PIN(145, "PJ1"),
1500 		STM32_FUNCTION(0, "GPIOJ1"),
1501 		STM32_FUNCTION(15, "LCD_R2"),
1502 		STM32_FUNCTION(16, "EVENTOUT"),
1503 		STM32_FUNCTION(17, "ANALOG")
1504 	),
1505 	STM32_PIN(
1506 		PINCTRL_PIN(146, "PJ2"),
1507 		STM32_FUNCTION(0, "GPIOJ2"),
1508 		STM32_FUNCTION(15, "LCD_R3"),
1509 		STM32_FUNCTION(16, "EVENTOUT"),
1510 		STM32_FUNCTION(17, "ANALOG")
1511 	),
1512 	STM32_PIN(
1513 		PINCTRL_PIN(147, "PJ3"),
1514 		STM32_FUNCTION(0, "GPIOJ3"),
1515 		STM32_FUNCTION(15, "LCD_R4"),
1516 		STM32_FUNCTION(16, "EVENTOUT"),
1517 		STM32_FUNCTION(17, "ANALOG")
1518 	),
1519 	STM32_PIN(
1520 		PINCTRL_PIN(148, "PJ4"),
1521 		STM32_FUNCTION(0, "GPIOJ4"),
1522 		STM32_FUNCTION(15, "LCD_R5"),
1523 		STM32_FUNCTION(16, "EVENTOUT"),
1524 		STM32_FUNCTION(17, "ANALOG")
1525 	),
1526 	STM32_PIN(
1527 		PINCTRL_PIN(149, "PJ5"),
1528 		STM32_FUNCTION(0, "GPIOJ5"),
1529 		STM32_FUNCTION(15, "LCD_R6"),
1530 		STM32_FUNCTION(16, "EVENTOUT"),
1531 		STM32_FUNCTION(17, "ANALOG")
1532 	),
1533 	STM32_PIN(
1534 		PINCTRL_PIN(150, "PJ6"),
1535 		STM32_FUNCTION(0, "GPIOJ6"),
1536 		STM32_FUNCTION(15, "LCD_R7"),
1537 		STM32_FUNCTION(16, "EVENTOUT"),
1538 		STM32_FUNCTION(17, "ANALOG")
1539 	),
1540 	STM32_PIN(
1541 		PINCTRL_PIN(151, "PJ7"),
1542 		STM32_FUNCTION(0, "GPIOJ7"),
1543 		STM32_FUNCTION(15, "LCD_G0"),
1544 		STM32_FUNCTION(16, "EVENTOUT"),
1545 		STM32_FUNCTION(17, "ANALOG")
1546 	),
1547 	STM32_PIN(
1548 		PINCTRL_PIN(152, "PJ8"),
1549 		STM32_FUNCTION(0, "GPIOJ8"),
1550 		STM32_FUNCTION(15, "LCD_G1"),
1551 		STM32_FUNCTION(16, "EVENTOUT"),
1552 		STM32_FUNCTION(17, "ANALOG")
1553 	),
1554 	STM32_PIN(
1555 		PINCTRL_PIN(153, "PJ9"),
1556 		STM32_FUNCTION(0, "GPIOJ9"),
1557 		STM32_FUNCTION(15, "LCD_G2"),
1558 		STM32_FUNCTION(16, "EVENTOUT"),
1559 		STM32_FUNCTION(17, "ANALOG")
1560 	),
1561 	STM32_PIN(
1562 		PINCTRL_PIN(154, "PJ10"),
1563 		STM32_FUNCTION(0, "GPIOJ10"),
1564 		STM32_FUNCTION(15, "LCD_G3"),
1565 		STM32_FUNCTION(16, "EVENTOUT"),
1566 		STM32_FUNCTION(17, "ANALOG")
1567 	),
1568 	STM32_PIN(
1569 		PINCTRL_PIN(155, "PJ11"),
1570 		STM32_FUNCTION(0, "GPIOJ11"),
1571 		STM32_FUNCTION(15, "LCD_G4"),
1572 		STM32_FUNCTION(16, "EVENTOUT"),
1573 		STM32_FUNCTION(17, "ANALOG")
1574 	),
1575 	STM32_PIN(
1576 		PINCTRL_PIN(156, "PJ12"),
1577 		STM32_FUNCTION(0, "GPIOJ12"),
1578 		STM32_FUNCTION(15, "LCD_B0"),
1579 		STM32_FUNCTION(16, "EVENTOUT"),
1580 		STM32_FUNCTION(17, "ANALOG")
1581 	),
1582 	STM32_PIN(
1583 		PINCTRL_PIN(157, "PJ13"),
1584 		STM32_FUNCTION(0, "GPIOJ13"),
1585 		STM32_FUNCTION(15, "LCD_B1"),
1586 		STM32_FUNCTION(16, "EVENTOUT"),
1587 		STM32_FUNCTION(17, "ANALOG")
1588 	),
1589 	STM32_PIN(
1590 		PINCTRL_PIN(158, "PJ14"),
1591 		STM32_FUNCTION(0, "GPIOJ14"),
1592 		STM32_FUNCTION(15, "LCD_B2"),
1593 		STM32_FUNCTION(16, "EVENTOUT"),
1594 		STM32_FUNCTION(17, "ANALOG")
1595 	),
1596 	STM32_PIN(
1597 		PINCTRL_PIN(159, "PJ15"),
1598 		STM32_FUNCTION(0, "GPIOJ15"),
1599 		STM32_FUNCTION(15, "LCD_B3"),
1600 		STM32_FUNCTION(16, "EVENTOUT"),
1601 		STM32_FUNCTION(17, "ANALOG")
1602 	),
1603 	STM32_PIN(
1604 		PINCTRL_PIN(160, "PK0"),
1605 		STM32_FUNCTION(0, "GPIOK0"),
1606 		STM32_FUNCTION(15, "LCD_G5"),
1607 		STM32_FUNCTION(16, "EVENTOUT"),
1608 		STM32_FUNCTION(17, "ANALOG")
1609 	),
1610 	STM32_PIN(
1611 		PINCTRL_PIN(161, "PK1"),
1612 		STM32_FUNCTION(0, "GPIOK1"),
1613 		STM32_FUNCTION(15, "LCD_G6"),
1614 		STM32_FUNCTION(16, "EVENTOUT"),
1615 		STM32_FUNCTION(17, "ANALOG")
1616 	),
1617 	STM32_PIN(
1618 		PINCTRL_PIN(162, "PK2"),
1619 		STM32_FUNCTION(0, "GPIOK2"),
1620 		STM32_FUNCTION(15, "LCD_G7"),
1621 		STM32_FUNCTION(16, "EVENTOUT"),
1622 		STM32_FUNCTION(17, "ANALOG")
1623 	),
1624 	STM32_PIN(
1625 		PINCTRL_PIN(163, "PK3"),
1626 		STM32_FUNCTION(0, "GPIOK3"),
1627 		STM32_FUNCTION(15, "LCD_B4"),
1628 		STM32_FUNCTION(16, "EVENTOUT"),
1629 		STM32_FUNCTION(17, "ANALOG")
1630 	),
1631 	STM32_PIN(
1632 		PINCTRL_PIN(164, "PK4"),
1633 		STM32_FUNCTION(0, "GPIOK4"),
1634 		STM32_FUNCTION(15, "LCD_B5"),
1635 		STM32_FUNCTION(16, "EVENTOUT"),
1636 		STM32_FUNCTION(17, "ANALOG")
1637 	),
1638 	STM32_PIN(
1639 		PINCTRL_PIN(165, "PK5"),
1640 		STM32_FUNCTION(0, "GPIOK5"),
1641 		STM32_FUNCTION(15, "LCD_B6"),
1642 		STM32_FUNCTION(16, "EVENTOUT"),
1643 		STM32_FUNCTION(17, "ANALOG")
1644 	),
1645 	STM32_PIN(
1646 		PINCTRL_PIN(166, "PK6"),
1647 		STM32_FUNCTION(0, "GPIOK6"),
1648 		STM32_FUNCTION(15, "LCD_B7"),
1649 		STM32_FUNCTION(16, "EVENTOUT"),
1650 		STM32_FUNCTION(17, "ANALOG")
1651 	),
1652 	STM32_PIN(
1653 		PINCTRL_PIN(167, "PK7"),
1654 		STM32_FUNCTION(0, "GPIOK7"),
1655 		STM32_FUNCTION(15, "LCD_DE"),
1656 		STM32_FUNCTION(16, "EVENTOUT"),
1657 		STM32_FUNCTION(17, "ANALOG")
1658 	),
1659 };
1660 
1661 static struct stm32_pinctrl_match_data stm32f746_match_data = {
1662 	.pins = stm32f746_pins,
1663 	.npins = ARRAY_SIZE(stm32f746_pins),
1664 };
1665 
1666 static const struct of_device_id stm32f746_pctrl_match[] = {
1667 	{
1668 		.compatible = "st,stm32f746-pinctrl",
1669 		.data = &stm32f746_match_data,
1670 	},
1671 	{ }
1672 };
1673 
1674 static struct platform_driver stm32f746_pinctrl_driver = {
1675 	.probe = stm32_pctl_probe,
1676 	.driver = {
1677 		.name = "stm32f746-pinctrl",
1678 		.of_match_table = stm32f746_pctrl_match,
1679 	},
1680 };
1681 
1682 static int __init stm32f746_pinctrl_init(void)
1683 {
1684 	return platform_driver_register(&stm32f746_pinctrl_driver);
1685 }
1686 arch_initcall(stm32f746_pinctrl_init);
1687