1/* 2 * NOTE: Autogenerated file using genpinctrl.py 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <dt-bindings/pinctrl/stm32-pinctrl.h> 8 9/ { 10 soc { 11 pinctrl: pin-controller@48000000 { 12 13 /* ADC_IN / ADC_INN / ADC_INP */ 14 15 adc1_in1_pa0: adc1_in1_pa0 { 16 pinmux = <STM32_PINMUX('A', 0, ANALOG)>; 17 }; 18 19 adc1_in2_pa1: adc1_in2_pa1 { 20 pinmux = <STM32_PINMUX('A', 1, ANALOG)>; 21 }; 22 23 adc1_in3_pa2: adc1_in3_pa2 { 24 pinmux = <STM32_PINMUX('A', 2, ANALOG)>; 25 }; 26 27 adc1_in4_pa3: adc1_in4_pa3 { 28 pinmux = <STM32_PINMUX('A', 3, ANALOG)>; 29 }; 30 31 adc1_in15_pb0: adc1_in15_pb0 { 32 pinmux = <STM32_PINMUX('B', 0, ANALOG)>; 33 }; 34 35 adc1_in10_pf0: adc1_in10_pf0 { 36 pinmux = <STM32_PINMUX('F', 0, ANALOG)>; 37 }; 38 39 adc2_in1_pa0: adc2_in1_pa0 { 40 pinmux = <STM32_PINMUX('A', 0, ANALOG)>; 41 }; 42 43 adc2_in2_pa1: adc2_in2_pa1 { 44 pinmux = <STM32_PINMUX('A', 1, ANALOG)>; 45 }; 46 47 adc2_in17_pa4: adc2_in17_pa4 { 48 pinmux = <STM32_PINMUX('A', 4, ANALOG)>; 49 }; 50 51 adc2_in13_pa5: adc2_in13_pa5 { 52 pinmux = <STM32_PINMUX('A', 5, ANALOG)>; 53 }; 54 55 adc2_in3_pa6: adc2_in3_pa6 { 56 pinmux = <STM32_PINMUX('A', 6, ANALOG)>; 57 }; 58 59 adc2_in4_pa7: adc2_in4_pa7 { 60 pinmux = <STM32_PINMUX('A', 7, ANALOG)>; 61 }; 62 63 adc2_in10_pf1: adc2_in10_pf1 { 64 pinmux = <STM32_PINMUX('F', 1, ANALOG)>; 65 }; 66 67 /* DAC_OUT */ 68 69 dac1_out1_pa4: dac1_out1_pa4 { 70 pinmux = <STM32_PINMUX('A', 4, ANALOG)>; 71 }; 72 73 dac1_out2_pa5: dac1_out2_pa5 { 74 pinmux = <STM32_PINMUX('A', 5, ANALOG)>; 75 }; 76 77 /* FDCAN_RX */ 78 79 fdcan1_rx_pa11: fdcan1_rx_pa11 { 80 pinmux = <STM32_PINMUX('A', 11, AF9)>; 81 }; 82 83 fdcan1_rx_pb8: fdcan1_rx_pb8 { 84 pinmux = <STM32_PINMUX('B', 8, AF9)>; 85 }; 86 87 /* FDCAN_TX */ 88 89 fdcan1_tx_pa12: fdcan1_tx_pa12 { 90 pinmux = <STM32_PINMUX('A', 12, AF9)>; 91 }; 92 93 /* I2C_SCL */ 94 95 i2c1_scl_pa13: i2c1_scl_pa13 { 96 pinmux = <STM32_PINMUX('A', 13, AF4)>; 97 bias-pull-up; 98 drive-open-drain; 99 }; 100 101 i2c1_scl_pa15: i2c1_scl_pa15 { 102 pinmux = <STM32_PINMUX('A', 15, AF4)>; 103 bias-pull-up; 104 drive-open-drain; 105 }; 106 107 i2c1_scl_pb8: i2c1_scl_pb8 { 108 pinmux = <STM32_PINMUX('B', 8, AF4)>; 109 bias-pull-up; 110 drive-open-drain; 111 }; 112 113 i2c2_scl_pa9: i2c2_scl_pa9 { 114 pinmux = <STM32_PINMUX('A', 9, AF4)>; 115 bias-pull-up; 116 drive-open-drain; 117 }; 118 119 i2c3_scl_pa8: i2c3_scl_pa8 { 120 pinmux = <STM32_PINMUX('A', 8, AF2)>; 121 bias-pull-up; 122 drive-open-drain; 123 }; 124 125 /* I2C_SDA */ 126 127 i2c1_sda_pa14: i2c1_sda_pa14 { 128 pinmux = <STM32_PINMUX('A', 14, AF4)>; 129 bias-pull-up; 130 drive-open-drain; 131 }; 132 133 i2c1_sda_pb7: i2c1_sda_pb7 { 134 pinmux = <STM32_PINMUX('B', 7, AF4)>; 135 bias-pull-up; 136 drive-open-drain; 137 }; 138 139 i2c2_sda_pa8: i2c2_sda_pa8 { 140 pinmux = <STM32_PINMUX('A', 8, AF4)>; 141 bias-pull-up; 142 drive-open-drain; 143 }; 144 145 i2c2_sda_pf0: i2c2_sda_pf0 { 146 pinmux = <STM32_PINMUX('F', 0, AF4)>; 147 bias-pull-up; 148 drive-open-drain; 149 }; 150 151 i2c3_sda_pb5: i2c3_sda_pb5 { 152 pinmux = <STM32_PINMUX('B', 5, AF8)>; 153 bias-pull-up; 154 drive-open-drain; 155 }; 156 157 /* I2S_CK */ 158 159 i2s2_ck_pf1: i2s2_ck_pf1 { 160 pinmux = <STM32_PINMUX('F', 1, AF5)>; 161 slew-rate = "very-high-speed"; 162 }; 163 164 i2s3_ck_pb3: i2s3_ck_pb3 { 165 pinmux = <STM32_PINMUX('B', 3, AF6)>; 166 slew-rate = "very-high-speed"; 167 }; 168 169 /* I2S_SD */ 170 171 i2s2_sd_pa11: i2s2_sd_pa11 { 172 pinmux = <STM32_PINMUX('A', 11, AF5)>; 173 }; 174 175 i2s3_sd_pb5: i2s3_sd_pb5 { 176 pinmux = <STM32_PINMUX('B', 5, AF6)>; 177 }; 178 179 /* I2S_WS */ 180 181 i2s2_ws_pf0: i2s2_ws_pf0 { 182 pinmux = <STM32_PINMUX('F', 0, AF5)>; 183 }; 184 185 i2s3_ws_pa4: i2s3_ws_pa4 { 186 pinmux = <STM32_PINMUX('A', 4, AF6)>; 187 }; 188 189 i2s3_ws_pa15: i2s3_ws_pa15 { 190 pinmux = <STM32_PINMUX('A', 15, AF6)>; 191 }; 192 193 /* SPI_MISO */ 194 195 spi1_miso_pa6: spi1_miso_pa6 { 196 pinmux = <STM32_PINMUX('A', 6, AF5)>; 197 bias-pull-down; 198 }; 199 200 spi1_miso_pb4: spi1_miso_pb4 { 201 pinmux = <STM32_PINMUX('B', 4, AF5)>; 202 bias-pull-down; 203 }; 204 205 spi2_miso_pa10: spi2_miso_pa10 { 206 pinmux = <STM32_PINMUX('A', 10, AF5)>; 207 bias-pull-down; 208 }; 209 210 spi3_miso_pb4: spi3_miso_pb4 { 211 pinmux = <STM32_PINMUX('B', 4, AF6)>; 212 bias-pull-down; 213 }; 214 215 /* SPI_MOSI */ 216 217 spi1_mosi_pa7: spi1_mosi_pa7 { 218 pinmux = <STM32_PINMUX('A', 7, AF5)>; 219 bias-pull-down; 220 }; 221 222 spi1_mosi_pb5: spi1_mosi_pb5 { 223 pinmux = <STM32_PINMUX('B', 5, AF5)>; 224 bias-pull-down; 225 }; 226 227 spi2_mosi_pa11: spi2_mosi_pa11 { 228 pinmux = <STM32_PINMUX('A', 11, AF5)>; 229 bias-pull-down; 230 }; 231 232 spi3_mosi_pb5: spi3_mosi_pb5 { 233 pinmux = <STM32_PINMUX('B', 5, AF6)>; 234 bias-pull-down; 235 }; 236 237 /* SPI_NSS */ 238 239 spi1_nss_pa4: spi1_nss_pa4 { 240 pinmux = <STM32_PINMUX('A', 4, AF5)>; 241 bias-pull-up; 242 }; 243 244 spi1_nss_pa15: spi1_nss_pa15 { 245 pinmux = <STM32_PINMUX('A', 15, AF5)>; 246 bias-pull-up; 247 }; 248 249 spi2_nss_pf0: spi2_nss_pf0 { 250 pinmux = <STM32_PINMUX('F', 0, AF5)>; 251 bias-pull-up; 252 }; 253 254 spi3_nss_pa4: spi3_nss_pa4 { 255 pinmux = <STM32_PINMUX('A', 4, AF6)>; 256 bias-pull-up; 257 }; 258 259 spi3_nss_pa15: spi3_nss_pa15 { 260 pinmux = <STM32_PINMUX('A', 15, AF6)>; 261 bias-pull-up; 262 }; 263 264 /* SPI_SCK */ 265 266 spi1_sck_pa5: spi1_sck_pa5 { 267 pinmux = <STM32_PINMUX('A', 5, AF5)>; 268 bias-pull-down; 269 slew-rate = "very-high-speed"; 270 }; 271 272 spi1_sck_pb3: spi1_sck_pb3 { 273 pinmux = <STM32_PINMUX('B', 3, AF5)>; 274 bias-pull-down; 275 slew-rate = "very-high-speed"; 276 }; 277 278 spi2_sck_pf1: spi2_sck_pf1 { 279 pinmux = <STM32_PINMUX('F', 1, AF5)>; 280 bias-pull-down; 281 slew-rate = "very-high-speed"; 282 }; 283 284 spi3_sck_pb3: spi3_sck_pb3 { 285 pinmux = <STM32_PINMUX('B', 3, AF6)>; 286 bias-pull-down; 287 slew-rate = "very-high-speed"; 288 }; 289 290 /* TIM_CH / TIM_CHN */ 291 292 tim1_ch1n_pa7: tim1_ch1n_pa7 { 293 pinmux = <STM32_PINMUX('A', 7, AF6)>; 294 }; 295 296 tim1_ch1_pa8: tim1_ch1_pa8 { 297 pinmux = <STM32_PINMUX('A', 8, AF6)>; 298 }; 299 300 tim1_ch2_pa9: tim1_ch2_pa9 { 301 pinmux = <STM32_PINMUX('A', 9, AF6)>; 302 }; 303 304 tim1_ch3_pa10: tim1_ch3_pa10 { 305 pinmux = <STM32_PINMUX('A', 10, AF6)>; 306 }; 307 308 tim1_ch1n_pa11: tim1_ch1n_pa11 { 309 pinmux = <STM32_PINMUX('A', 11, AF6)>; 310 }; 311 312 tim1_ch4_pa11: tim1_ch4_pa11 { 313 pinmux = <STM32_PINMUX('A', 11, AF11)>; 314 }; 315 316 tim1_ch2n_pa12: tim1_ch2n_pa12 { 317 pinmux = <STM32_PINMUX('A', 12, AF6)>; 318 }; 319 320 tim1_ch2n_pb0: tim1_ch2n_pb0 { 321 pinmux = <STM32_PINMUX('B', 0, AF6)>; 322 }; 323 324 tim1_ch3n_pf0: tim1_ch3n_pf0 { 325 pinmux = <STM32_PINMUX('F', 0, AF6)>; 326 }; 327 328 tim2_ch1_pa0: tim2_ch1_pa0 { 329 pinmux = <STM32_PINMUX('A', 0, AF1)>; 330 }; 331 332 tim2_ch2_pa1: tim2_ch2_pa1 { 333 pinmux = <STM32_PINMUX('A', 1, AF1)>; 334 }; 335 336 tim2_ch3_pa2: tim2_ch3_pa2 { 337 pinmux = <STM32_PINMUX('A', 2, AF1)>; 338 }; 339 340 tim2_ch4_pa3: tim2_ch4_pa3 { 341 pinmux = <STM32_PINMUX('A', 3, AF1)>; 342 }; 343 344 tim2_ch1_pa5: tim2_ch1_pa5 { 345 pinmux = <STM32_PINMUX('A', 5, AF1)>; 346 }; 347 348 tim2_ch3_pa9: tim2_ch3_pa9 { 349 pinmux = <STM32_PINMUX('A', 9, AF10)>; 350 }; 351 352 tim2_ch4_pa10: tim2_ch4_pa10 { 353 pinmux = <STM32_PINMUX('A', 10, AF10)>; 354 }; 355 356 tim2_ch1_pa15: tim2_ch1_pa15 { 357 pinmux = <STM32_PINMUX('A', 15, AF1)>; 358 }; 359 360 tim2_ch2_pb3: tim2_ch2_pb3 { 361 pinmux = <STM32_PINMUX('B', 3, AF1)>; 362 }; 363 364 tim3_ch2_pa4: tim3_ch2_pa4 { 365 pinmux = <STM32_PINMUX('A', 4, AF2)>; 366 }; 367 368 tim3_ch1_pa6: tim3_ch1_pa6 { 369 pinmux = <STM32_PINMUX('A', 6, AF2)>; 370 }; 371 372 tim3_ch2_pa7: tim3_ch2_pa7 { 373 pinmux = <STM32_PINMUX('A', 7, AF2)>; 374 }; 375 376 tim3_ch3_pb0: tim3_ch3_pb0 { 377 pinmux = <STM32_PINMUX('B', 0, AF2)>; 378 }; 379 380 tim3_ch1_pb4: tim3_ch1_pb4 { 381 pinmux = <STM32_PINMUX('B', 4, AF2)>; 382 }; 383 384 tim3_ch2_pb5: tim3_ch2_pb5 { 385 pinmux = <STM32_PINMUX('B', 5, AF2)>; 386 }; 387 388 tim3_ch4_pb7: tim3_ch4_pb7 { 389 pinmux = <STM32_PINMUX('B', 7, AF10)>; 390 }; 391 392 tim4_ch1_pa11: tim4_ch1_pa11 { 393 pinmux = <STM32_PINMUX('A', 11, AF10)>; 394 }; 395 396 tim4_ch2_pa12: tim4_ch2_pa12 { 397 pinmux = <STM32_PINMUX('A', 12, AF10)>; 398 }; 399 400 tim4_ch3_pa13: tim4_ch3_pa13 { 401 pinmux = <STM32_PINMUX('A', 13, AF10)>; 402 }; 403 404 tim4_ch1_pb6: tim4_ch1_pb6 { 405 pinmux = <STM32_PINMUX('B', 6, AF2)>; 406 }; 407 408 tim4_ch2_pb7: tim4_ch2_pb7 { 409 pinmux = <STM32_PINMUX('B', 7, AF2)>; 410 }; 411 412 tim4_ch3_pb8: tim4_ch3_pb8 { 413 pinmux = <STM32_PINMUX('B', 8, AF2)>; 414 }; 415 416 tim15_ch1n_pa1: tim15_ch1n_pa1 { 417 pinmux = <STM32_PINMUX('A', 1, AF9)>; 418 }; 419 420 tim15_ch1_pa2: tim15_ch1_pa2 { 421 pinmux = <STM32_PINMUX('A', 2, AF9)>; 422 }; 423 424 tim15_ch2_pa3: tim15_ch2_pa3 { 425 pinmux = <STM32_PINMUX('A', 3, AF9)>; 426 }; 427 428 tim16_ch1_pa6: tim16_ch1_pa6 { 429 pinmux = <STM32_PINMUX('A', 6, AF1)>; 430 }; 431 432 tim16_ch1_pa12: tim16_ch1_pa12 { 433 pinmux = <STM32_PINMUX('A', 12, AF1)>; 434 }; 435 436 tim16_ch1n_pa13: tim16_ch1n_pa13 { 437 pinmux = <STM32_PINMUX('A', 13, AF1)>; 438 }; 439 440 tim16_ch1_pb4: tim16_ch1_pb4 { 441 pinmux = <STM32_PINMUX('B', 4, AF1)>; 442 }; 443 444 tim16_ch1n_pb6: tim16_ch1n_pb6 { 445 pinmux = <STM32_PINMUX('B', 6, AF1)>; 446 }; 447 448 tim16_ch1_pb8: tim16_ch1_pb8 { 449 pinmux = <STM32_PINMUX('B', 8, AF1)>; 450 }; 451 452 tim17_ch1_pa7: tim17_ch1_pa7 { 453 pinmux = <STM32_PINMUX('A', 7, AF1)>; 454 }; 455 456 tim17_ch1_pb5: tim17_ch1_pb5 { 457 pinmux = <STM32_PINMUX('B', 5, AF10)>; 458 }; 459 460 tim17_ch1n_pb7: tim17_ch1n_pb7 { 461 pinmux = <STM32_PINMUX('B', 7, AF1)>; 462 }; 463 464 tim8_ch1n_pa7: tim8_ch1n_pa7 { 465 pinmux = <STM32_PINMUX('A', 7, AF4)>; 466 }; 467 468 tim8_ch2_pa14: tim8_ch2_pa14 { 469 pinmux = <STM32_PINMUX('A', 14, AF5)>; 470 }; 471 472 tim8_ch1_pa15: tim8_ch1_pa15 { 473 pinmux = <STM32_PINMUX('A', 15, AF2)>; 474 }; 475 476 tim8_ch2n_pb0: tim8_ch2n_pb0 { 477 pinmux = <STM32_PINMUX('B', 0, AF4)>; 478 }; 479 480 tim8_ch1n_pb3: tim8_ch1n_pb3 { 481 pinmux = <STM32_PINMUX('B', 3, AF4)>; 482 }; 483 484 tim8_ch2n_pb4: tim8_ch2n_pb4 { 485 pinmux = <STM32_PINMUX('B', 4, AF4)>; 486 }; 487 488 tim8_ch3n_pb5: tim8_ch3n_pb5 { 489 pinmux = <STM32_PINMUX('B', 5, AF3)>; 490 }; 491 492 tim8_ch1_pb6: tim8_ch1_pb6 { 493 pinmux = <STM32_PINMUX('B', 6, AF5)>; 494 }; 495 496 tim8_ch2_pb8: tim8_ch2_pb8 { 497 pinmux = <STM32_PINMUX('B', 8, AF10)>; 498 }; 499 500 /* UART_CTS / USART_CTS / LPUART_CTS */ 501 502 lpuart1_cts_pa6: lpuart1_cts_pa6 { 503 pinmux = <STM32_PINMUX('A', 6, AF12)>; 504 bias-pull-up; 505 drive-open-drain; 506 }; 507 508 usart1_cts_pa11: usart1_cts_pa11 { 509 pinmux = <STM32_PINMUX('A', 11, AF7)>; 510 bias-pull-up; 511 drive-open-drain; 512 }; 513 514 usart2_cts_pa0: usart2_cts_pa0 { 515 pinmux = <STM32_PINMUX('A', 0, AF7)>; 516 bias-pull-up; 517 drive-open-drain; 518 }; 519 520 /* UART_RTS / USART_RTS / LPUART_RTS */ 521 522 usart1_rts_pa12: usart1_rts_pa12 { 523 pinmux = <STM32_PINMUX('A', 12, AF7)>; 524 bias-pull-up; 525 drive-open-drain; 526 }; 527 528 usart2_rts_pa1: usart2_rts_pa1 { 529 pinmux = <STM32_PINMUX('A', 1, AF7)>; 530 bias-pull-up; 531 drive-open-drain; 532 }; 533 534 /* UART_RX / USART_RX / LPUART_RX */ 535 536 lpuart1_rx_pa3: lpuart1_rx_pa3 { 537 pinmux = <STM32_PINMUX('A', 3, AF12)>; 538 }; 539 540 usart1_rx_pa10: usart1_rx_pa10 { 541 pinmux = <STM32_PINMUX('A', 10, AF7)>; 542 }; 543 544 usart1_rx_pb7: usart1_rx_pb7 { 545 pinmux = <STM32_PINMUX('B', 7, AF7)>; 546 }; 547 548 usart2_rx_pa3: usart2_rx_pa3 { 549 pinmux = <STM32_PINMUX('A', 3, AF7)>; 550 }; 551 552 usart2_rx_pa15: usart2_rx_pa15 { 553 pinmux = <STM32_PINMUX('A', 15, AF7)>; 554 }; 555 556 usart2_rx_pb4: usart2_rx_pb4 { 557 pinmux = <STM32_PINMUX('B', 4, AF7)>; 558 }; 559 560 /* UART_TX / USART_TX / LPUART_TX */ 561 562 lpuart1_tx_pa2: lpuart1_tx_pa2 { 563 pinmux = <STM32_PINMUX('A', 2, AF12)>; 564 bias-pull-up; 565 }; 566 567 usart1_tx_pa9: usart1_tx_pa9 { 568 pinmux = <STM32_PINMUX('A', 9, AF7)>; 569 bias-pull-up; 570 }; 571 572 usart1_tx_pb6: usart1_tx_pb6 { 573 pinmux = <STM32_PINMUX('B', 6, AF7)>; 574 bias-pull-up; 575 }; 576 577 usart2_tx_pa2: usart2_tx_pa2 { 578 pinmux = <STM32_PINMUX('A', 2, AF7)>; 579 bias-pull-up; 580 }; 581 582 usart2_tx_pa14: usart2_tx_pa14 { 583 pinmux = <STM32_PINMUX('A', 14, AF7)>; 584 bias-pull-up; 585 }; 586 587 usart2_tx_pb3: usart2_tx_pb3 { 588 pinmux = <STM32_PINMUX('B', 3, AF7)>; 589 bias-pull-up; 590 }; 591 592 /* USB */ 593 594 usb_dm_pa11: usb_dm_pa11 { 595 pinmux = <STM32_PINMUX('A', 11, ANALOG)>; 596 }; 597 598 usb_dp_pa12: usb_dp_pa12 { 599 pinmux = <STM32_PINMUX('A', 12, ANALOG)>; 600 }; 601 602 }; 603 }; 604};