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_in5_pa0: adc1_in5_pa0 { 16 pinmux = <STM32_PINMUX('A', 0, ANALOG)>; 17 }; 18 19 adc1_in6_pa1: adc1_in6_pa1 { 20 pinmux = <STM32_PINMUX('A', 1, ANALOG)>; 21 }; 22 23 adc1_in7_pa2: adc1_in7_pa2 { 24 pinmux = <STM32_PINMUX('A', 2, ANALOG)>; 25 }; 26 27 adc1_in8_pa3: adc1_in8_pa3 { 28 pinmux = <STM32_PINMUX('A', 3, ANALOG)>; 29 }; 30 31 adc1_in9_pa4: adc1_in9_pa4 { 32 pinmux = <STM32_PINMUX('A', 4, ANALOG)>; 33 }; 34 35 adc1_in10_pa5: adc1_in10_pa5 { 36 pinmux = <STM32_PINMUX('A', 5, ANALOG)>; 37 }; 38 39 adc1_in11_pa6: adc1_in11_pa6 { 40 pinmux = <STM32_PINMUX('A', 6, ANALOG)>; 41 }; 42 43 adc1_in12_pa7: adc1_in12_pa7 { 44 pinmux = <STM32_PINMUX('A', 7, ANALOG)>; 45 }; 46 47 adc1_in15_pb0: adc1_in15_pb0 { 48 pinmux = <STM32_PINMUX('B', 0, ANALOG)>; 49 }; 50 51 adc1_in16_pb1: adc1_in16_pb1 { 52 pinmux = <STM32_PINMUX('B', 1, ANALOG)>; 53 }; 54 55 adc2_in7_pa2: adc2_in7_pa2 { 56 pinmux = <STM32_PINMUX('A', 2, ANALOG)>; 57 }; 58 59 adc2_in8_pa3: adc2_in8_pa3 { 60 pinmux = <STM32_PINMUX('A', 3, ANALOG)>; 61 }; 62 63 adc2_in9_pa4: adc2_in9_pa4 { 64 pinmux = <STM32_PINMUX('A', 4, ANALOG)>; 65 }; 66 67 adc2_in10_pa5: adc2_in10_pa5 { 68 pinmux = <STM32_PINMUX('A', 5, ANALOG)>; 69 }; 70 71 adc2_in11_pa6: adc2_in11_pa6 { 72 pinmux = <STM32_PINMUX('A', 6, ANALOG)>; 73 }; 74 75 adc2_in12_pa7: adc2_in12_pa7 { 76 pinmux = <STM32_PINMUX('A', 7, ANALOG)>; 77 }; 78 79 adc2_in15_pb0: adc2_in15_pb0 { 80 pinmux = <STM32_PINMUX('B', 0, ANALOG)>; 81 }; 82 83 adc2_in16_pb1: adc2_in16_pb1 { 84 pinmux = <STM32_PINMUX('B', 1, ANALOG)>; 85 }; 86 87 /* I2C_SCL */ 88 89 i2c1_scl_pa9: i2c1_scl_pa9 { 90 pinmux = <STM32_PINMUX('A', 9, AF4)>; 91 bias-pull-up; 92 drive-open-drain; 93 }; 94 95 i2c1_scl_pb6: i2c1_scl_pb6 { 96 pinmux = <STM32_PINMUX('B', 6, AF4)>; 97 bias-pull-up; 98 drive-open-drain; 99 }; 100 101 i2c2_scl_pb10: i2c2_scl_pb10 { 102 pinmux = <STM32_PINMUX('B', 10, AF4)>; 103 bias-pull-up; 104 drive-open-drain; 105 }; 106 107 i2c2_scl_pb13: i2c2_scl_pb13 { 108 pinmux = <STM32_PINMUX('B', 13, AF4)>; 109 bias-pull-up; 110 drive-open-drain; 111 }; 112 113 i2c3_scl_pa7: i2c3_scl_pa7 { 114 pinmux = <STM32_PINMUX('A', 7, AF4)>; 115 bias-pull-up; 116 drive-open-drain; 117 }; 118 119 /* I2C_SDA */ 120 121 i2c1_sda_pa10: i2c1_sda_pa10 { 122 pinmux = <STM32_PINMUX('A', 10, AF4)>; 123 bias-pull-up; 124 drive-open-drain; 125 }; 126 127 i2c1_sda_pb7: i2c1_sda_pb7 { 128 pinmux = <STM32_PINMUX('B', 7, AF4)>; 129 bias-pull-up; 130 drive-open-drain; 131 }; 132 133 i2c1_sda_pb9: i2c1_sda_pb9 { 134 pinmux = <STM32_PINMUX('B', 9, AF4)>; 135 bias-pull-up; 136 drive-open-drain; 137 }; 138 139 i2c2_sda_pb14: i2c2_sda_pb14 { 140 pinmux = <STM32_PINMUX('B', 14, AF4)>; 141 bias-pull-up; 142 drive-open-drain; 143 }; 144 145 i2c3_sda_pb4: i2c3_sda_pb4 { 146 pinmux = <STM32_PINMUX('B', 4, AF4)>; 147 bias-pull-up; 148 drive-open-drain; 149 }; 150 151 /* QUADSPI */ 152 153 quadspi_bk1_ncs_pa2: quadspi_bk1_ncs_pa2 { 154 pinmux = <STM32_PINMUX('A', 2, AF10)>; 155 slew-rate = "very-high-speed"; 156 }; 157 158 quadspi_clk_pa3: quadspi_clk_pa3 { 159 pinmux = <STM32_PINMUX('A', 3, AF10)>; 160 slew-rate = "very-high-speed"; 161 }; 162 163 quadspi_bk1_io3_pa6: quadspi_bk1_io3_pa6 { 164 pinmux = <STM32_PINMUX('A', 6, AF10)>; 165 slew-rate = "very-high-speed"; 166 }; 167 168 quadspi_bk1_io2_pa7: quadspi_bk1_io2_pa7 { 169 pinmux = <STM32_PINMUX('A', 7, AF10)>; 170 slew-rate = "very-high-speed"; 171 }; 172 173 quadspi_bk1_io1_pb0: quadspi_bk1_io1_pb0 { 174 pinmux = <STM32_PINMUX('B', 0, AF10)>; 175 slew-rate = "very-high-speed"; 176 }; 177 178 quadspi_bk1_io0_pb1: quadspi_bk1_io0_pb1 { 179 pinmux = <STM32_PINMUX('B', 1, AF10)>; 180 slew-rate = "very-high-speed"; 181 }; 182 183 quadspi_clk_pb10: quadspi_clk_pb10 { 184 pinmux = <STM32_PINMUX('B', 10, AF10)>; 185 slew-rate = "very-high-speed"; 186 }; 187 188 /* SPI_MISO */ 189 190 spi1_miso_pa6: spi1_miso_pa6 { 191 pinmux = <STM32_PINMUX('A', 6, AF5)>; 192 bias-pull-down; 193 }; 194 195 spi1_miso_pa11: spi1_miso_pa11 { 196 pinmux = <STM32_PINMUX('A', 11, 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_pb14: spi2_miso_pb14 { 206 pinmux = <STM32_PINMUX('B', 14, AF5)>; 207 bias-pull-down; 208 }; 209 210 /* SPI_MOSI */ 211 212 spi1_mosi_pa7: spi1_mosi_pa7 { 213 pinmux = <STM32_PINMUX('A', 7, AF5)>; 214 bias-pull-down; 215 }; 216 217 spi1_mosi_pa12: spi1_mosi_pa12 { 218 pinmux = <STM32_PINMUX('A', 12, 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_pb15: spi2_mosi_pb15 { 228 pinmux = <STM32_PINMUX('B', 15, AF5)>; 229 bias-pull-down; 230 }; 231 232 /* SPI_NSS */ 233 234 spi1_nss_pa4: spi1_nss_pa4 { 235 pinmux = <STM32_PINMUX('A', 4, AF5)>; 236 bias-pull-up; 237 }; 238 239 spi1_nss_pa15: spi1_nss_pa15 { 240 pinmux = <STM32_PINMUX('A', 15, AF5)>; 241 bias-pull-up; 242 }; 243 244 spi1_nss_pb0: spi1_nss_pb0 { 245 pinmux = <STM32_PINMUX('B', 0, AF5)>; 246 bias-pull-up; 247 }; 248 249 spi2_nss_pb9: spi2_nss_pb9 { 250 pinmux = <STM32_PINMUX('B', 9, AF5)>; 251 bias-pull-up; 252 }; 253 254 spi2_nss_pb12: spi2_nss_pb12 { 255 pinmux = <STM32_PINMUX('B', 12, AF5)>; 256 bias-pull-up; 257 }; 258 259 /* SPI_SCK */ 260 261 spi1_sck_pa1: spi1_sck_pa1 { 262 pinmux = <STM32_PINMUX('A', 1, AF5)>; 263 bias-pull-down; 264 slew-rate = "very-high-speed"; 265 }; 266 267 spi1_sck_pa5: spi1_sck_pa5 { 268 pinmux = <STM32_PINMUX('A', 5, AF5)>; 269 bias-pull-down; 270 slew-rate = "very-high-speed"; 271 }; 272 273 spi1_sck_pb3: spi1_sck_pb3 { 274 pinmux = <STM32_PINMUX('B', 3, AF5)>; 275 bias-pull-down; 276 slew-rate = "very-high-speed"; 277 }; 278 279 spi2_sck_pb10: spi2_sck_pb10 { 280 pinmux = <STM32_PINMUX('B', 10, AF5)>; 281 bias-pull-down; 282 slew-rate = "very-high-speed"; 283 }; 284 285 spi2_sck_pb13: spi2_sck_pb13 { 286 pinmux = <STM32_PINMUX('B', 13, AF5)>; 287 bias-pull-down; 288 slew-rate = "very-high-speed"; 289 }; 290 291 /* TIM_CH / TIM_CHN */ 292 293 tim1_ch1n_pa7: tim1_ch1n_pa7 { 294 pinmux = <STM32_PINMUX('A', 7, AF1)>; 295 }; 296 297 tim1_ch1_pa8: tim1_ch1_pa8 { 298 pinmux = <STM32_PINMUX('A', 8, AF1)>; 299 }; 300 301 tim1_ch2_pa9: tim1_ch2_pa9 { 302 pinmux = <STM32_PINMUX('A', 9, AF1)>; 303 }; 304 305 tim1_ch3_pa10: tim1_ch3_pa10 { 306 pinmux = <STM32_PINMUX('A', 10, AF1)>; 307 }; 308 309 tim1_ch4_pa11: tim1_ch4_pa11 { 310 pinmux = <STM32_PINMUX('A', 11, AF1)>; 311 }; 312 313 tim1_ch2n_pb0: tim1_ch2n_pb0 { 314 pinmux = <STM32_PINMUX('B', 0, AF1)>; 315 }; 316 317 tim1_ch3n_pb1: tim1_ch3n_pb1 { 318 pinmux = <STM32_PINMUX('B', 1, AF1)>; 319 }; 320 321 tim1_ch1n_pb13: tim1_ch1n_pb13 { 322 pinmux = <STM32_PINMUX('B', 13, AF1)>; 323 }; 324 325 tim1_ch2n_pb14: tim1_ch2n_pb14 { 326 pinmux = <STM32_PINMUX('B', 14, AF1)>; 327 }; 328 329 tim1_ch3n_pb15: tim1_ch3n_pb15 { 330 pinmux = <STM32_PINMUX('B', 15, AF1)>; 331 }; 332 333 tim2_ch1_pa0: tim2_ch1_pa0 { 334 pinmux = <STM32_PINMUX('A', 0, AF1)>; 335 }; 336 337 tim2_ch2_pa1: tim2_ch2_pa1 { 338 pinmux = <STM32_PINMUX('A', 1, AF1)>; 339 }; 340 341 tim2_ch3_pa2: tim2_ch3_pa2 { 342 pinmux = <STM32_PINMUX('A', 2, AF1)>; 343 }; 344 345 tim2_ch4_pa3: tim2_ch4_pa3 { 346 pinmux = <STM32_PINMUX('A', 3, AF1)>; 347 }; 348 349 tim2_ch1_pa5: tim2_ch1_pa5 { 350 pinmux = <STM32_PINMUX('A', 5, AF1)>; 351 }; 352 353 tim2_ch1_pa15: tim2_ch1_pa15 { 354 pinmux = <STM32_PINMUX('A', 15, AF1)>; 355 }; 356 357 tim2_ch2_pb3: tim2_ch2_pb3 { 358 pinmux = <STM32_PINMUX('B', 3, AF1)>; 359 }; 360 361 tim2_ch3_pb10: tim2_ch3_pb10 { 362 pinmux = <STM32_PINMUX('B', 10, AF1)>; 363 }; 364 365 tim15_ch1n_pa1: tim15_ch1n_pa1 { 366 pinmux = <STM32_PINMUX('A', 1, AF14)>; 367 }; 368 369 tim15_ch1_pa2: tim15_ch1_pa2 { 370 pinmux = <STM32_PINMUX('A', 2, AF14)>; 371 }; 372 373 tim15_ch2_pa3: tim15_ch2_pa3 { 374 pinmux = <STM32_PINMUX('A', 3, AF14)>; 375 }; 376 377 tim15_ch1n_pb13: tim15_ch1n_pb13 { 378 pinmux = <STM32_PINMUX('B', 13, AF14)>; 379 }; 380 381 tim15_ch1_pb14: tim15_ch1_pb14 { 382 pinmux = <STM32_PINMUX('B', 14, AF14)>; 383 }; 384 385 tim15_ch2_pb15: tim15_ch2_pb15 { 386 pinmux = <STM32_PINMUX('B', 15, AF14)>; 387 }; 388 389 tim16_ch1_pa6: tim16_ch1_pa6 { 390 pinmux = <STM32_PINMUX('A', 6, AF14)>; 391 }; 392 393 tim16_ch1n_pb6: tim16_ch1n_pb6 { 394 pinmux = <STM32_PINMUX('B', 6, AF14)>; 395 }; 396 397 /* UART_CTS / USART_CTS / LPUART_CTS */ 398 399 lpuart1_cts_pa6: lpuart1_cts_pa6 { 400 pinmux = <STM32_PINMUX('A', 6, AF8)>; 401 bias-pull-up; 402 drive-open-drain; 403 }; 404 405 usart1_cts_pa11: usart1_cts_pa11 { 406 pinmux = <STM32_PINMUX('A', 11, AF7)>; 407 bias-pull-up; 408 drive-open-drain; 409 }; 410 411 usart1_cts_pb4: usart1_cts_pb4 { 412 pinmux = <STM32_PINMUX('B', 4, AF7)>; 413 bias-pull-up; 414 drive-open-drain; 415 }; 416 417 lpuart1_cts_pb13: lpuart1_cts_pb13 { 418 pinmux = <STM32_PINMUX('B', 13, AF8)>; 419 bias-pull-up; 420 drive-open-drain; 421 }; 422 423 usart2_cts_pa0: usart2_cts_pa0 { 424 pinmux = <STM32_PINMUX('A', 0, AF7)>; 425 bias-pull-up; 426 drive-open-drain; 427 }; 428 429 usart3_cts_pa6: usart3_cts_pa6 { 430 pinmux = <STM32_PINMUX('A', 6, AF7)>; 431 bias-pull-up; 432 drive-open-drain; 433 }; 434 435 usart3_cts_pb13: usart3_cts_pb13 { 436 pinmux = <STM32_PINMUX('B', 13, AF7)>; 437 bias-pull-up; 438 drive-open-drain; 439 }; 440 441 /* UART_RTS / USART_RTS / LPUART_RTS */ 442 443 usart1_rts_pa12: usart1_rts_pa12 { 444 pinmux = <STM32_PINMUX('A', 12, AF7)>; 445 bias-pull-up; 446 drive-open-drain; 447 }; 448 449 lpuart1_rts_pb1: lpuart1_rts_pb1 { 450 pinmux = <STM32_PINMUX('B', 1, AF8)>; 451 bias-pull-up; 452 drive-open-drain; 453 }; 454 455 usart1_rts_pb3: usart1_rts_pb3 { 456 pinmux = <STM32_PINMUX('B', 3, AF7)>; 457 bias-pull-up; 458 drive-open-drain; 459 }; 460 461 lpuart1_rts_pb12: lpuart1_rts_pb12 { 462 pinmux = <STM32_PINMUX('B', 12, AF8)>; 463 bias-pull-up; 464 drive-open-drain; 465 }; 466 467 usart2_rts_pa1: usart2_rts_pa1 { 468 pinmux = <STM32_PINMUX('A', 1, AF7)>; 469 bias-pull-up; 470 drive-open-drain; 471 }; 472 473 usart3_rts_pa15: usart3_rts_pa15 { 474 pinmux = <STM32_PINMUX('A', 15, AF7)>; 475 bias-pull-up; 476 drive-open-drain; 477 }; 478 479 usart3_rts_pb1: usart3_rts_pb1 { 480 pinmux = <STM32_PINMUX('B', 1, AF7)>; 481 bias-pull-up; 482 drive-open-drain; 483 }; 484 485 usart3_rts_pb14: usart3_rts_pb14 { 486 pinmux = <STM32_PINMUX('B', 14, AF7)>; 487 bias-pull-up; 488 drive-open-drain; 489 }; 490 491 /* UART_RX / USART_RX / LPUART_RX */ 492 493 lpuart1_rx_pa3: lpuart1_rx_pa3 { 494 pinmux = <STM32_PINMUX('A', 3, AF8)>; 495 }; 496 497 usart1_rx_pa10: usart1_rx_pa10 { 498 pinmux = <STM32_PINMUX('A', 10, AF7)>; 499 }; 500 501 usart1_rx_pb7: usart1_rx_pb7 { 502 pinmux = <STM32_PINMUX('B', 7, AF7)>; 503 }; 504 505 lpuart1_rx_pb10: lpuart1_rx_pb10 { 506 pinmux = <STM32_PINMUX('B', 10, AF8)>; 507 }; 508 509 usart2_rx_pa3: usart2_rx_pa3 { 510 pinmux = <STM32_PINMUX('A', 3, AF7)>; 511 }; 512 513 usart2_rx_pa15: usart2_rx_pa15 { 514 pinmux = <STM32_PINMUX('A', 15, AF3)>; 515 }; 516 517 /* UART_TX / USART_TX / LPUART_TX */ 518 519 lpuart1_tx_pa2: lpuart1_tx_pa2 { 520 pinmux = <STM32_PINMUX('A', 2, AF8)>; 521 bias-pull-up; 522 }; 523 524 usart1_tx_pa9: usart1_tx_pa9 { 525 pinmux = <STM32_PINMUX('A', 9, AF7)>; 526 bias-pull-up; 527 }; 528 529 usart1_tx_pb6: usart1_tx_pb6 { 530 pinmux = <STM32_PINMUX('B', 6, AF7)>; 531 bias-pull-up; 532 }; 533 534 usart2_tx_pa2: usart2_tx_pa2 { 535 pinmux = <STM32_PINMUX('A', 2, AF7)>; 536 bias-pull-up; 537 }; 538 539 usart3_tx_pb10: usart3_tx_pb10 { 540 pinmux = <STM32_PINMUX('B', 10, AF7)>; 541 bias-pull-up; 542 }; 543 544 /* USB */ 545 546 usb_dm_pa11: usb_dm_pa11 { 547 pinmux = <STM32_PINMUX('A', 11, AF10)>; 548 }; 549 550 usb_dp_pa12: usb_dp_pa12 { 551 pinmux = <STM32_PINMUX('A', 12, AF10)>; 552 }; 553 554 usb_noe_pa13: usb_noe_pa13 { 555 pinmux = <STM32_PINMUX('A', 13, AF10)>; 556 }; 557 558 }; 559 }; 560};