blob: c01d39f03ea41ebcc748eece0382753cf865340f [file] [log] [blame]
Patrick Delaunay8e34fbb2022-05-20 18:24:39 +02001// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2/*
3 * Copyright (C) STMicroelectronics 2021 - All Rights Reserved
4 * Author: Alexandre Torgue <alexandre.torgue@foss.st.com>
5 */
6#include <dt-bindings/pinctrl/stm32-pinfunc.h>
7
8&pinctrl {
Marek Vasut726f6342024-04-28 00:20:37 +02009 adc1_pins_a: adc1-pins-0 {
10 pins {
11 pinmux = <STM32_PINMUX('A', 3, ANALOG)>; /* ADC1 in12 */
12 };
13 };
14
Patrick Delaunay7f2cba42023-04-24 16:21:10 +020015 adc1_usb_cc_pins_a: adc1-usb-cc-pins-0 {
16 pins {
17 pinmux = <STM32_PINMUX('F', 12, ANALOG)>, /* ADC1 in6 */
18 <STM32_PINMUX('A', 3, ANALOG)>; /* ADC1 in12 */
19 };
20 };
21
Marek Vasut726f6342024-04-28 00:20:37 +020022 adc1_usb_cc_pins_b: adc1-usb-cc-pins-1 {
23 pins {
24 pinmux = <STM32_PINMUX('A', 5, ANALOG)>, /* ADC1_INP2 */
25 <STM32_PINMUX('F', 13, ANALOG)>; /* ADC1_INP11 */
26 };
27 };
28
29 eth1_rgmii_pins_a: eth1-rgmii-0 {
30 pins1 {
31 pinmux = <STM32_PINMUX('G', 13, AF11)>, /* ETH_RGMII_TXD0 */
32 <STM32_PINMUX('G', 14, AF11)>, /* ETH_RGMII_TXD1 */
33 <STM32_PINMUX('C', 2, AF11)>, /* ETH_RGMII_TXD2 */
34 <STM32_PINMUX('E', 5, AF10)>, /* ETH_RGMII_TXD3 */
35 <STM32_PINMUX('B', 11, AF11)>, /* ETH_RGMII_TX_CTL */
36 <STM32_PINMUX('C', 1, AF11)>, /* ETH_RGMII_GTX_CLK */
37 <STM32_PINMUX('A', 2, AF11)>, /* ETH_MDIO */
38 <STM32_PINMUX('G', 2, AF11)>; /* ETH_MDC */
39 bias-disable;
40 drive-push-pull;
41 slew-rate = <2>;
42 };
43
44 pins2 {
45 pinmux = <STM32_PINMUX('C', 4, AF11)>, /* ETH_RGMII_RXD0 */
46 <STM32_PINMUX('C', 5, AF11)>, /* ETH_RGMII_RXD1 */
47 <STM32_PINMUX('B', 0, AF11)>, /* ETH_RGMII_RXD2 */
48 <STM32_PINMUX('B', 1, AF11)>, /* ETH_RGMII_RXD3 */
49 <STM32_PINMUX('A', 7, AF11)>, /* ETH_RGMII_RX_CTL */
50 <STM32_PINMUX('D', 7, AF10)>; /* ETH_RGMII_RX_CLK */
51 bias-disable;
52 };
53
54 };
55
56 eth1_rgmii_sleep_pins_a: eth1-rgmii-sleep-0 {
57 pins1 {
58 pinmux = <STM32_PINMUX('G', 13, ANALOG)>, /* ETH_RGMII_TXD0 */
59 <STM32_PINMUX('G', 14, ANALOG)>, /* ETH_RGMII_TXD1 */
60 <STM32_PINMUX('C', 2, ANALOG)>, /* ETH_RGMII_TXD2 */
61 <STM32_PINMUX('E', 5, ANALOG)>, /* ETH_RGMII_TXD3 */
62 <STM32_PINMUX('B', 11, ANALOG)>, /* ETH_RGMII_TX_CTL */
63 <STM32_PINMUX('C', 1, ANALOG)>, /* ETH_RGMII_GTX_CLK */
64 <STM32_PINMUX('A', 2, ANALOG)>, /* ETH_MDIO */
65 <STM32_PINMUX('G', 2, ANALOG)>, /* ETH_MDC */
66 <STM32_PINMUX('C', 4, ANALOG)>, /* ETH_RGMII_RXD0 */
67 <STM32_PINMUX('C', 5, ANALOG)>, /* ETH_RGMII_RXD1 */
68 <STM32_PINMUX('B', 0, ANALOG)>, /* ETH_RGMII_RXD1 */
69 <STM32_PINMUX('B', 1, ANALOG)>, /* ETH_RGMII_RXD1 */
70 <STM32_PINMUX('A', 7, ANALOG)>, /* ETH_RGMII_RX_CTL */
71 <STM32_PINMUX('D', 7, ANALOG)>; /* ETH_RGMII_RX_CLK */
72 };
73 };
74
75 eth2_rgmii_pins_a: eth2-rgmii-0 {
76 pins1 {
77 pinmux = <STM32_PINMUX('F', 7, AF11)>, /* ETH_RGMII_TXD0 */
78 <STM32_PINMUX('G', 11, AF10)>, /* ETH_RGMII_TXD1 */
79 <STM32_PINMUX('G', 1, AF10)>, /* ETH_RGMII_TXD2 */
80 <STM32_PINMUX('E', 6, AF11)>, /* ETH_RGMII_TXD3 */
81 <STM32_PINMUX('F', 6, AF11)>, /* ETH_RGMII_TX_CTL */
82 <STM32_PINMUX('G', 3, AF10)>, /* ETH_RGMII_GTX_CLK */
83 <STM32_PINMUX('B', 6, AF11)>, /* ETH_MDIO */
84 <STM32_PINMUX('G', 5, AF10)>; /* ETH_MDC */
85 bias-disable;
86 drive-push-pull;
87 slew-rate = <2>;
88 };
89
90 pins2 {
91 pinmux = <STM32_PINMUX('F', 4, AF11)>, /* ETH_RGMII_RXD0 */
92 <STM32_PINMUX('E', 2, AF10)>, /* ETH_RGMII_RXD1 */
93 <STM32_PINMUX('H', 6, AF12)>, /* ETH_RGMII_RXD2 */
94 <STM32_PINMUX('A', 8, AF11)>, /* ETH_RGMII_RXD3 */
95 <STM32_PINMUX('A', 12, AF11)>, /* ETH_RGMII_RX_CTL */
96 <STM32_PINMUX('H', 11, AF11)>; /* ETH_RGMII_RX_CLK */
97 bias-disable;
98 };
99 };
100
101 eth2_rgmii_sleep_pins_a: eth2-rgmii-sleep-0 {
102 pins1 {
103 pinmux = <STM32_PINMUX('F', 7, ANALOG)>, /* ETH_RGMII_TXD0 */
104 <STM32_PINMUX('G', 11, ANALOG)>, /* ETH_RGMII_TXD1 */
105 <STM32_PINMUX('G', 11, ANALOG)>, /* ETH_RGMII_TXD2 */
106 <STM32_PINMUX('G', 11, ANALOG)>, /* ETH_RGMII_TXD3 */
107 <STM32_PINMUX('G', 8, ANALOG)>, /* ETH_RGMII_TX_CTL */
108 <STM32_PINMUX('F', 6, ANALOG)>, /* ETH_RGMII_GTX_CLK */
109 <STM32_PINMUX('B', 2, ANALOG)>, /* ETH_MDIO */
110 <STM32_PINMUX('G', 5, ANALOG)>, /* ETH_MDC */
111 <STM32_PINMUX('F', 4, ANALOG)>, /* ETH_RGMII_RXD0 */
112 <STM32_PINMUX('E', 2, ANALOG)>, /* ETH_RGMII_RXD1 */
113 <STM32_PINMUX('E', 2, ANALOG)>, /* ETH_RGMII_RXD2 */
114 <STM32_PINMUX('E', 2, ANALOG)>, /* ETH_RGMII_RXD3 */
115 <STM32_PINMUX('A', 12, ANALOG)>, /* ETH_RGMII_RX_CTL */
116 <STM32_PINMUX('H', 11, ANALOG)>; /* ETH_RGMII_RX_CLK */
117 };
118 };
119
Patrick Delaunay7f2cba42023-04-24 16:21:10 +0200120 i2c1_pins_a: i2c1-0 {
121 pins {
122 pinmux = <STM32_PINMUX('D', 12, AF5)>, /* I2C1_SCL */
123 <STM32_PINMUX('E', 8, AF5)>; /* I2C1_SDA */
124 bias-disable;
125 drive-open-drain;
126 slew-rate = <0>;
127 };
128 };
129
130 i2c1_sleep_pins_a: i2c1-sleep-0 {
131 pins {
132 pinmux = <STM32_PINMUX('D', 12, ANALOG)>, /* I2C1_SCL */
133 <STM32_PINMUX('E', 8, ANALOG)>; /* I2C1_SDA */
134 };
135 };
136
137 i2c5_pins_a: i2c5-0 {
138 pins {
139 pinmux = <STM32_PINMUX('D', 1, AF4)>, /* I2C5_SCL */
140 <STM32_PINMUX('H', 6, AF4)>; /* I2C5_SDA */
141 bias-disable;
142 drive-open-drain;
143 slew-rate = <0>;
144 };
145 };
146
147 i2c5_sleep_pins_a: i2c5-sleep-0 {
148 pins {
149 pinmux = <STM32_PINMUX('D', 1, ANALOG)>, /* I2C5_SCL */
150 <STM32_PINMUX('H', 6, ANALOG)>; /* I2C5_SDA */
151 };
152 };
153
Marek Vasut726f6342024-04-28 00:20:37 +0200154 i2c5_pins_b: i2c5-1 {
155 pins {
156 pinmux = <STM32_PINMUX('D', 1, AF4)>, /* I2C5_SCL */
157 <STM32_PINMUX('E', 13, AF4)>; /* I2C5_SDA */
158 bias-disable;
159 drive-open-drain;
160 slew-rate = <0>;
161 };
162 };
163
164 i2c5_sleep_pins_b: i2c5-sleep-1 {
165 pins {
166 pinmux = <STM32_PINMUX('D', 1, ANALOG)>, /* I2C5_SCL */
167 <STM32_PINMUX('E', 13, ANALOG)>; /* I2C5_SDA */
168 };
169 };
170
171 m_can1_pins_a: m-can1-0 {
172 pins1 {
173 pinmux = <STM32_PINMUX('G', 10, AF9)>; /* CAN1_TX */
174 slew-rate = <1>;
175 drive-push-pull;
176 bias-disable;
177 };
178 pins2 {
179 pinmux = <STM32_PINMUX('D', 0, AF9)>; /* CAN1_RX */
180 bias-disable;
181 };
182 };
183
184 m_can1_sleep_pins_a: m_can1-sleep-0 {
185 pins {
186 pinmux = <STM32_PINMUX('G', 10, ANALOG)>, /* CAN1_TX */
187 <STM32_PINMUX('D', 0, ANALOG)>; /* CAN1_RX */
188 };
189 };
190
191 m_can2_pins_a: m-can2-0 {
192 pins1 {
193 pinmux = <STM32_PINMUX('G', 0, AF9)>; /* CAN2_TX */
194 slew-rate = <1>;
195 drive-push-pull;
196 bias-disable;
197 };
198 pins2 {
199 pinmux = <STM32_PINMUX('E', 0, AF9)>; /* CAN2_RX */
200 bias-disable;
201 };
202 };
203
204 m_can2_sleep_pins_a: m_can2-sleep-0 {
205 pins {
206 pinmux = <STM32_PINMUX('G', 0, ANALOG)>, /* CAN2_TX */
207 <STM32_PINMUX('E', 0, ANALOG)>; /* CAN2_RX */
208 };
209 };
210
Patrick Delaunay7f2cba42023-04-24 16:21:10 +0200211 mcp23017_pins_a: mcp23017-0 {
212 pins {
213 pinmux = <STM32_PINMUX('G', 12, GPIO)>;
214 bias-pull-up;
215 };
216 };
217
218 pwm3_pins_a: pwm3-0 {
219 pins {
220 pinmux = <STM32_PINMUX('B', 1, AF2)>; /* TIM3_CH4 */
221 bias-pull-down;
222 drive-push-pull;
223 slew-rate = <0>;
224 };
225 };
226
227 pwm3_sleep_pins_a: pwm3-sleep-0 {
228 pins {
229 pinmux = <STM32_PINMUX('B', 1, ANALOG)>; /* TIM3_CH4 */
230 };
231 };
232
233 pwm4_pins_a: pwm4-0 {
234 pins {
235 pinmux = <STM32_PINMUX('D', 13, AF2)>; /* TIM4_CH2 */
236 bias-pull-down;
237 drive-push-pull;
238 slew-rate = <0>;
239 };
240 };
241
242 pwm4_sleep_pins_a: pwm4-sleep-0 {
243 pins {
244 pinmux = <STM32_PINMUX('D', 13, ANALOG)>; /* TIM4_CH2 */
245 };
246 };
247
Marek Vasut726f6342024-04-28 00:20:37 +0200248 pwm5_pins_a: pwm5-0 {
249 pins {
250 pinmux = <STM32_PINMUX('H', 12, AF2)>; /* TIM5_CH3 */
251 bias-pull-down;
252 drive-push-pull;
253 slew-rate = <0>;
254 };
255 };
256
257 pwm5_sleep_pins_a: pwm5-sleep-0 {
258 pins {
259 pinmux = <STM32_PINMUX('H', 12, ANALOG)>; /* TIM5_CH3 */
260 };
261 };
262
Patrick Delaunay7f2cba42023-04-24 16:21:10 +0200263 pwm8_pins_a: pwm8-0 {
264 pins {
265 pinmux = <STM32_PINMUX('E', 5, AF3)>; /* TIM8_CH3 */
266 bias-pull-down;
267 drive-push-pull;
268 slew-rate = <0>;
269 };
270 };
271
272 pwm8_sleep_pins_a: pwm8-sleep-0 {
273 pins {
274 pinmux = <STM32_PINMUX('E', 5, ANALOG)>; /* TIM8_CH3 */
275 };
276 };
277
Marek Vasut726f6342024-04-28 00:20:37 +0200278 pwm13_pins_a: pwm13-0 {
279 pins {
280 pinmux = <STM32_PINMUX('A', 6, AF9)>; /* TIM13_CH1 */
281 bias-pull-down;
282 drive-push-pull;
283 slew-rate = <0>;
284 };
285 };
286
287 pwm13_sleep_pins_a: pwm13-sleep-0 {
288 pins {
289 pinmux = <STM32_PINMUX('A', 6, ANALOG)>; /* TIM13_CH1 */
290 };
291 };
292
Patrick Delaunay7f2cba42023-04-24 16:21:10 +0200293 pwm14_pins_a: pwm14-0 {
294 pins {
295 pinmux = <STM32_PINMUX('F', 9, AF9)>; /* TIM14_CH1 */
296 bias-pull-down;
297 drive-push-pull;
298 slew-rate = <0>;
299 };
300 };
301
302 pwm14_sleep_pins_a: pwm14-sleep-0 {
303 pins {
304 pinmux = <STM32_PINMUX('F', 9, ANALOG)>; /* TIM14_CH1 */
305 };
306 };
307
Marek Vasut726f6342024-04-28 00:20:37 +0200308 qspi_clk_pins_a: qspi-clk-0 {
309 pins {
310 pinmux = <STM32_PINMUX('F', 10, AF9)>; /* QSPI_CLK */
311 bias-disable;
312 drive-push-pull;
313 slew-rate = <3>;
314 };
315 };
316
317 qspi_clk_sleep_pins_a: qspi-clk-sleep-0 {
318 pins {
319 pinmux = <STM32_PINMUX('F', 10, ANALOG)>; /* QSPI_CLK */
320 };
321 };
322
323 qspi_bk1_pins_a: qspi-bk1-0 {
324 pins {
325 pinmux = <STM32_PINMUX('F', 8, AF10)>, /* QSPI_BK1_IO0 */
326 <STM32_PINMUX('F', 9, AF10)>, /* QSPI_BK1_IO1 */
327 <STM32_PINMUX('D', 11, AF9)>, /* QSPI_BK1_IO2 */
328 <STM32_PINMUX('H', 7, AF13)>; /* QSPI_BK1_IO3 */
329 bias-disable;
330 drive-push-pull;
331 slew-rate = <1>;
332 };
333 };
334
335 qspi_bk1_sleep_pins_a: qspi-bk1-sleep-0 {
336 pins {
337 pinmux = <STM32_PINMUX('F', 8, ANALOG)>, /* QSPI_BK1_IO0 */
338 <STM32_PINMUX('F', 9, ANALOG)>, /* QSPI_BK1_IO1 */
339 <STM32_PINMUX('D', 11, ANALOG)>, /* QSPI_BK1_IO2 */
340 <STM32_PINMUX('H', 7, ANALOG)>; /* QSPI_BK1_IO3 */
341 };
342 };
343
344 qspi_cs1_pins_a: qspi-cs1-0 {
345 pins {
346 pinmux = <STM32_PINMUX('B', 2, AF9)>; /* QSPI_BK1_NCS */
347 bias-pull-up;
348 drive-push-pull;
349 slew-rate = <1>;
350 };
351 };
352
353 qspi_cs1_sleep_pins_a: qspi-cs1-sleep-0 {
354 pins {
355 pinmux = <STM32_PINMUX('B', 2, ANALOG)>; /* QSPI_BK1_NCS */
356 };
357 };
358
359 sai1a_pins_a: sai1a-0 {
360 pins {
361 pinmux = <STM32_PINMUX('A', 4, AF12)>, /* SAI1_SCK_A */
362 <STM32_PINMUX('D', 6, AF6)>, /* SAI1_SD_A */
363 <STM32_PINMUX('E', 11, AF6)>; /* SAI1_FS_A */
364 slew-rate = <0>;
365 drive-push-pull;
366 bias-disable;
367 };
368 };
369
370 sai1a_sleep_pins_a: sai1a-sleep-0 {
371 pins {
372 pinmux = <STM32_PINMUX('A', 4, ANALOG)>, /* SAI1_SCK_A */
373 <STM32_PINMUX('D', 6, ANALOG)>, /* SAI1_SD_A */
374 <STM32_PINMUX('E', 11, ANALOG)>; /* SAI1_FS_A */
375 };
376 };
377
378 sai1b_pins_a: sai1b-0 {
379 pins {
380 pinmux = <STM32_PINMUX('A', 0, AF6)>; /* SAI1_SD_B */
381 bias-disable;
382 };
383 };
384
385 sai1b_sleep_pins_a: sai1b-sleep-0 {
386 pins {
387 pinmux = <STM32_PINMUX('A', 0, ANALOG)>; /* SAI1_SD_B */
388 };
389 };
390
Patrick Delaunay8e34fbb2022-05-20 18:24:39 +0200391 sdmmc1_b4_pins_a: sdmmc1-b4-0 {
392 pins {
393 pinmux = <STM32_PINMUX('C', 8, AF12)>, /* SDMMC1_D0 */
394 <STM32_PINMUX('C', 9, AF12)>, /* SDMMC1_D1 */
395 <STM32_PINMUX('C', 10, AF12)>, /* SDMMC1_D2 */
396 <STM32_PINMUX('C', 11, AF12)>, /* SDMMC1_D3 */
397 <STM32_PINMUX('D', 2, AF12)>; /* SDMMC1_CMD */
398 slew-rate = <1>;
399 drive-push-pull;
400 bias-disable;
401 };
402 };
403
404 sdmmc1_b4_od_pins_a: sdmmc1-b4-od-0 {
405 pins1 {
406 pinmux = <STM32_PINMUX('C', 8, AF12)>, /* SDMMC1_D0 */
407 <STM32_PINMUX('C', 9, AF12)>, /* SDMMC1_D1 */
408 <STM32_PINMUX('C', 10, AF12)>, /* SDMMC1_D2 */
409 <STM32_PINMUX('C', 11, AF12)>; /* SDMMC1_D3 */
410 slew-rate = <1>;
411 drive-push-pull;
412 bias-disable;
413 };
414 pins2 {
415 pinmux = <STM32_PINMUX('D', 2, AF12)>; /* SDMMC1_CMD */
416 slew-rate = <1>;
417 drive-open-drain;
418 bias-disable;
419 };
420 };
421
422 sdmmc1_b4_sleep_pins_a: sdmmc1-b4-sleep-0 {
423 pins {
424 pinmux = <STM32_PINMUX('C', 8, ANALOG)>, /* SDMMC1_D0 */
425 <STM32_PINMUX('C', 9, ANALOG)>, /* SDMMC1_D1 */
426 <STM32_PINMUX('C', 10, ANALOG)>, /* SDMMC1_D2 */
427 <STM32_PINMUX('C', 11, ANALOG)>, /* SDMMC1_D3 */
428 <STM32_PINMUX('C', 12, ANALOG)>, /* SDMMC1_CK */
429 <STM32_PINMUX('D', 2, ANALOG)>; /* SDMMC1_CMD */
430 };
431 };
432
433 sdmmc1_clk_pins_a: sdmmc1-clk-0 {
434 pins {
435 pinmux = <STM32_PINMUX('C', 12, AF12)>; /* SDMMC1_CK */
436 slew-rate = <1>;
437 drive-push-pull;
438 bias-disable;
439 };
440 };
441
442 sdmmc2_b4_pins_a: sdmmc2-b4-0 {
443 pins {
444 pinmux = <STM32_PINMUX('B', 14, AF10)>, /* SDMMC2_D0 */
445 <STM32_PINMUX('B', 15, AF10)>, /* SDMMC2_D1 */
446 <STM32_PINMUX('B', 3, AF10)>, /* SDMMC2_D2 */
447 <STM32_PINMUX('B', 4, AF10)>, /* SDMMC2_D3 */
448 <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
449 slew-rate = <1>;
450 drive-push-pull;
451 bias-pull-up;
452 };
453 };
454
455 sdmmc2_b4_od_pins_a: sdmmc2-b4-od-0 {
456 pins1 {
457 pinmux = <STM32_PINMUX('B', 14, AF10)>, /* SDMMC2_D0 */
458 <STM32_PINMUX('B', 15, AF10)>, /* SDMMC2_D1 */
459 <STM32_PINMUX('B', 3, AF10)>, /* SDMMC2_D2 */
460 <STM32_PINMUX('B', 4, AF10)>; /* SDMMC2_D3 */
461 slew-rate = <1>;
462 drive-push-pull;
463 bias-pull-up;
464 };
465 pins2 {
466 pinmux = <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
467 slew-rate = <1>;
468 drive-open-drain;
469 bias-pull-up;
470 };
471 };
472
473 sdmmc2_b4_sleep_pins_a: sdmmc2-b4-sleep-0 {
474 pins {
475 pinmux = <STM32_PINMUX('B', 14, ANALOG)>, /* SDMMC2_D0 */
476 <STM32_PINMUX('B', 15, ANALOG)>, /* SDMMC2_D1 */
477 <STM32_PINMUX('B', 3, ANALOG)>, /* SDMMC2_D2 */
478 <STM32_PINMUX('B', 4, ANALOG)>, /* SDMMC2_D3 */
479 <STM32_PINMUX('E', 3, ANALOG)>, /* SDMMC2_CK */
480 <STM32_PINMUX('G', 6, ANALOG)>; /* SDMMC2_CMD */
481 };
482 };
483
484 sdmmc2_clk_pins_a: sdmmc2-clk-0 {
485 pins {
486 pinmux = <STM32_PINMUX('E', 3, AF10)>; /* SDMMC2_CK */
487 slew-rate = <1>;
488 drive-push-pull;
489 bias-pull-up;
490 };
491 };
492
Marek Vasut726f6342024-04-28 00:20:37 +0200493 sdmmc2_d47_pins_a: sdmmc2-d47-0 {
494 pins {
495 pinmux = <STM32_PINMUX('F', 0, AF10)>, /* SDMMC2_D4 */
496 <STM32_PINMUX('B', 9, AF10)>, /* SDMMC2_D5 */
497 <STM32_PINMUX('C', 6, AF10)>, /* SDMMC2_D6 */
498 <STM32_PINMUX('C', 7, AF10)>; /* SDMMC2_D7 */
499 slew-rate = <1>;
500 drive-push-pull;
501 bias-pull-up;
502 };
503 };
504
505 sdmmc2_d47_sleep_pins_a: sdmmc2-d47-sleep-0 {
506 pins {
507 pinmux = <STM32_PINMUX('F', 0, ANALOG)>, /* SDMMC2_D4 */
508 <STM32_PINMUX('B', 9, ANALOG)>, /* SDMMC2_D5 */
509 <STM32_PINMUX('C', 6, ANALOG)>, /* SDMMC2_D6 */
510 <STM32_PINMUX('C', 7, ANALOG)>; /* SDMMC2_D7 */
511 };
512 };
513
514 spi2_pins_a: spi2-0 {
515 pins1 {
516 pinmux = <STM32_PINMUX('B', 10, AF6)>, /* SPI2_SCK */
517 <STM32_PINMUX('H', 10, AF6)>; /* SPI2_MOSI */
518 bias-disable;
519 drive-push-pull;
520 slew-rate = <1>;
521 };
522
523 pins2 {
524 pinmux = <STM32_PINMUX('B', 5, AF5)>; /* SPI2_MISO */
525 bias-disable;
526 };
527 };
528
529 spi2_sleep_pins_a: spi2-sleep-0 {
530 pins {
531 pinmux = <STM32_PINMUX('B', 10, ANALOG)>, /* SPI2_SCK */
532 <STM32_PINMUX('B', 5, ANALOG)>, /* SPI2_MISO */
533 <STM32_PINMUX('H', 10, ANALOG)>; /* SPI2_MOSI */
534 };
535 };
536
537 spi3_pins_a: spi3-0 {
538 pins1 {
539 pinmux = <STM32_PINMUX('H', 13, AF6)>, /* SPI3_SCK */
540 <STM32_PINMUX('F', 1, AF5)>; /* SPI3_MOSI */
541 bias-disable;
542 drive-push-pull;
543 slew-rate = <1>;
544 };
545
546 pins2 {
547 pinmux = <STM32_PINMUX('D', 4, AF5)>; /* SPI3_MISO */
548 bias-disable;
549 };
550 };
551
552 spi3_sleep_pins_a: spi3-sleep-0 {
553 pins {
554 pinmux = <STM32_PINMUX('H', 13, ANALOG)>, /* SPI3_SCK */
555 <STM32_PINMUX('D', 4, ANALOG)>, /* SPI3_MISO */
556 <STM32_PINMUX('F', 1, ANALOG)>; /* SPI3_MOSI */
557 };
558 };
559
Patrick Delaunay7f2cba42023-04-24 16:21:10 +0200560 spi5_pins_a: spi5-0 {
561 pins1 {
562 pinmux = <STM32_PINMUX('H', 7, AF6)>, /* SPI5_SCK */
563 <STM32_PINMUX('H', 3, AF5)>; /* SPI5_MOSI */
564 bias-disable;
565 drive-push-pull;
566 slew-rate = <1>;
567 };
568
569 pins2 {
570 pinmux = <STM32_PINMUX('A', 8, AF5)>; /* SPI5_MISO */
571 bias-disable;
572 };
573 };
574
575 spi5_sleep_pins_a: spi5-sleep-0 {
576 pins {
577 pinmux = <STM32_PINMUX('H', 7, ANALOG)>, /* SPI5_SCK */
578 <STM32_PINMUX('A', 8, ANALOG)>, /* SPI5_MISO */
579 <STM32_PINMUX('H', 3, ANALOG)>; /* SPI5_MOSI */
580 };
581 };
582
583 stm32g0_intn_pins_a: stm32g0-intn-0 {
584 pins {
585 pinmux = <STM32_PINMUX('I', 2, GPIO)>;
586 bias-pull-up;
587 };
588 };
589
Patrick Delaunay8e34fbb2022-05-20 18:24:39 +0200590 uart4_pins_a: uart4-0 {
591 pins1 {
592 pinmux = <STM32_PINMUX('D', 6, AF8)>; /* UART4_TX */
593 bias-disable;
594 drive-push-pull;
595 slew-rate = <0>;
596 };
597 pins2 {
598 pinmux = <STM32_PINMUX('D', 8, AF8)>; /* UART4_RX */
599 bias-disable;
600 };
601 };
Patrick Delaunay4597d262023-07-10 10:38:45 +0200602
603 uart4_idle_pins_a: uart4-idle-0 {
604 pins1 {
605 pinmux = <STM32_PINMUX('D', 6, ANALOG)>; /* UART4_TX */
606 };
607 pins2 {
608 pinmux = <STM32_PINMUX('D', 8, AF8)>; /* UART4_RX */
609 bias-disable;
610 };
611 };
612
613 uart4_sleep_pins_a: uart4-sleep-0 {
614 pins {
615 pinmux = <STM32_PINMUX('D', 6, ANALOG)>, /* UART4_TX */
616 <STM32_PINMUX('D', 8, ANALOG)>; /* UART4_RX */
617 };
618 };
619
Marek Vasut726f6342024-04-28 00:20:37 +0200620 uart4_pins_b: uart4-1 {
621 pins1 {
622 pinmux = <STM32_PINMUX('A', 9, AF8)>; /* UART4_TX */
623 bias-disable;
624 drive-push-pull;
625 slew-rate = <0>;
626 };
627 pins2 {
628 pinmux = <STM32_PINMUX('D', 8, AF8)>; /* UART4_RX */
629 bias-pull-up;
630 };
631 };
632
633 uart4_idle_pins_b: uart4-idle-1 {
634 pins1 {
635 pinmux = <STM32_PINMUX('A', 9, ANALOG)>; /* UART4_TX */
636 };
637 pins2 {
638 pinmux = <STM32_PINMUX('D', 8, AF8)>; /* UART4_RX */
639 bias-pull-up;
640 };
641 };
642
643 uart4_sleep_pins_b: uart4-sleep-1 {
644 pins {
645 pinmux = <STM32_PINMUX('A', 9, ANALOG)>, /* UART4_TX */
646 <STM32_PINMUX('D', 8, ANALOG)>; /* UART4_RX */
647 };
648 };
649
650 uart7_pins_a: uart7-0 {
651 pins1 {
652 pinmux = <STM32_PINMUX('H', 2, AF8)>, /* UART7_TX */
653 <STM32_PINMUX('B', 12, AF7)>; /* UART7_RTS */
654 bias-disable;
655 drive-push-pull;
656 slew-rate = <0>;
657 };
658 pins2 {
659 pinmux = <STM32_PINMUX('E', 10, AF7)>, /* UART7_RX */
660 <STM32_PINMUX('G', 7, AF8)>; /* UART7_CTS_NSS */
661 bias-disable;
662 };
663 };
664
665 uart7_idle_pins_a: uart7-idle-0 {
666 pins1 {
667 pinmux = <STM32_PINMUX('H', 2, ANALOG)>, /* UART7_TX */
668 <STM32_PINMUX('G', 7, ANALOG)>; /* UART7_CTS_NSS */
669 };
670 pins2 {
671 pinmux = <STM32_PINMUX('B', 12, AF7)>; /* UART7_RTS */
672 bias-disable;
673 drive-push-pull;
674 slew-rate = <0>;
675 };
676 pins3 {
677 pinmux = <STM32_PINMUX('E', 10, AF7)>; /* UART7_RX */
678 bias-disable;
679 };
680 };
681
682 uart7_sleep_pins_a: uart7-sleep-0 {
683 pins {
684 pinmux = <STM32_PINMUX('H', 2, ANALOG)>, /* UART7_TX */
685 <STM32_PINMUX('B', 12, ANALOG)>, /* UART7_RTS */
686 <STM32_PINMUX('E', 10, ANALOG)>, /* UART7_RX */
687 <STM32_PINMUX('G', 7, ANALOG)>; /* UART7_CTS_NSS */
688 };
689 };
690
Patrick Delaunay4597d262023-07-10 10:38:45 +0200691 uart8_pins_a: uart8-0 {
692 pins1 {
693 pinmux = <STM32_PINMUX('E', 1, AF8)>; /* UART8_TX */
694 bias-disable;
695 drive-push-pull;
696 slew-rate = <0>;
697 };
698 pins2 {
699 pinmux = <STM32_PINMUX('F', 9, AF8)>; /* UART8_RX */
700 bias-pull-up;
701 };
702 };
703
704 uart8_idle_pins_a: uart8-idle-0 {
705 pins1 {
706 pinmux = <STM32_PINMUX('E', 1, ANALOG)>; /* UART8_TX */
707 };
708 pins2 {
709 pinmux = <STM32_PINMUX('F', 9, AF8)>; /* UART8_RX */
710 bias-pull-up;
711 };
712 };
713
714 uart8_sleep_pins_a: uart8-sleep-0 {
715 pins {
716 pinmux = <STM32_PINMUX('E', 1, ANALOG)>, /* UART8_TX */
717 <STM32_PINMUX('F', 9, ANALOG)>; /* UART8_RX */
718 };
719 };
720
721 usart1_pins_a: usart1-0 {
722 pins1 {
723 pinmux = <STM32_PINMUX('C', 0, AF7)>, /* USART1_TX */
724 <STM32_PINMUX('C', 2, AF7)>; /* USART1_RTS */
725 bias-disable;
726 drive-push-pull;
727 slew-rate = <0>;
728 };
729 pins2 {
730 pinmux = <STM32_PINMUX('B', 0, AF4)>, /* USART1_RX */
731 <STM32_PINMUX('A', 7, AF7)>; /* USART1_CTS_NSS */
732 bias-pull-up;
733 };
734 };
735
736 usart1_idle_pins_a: usart1-idle-0 {
737 pins1 {
738 pinmux = <STM32_PINMUX('C', 0, ANALOG)>, /* USART1_TX */
739 <STM32_PINMUX('A', 7, ANALOG)>; /* USART1_CTS_NSS */
740 };
741 pins2 {
742 pinmux = <STM32_PINMUX('C', 2, AF7)>; /* USART1_RTS */
743 bias-disable;
744 drive-push-pull;
745 slew-rate = <0>;
746 };
747 pins3 {
748 pinmux = <STM32_PINMUX('B', 0, AF4)>; /* USART1_RX */
749 bias-pull-up;
750 };
751 };
752
753 usart1_sleep_pins_a: usart1-sleep-0 {
754 pins {
755 pinmux = <STM32_PINMUX('C', 0, ANALOG)>, /* USART1_TX */
756 <STM32_PINMUX('C', 2, ANALOG)>, /* USART1_RTS */
757 <STM32_PINMUX('A', 7, ANALOG)>, /* USART1_CTS_NSS */
758 <STM32_PINMUX('B', 0, ANALOG)>; /* USART1_RX */
759 };
760 };
761
Marek Vasut726f6342024-04-28 00:20:37 +0200762 usart1_pins_b: usart1-1 {
763 pins1 {
764 pinmux = <STM32_PINMUX('C', 0, AF7)>; /* USART1_TX */
765 bias-disable;
766 drive-push-pull;
767 slew-rate = <0>;
768 };
769 pins2 {
770 pinmux = <STM32_PINMUX('D', 14, AF7)>; /* USART1_RX */
771 bias-pull-up;
772 };
773 };
774
775 usart1_idle_pins_b: usart1-idle-1 {
776 pins1 {
777 pinmux = <STM32_PINMUX('C', 0, ANALOG)>; /* USART1_TX */
778 };
779 pins2 {
780 pinmux = <STM32_PINMUX('D', 14, AF7)>; /* USART1_RX */
781 bias-pull-up;
782 };
783 };
784
785 usart1_sleep_pins_b: usart1-sleep-1 {
786 pins {
787 pinmux = <STM32_PINMUX('C', 0, ANALOG)>, /* USART1_TX */
788 <STM32_PINMUX('D', 14, ANALOG)>; /* USART1_RX */
789 };
790 };
791
Patrick Delaunay4597d262023-07-10 10:38:45 +0200792 usart2_pins_a: usart2-0 {
793 pins1 {
794 pinmux = <STM32_PINMUX('H', 12, AF1)>, /* USART2_TX */
795 <STM32_PINMUX('D', 4, AF3)>; /* USART2_RTS */
796 bias-disable;
797 drive-push-pull;
798 slew-rate = <0>;
799 };
800 pins2 {
801 pinmux = <STM32_PINMUX('D', 15, AF1)>, /* USART2_RX */
802 <STM32_PINMUX('E', 11, AF2)>; /* USART2_CTS_NSS */
803 bias-disable;
804 };
805 };
806
807 usart2_idle_pins_a: usart2-idle-0 {
808 pins1 {
809 pinmux = <STM32_PINMUX('H', 12, ANALOG)>, /* USART2_TX */
810 <STM32_PINMUX('E', 11, ANALOG)>; /* USART2_CTS_NSS */
811 };
812 pins2 {
813 pinmux = <STM32_PINMUX('D', 4, AF3)>; /* USART2_RTS */
814 bias-disable;
815 drive-push-pull;
816 slew-rate = <0>;
817 };
818 pins3 {
819 pinmux = <STM32_PINMUX('D', 15, AF1)>; /* USART2_RX */
820 bias-disable;
821 };
822 };
823
824 usart2_sleep_pins_a: usart2-sleep-0 {
825 pins {
826 pinmux = <STM32_PINMUX('H', 12, ANALOG)>, /* USART2_TX */
827 <STM32_PINMUX('D', 4, ANALOG)>, /* USART2_RTS */
828 <STM32_PINMUX('D', 15, ANALOG)>, /* USART2_RX */
829 <STM32_PINMUX('E', 11, ANALOG)>; /* USART2_CTS_NSS */
830 };
831 };
Marek Vasut726f6342024-04-28 00:20:37 +0200832
833 usart2_pins_b: usart2-0 {
834 pins1 {
835 pinmux = <STM32_PINMUX('F', 11, AF1)>, /* USART2_TX */
836 <STM32_PINMUX('A', 1, AF7)>; /* USART2_RTS */
837 bias-disable;
838 drive-push-pull;
839 slew-rate = <0>;
840 };
841 pins2 {
842 pinmux = <STM32_PINMUX('D', 15, AF1)>, /* USART2_RX */
843 <STM32_PINMUX('E', 15, AF3)>; /* USART2_CTS_NSS */
844 bias-disable;
845 };
846 };
847
848 usart2_idle_pins_b: usart2-idle-0 {
849 pins1 {
850 pinmux = <STM32_PINMUX('F', 11, ANALOG)>, /* USART2_TX */
851 <STM32_PINMUX('E', 15, ANALOG)>; /* USART2_CTS_NSS */
852 };
853 pins2 {
854 pinmux = <STM32_PINMUX('A', 1, AF7)>; /* USART2_RTS */
855 bias-disable;
856 drive-push-pull;
857 slew-rate = <0>;
858 };
859 pins3 {
860 pinmux = <STM32_PINMUX('D', 15, AF1)>; /* USART2_RX */
861 bias-disable;
862 };
863 };
864
865 usart2_sleep_pins_b: usart2-sleep-0 {
866 pins {
867 pinmux = <STM32_PINMUX('F', 11, ANALOG)>, /* USART2_TX */
868 <STM32_PINMUX('A', 1, ANALOG)>, /* USART2_RTS */
869 <STM32_PINMUX('D', 15, ANALOG)>, /* USART2_RX */
870 <STM32_PINMUX('E', 15, ANALOG)>; /* USART2_CTS_NSS */
871 };
872 };
Patrick Delaunay8e34fbb2022-05-20 18:24:39 +0200873};