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