Yann Gautier | cd73619 | 2020-02-25 15:14:52 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) |
| 2 | /* |
Yann Gautier | 32409c7 | 2023-03-02 11:50:07 +0100 | [diff] [blame] | 3 | * Copyright (c) 2022-2023, STMicroelectronics - All Rights Reserved |
Yann Gautier | cd73619 | 2020-02-25 15:14:52 +0100 | [diff] [blame] | 4 | * Author: Alexandre Torgue <alexandre.torgue@foss.st.com> |
| 5 | */ |
| 6 | #include <dt-bindings/pinctrl/stm32-pinfunc.h> |
| 7 | |
| 8 | &pinctrl { |
Yann Gautier | c55e2ee | 2023-10-18 14:17:04 +0200 | [diff] [blame] | 9 | /omit-if-no-ref/ |
Yann Gautier | 5c14e6b | 2023-04-06 18:14:41 +0200 | [diff] [blame] | 10 | i2c4_pins_a: i2c4-0 { |
Yann Gautier | cd73619 | 2020-02-25 15:14:52 +0100 | [diff] [blame] | 11 | pins { |
| 12 | pinmux = <STM32_PINMUX('E', 15, AF6)>, /* I2C4_SCL */ |
| 13 | <STM32_PINMUX('B', 9, AF6)>; /* I2C4_SDA */ |
| 14 | bias-disable; |
| 15 | drive-open-drain; |
| 16 | slew-rate = <0>; |
| 17 | }; |
| 18 | }; |
| 19 | |
Yann Gautier | c55e2ee | 2023-10-18 14:17:04 +0200 | [diff] [blame] | 20 | /omit-if-no-ref/ |
Yann Gautier | 5c14e6b | 2023-04-06 18:14:41 +0200 | [diff] [blame] | 21 | sdmmc1_b4_pins_a: sdmmc1-b4-0 { |
Yann Gautier | 9f4037e | 2022-05-02 13:49:58 +0200 | [diff] [blame] | 22 | pins { |
Yann Gautier | cd73619 | 2020-02-25 15:14:52 +0100 | [diff] [blame] | 23 | pinmux = <STM32_PINMUX('C', 8, AF12)>, /* SDMMC1_D0 */ |
| 24 | <STM32_PINMUX('C', 9, AF12)>, /* SDMMC1_D1 */ |
| 25 | <STM32_PINMUX('C', 10, AF12)>, /* SDMMC1_D2 */ |
| 26 | <STM32_PINMUX('C', 11, AF12)>, /* SDMMC1_D3 */ |
| 27 | <STM32_PINMUX('D', 2, AF12)>; /* SDMMC1_CMD */ |
| 28 | slew-rate = <1>; |
| 29 | drive-push-pull; |
| 30 | bias-disable; |
| 31 | }; |
Yann Gautier | 9f4037e | 2022-05-02 13:49:58 +0200 | [diff] [blame] | 32 | }; |
| 33 | |
Yann Gautier | c55e2ee | 2023-10-18 14:17:04 +0200 | [diff] [blame] | 34 | /omit-if-no-ref/ |
Yann Gautier | 5c14e6b | 2023-04-06 18:14:41 +0200 | [diff] [blame] | 35 | sdmmc1_clk_pins_a: sdmmc1-clk-0 { |
Yann Gautier | 9f4037e | 2022-05-02 13:49:58 +0200 | [diff] [blame] | 36 | pins { |
Yann Gautier | cd73619 | 2020-02-25 15:14:52 +0100 | [diff] [blame] | 37 | pinmux = <STM32_PINMUX('C', 12, AF12)>; /* SDMMC1_CK */ |
Yann Gautier | 9f4037e | 2022-05-02 13:49:58 +0200 | [diff] [blame] | 38 | slew-rate = <1>; |
Yann Gautier | cd73619 | 2020-02-25 15:14:52 +0100 | [diff] [blame] | 39 | drive-push-pull; |
| 40 | bias-disable; |
| 41 | }; |
| 42 | }; |
| 43 | |
Yann Gautier | c55e2ee | 2023-10-18 14:17:04 +0200 | [diff] [blame] | 44 | /omit-if-no-ref/ |
Yann Gautier | 5c14e6b | 2023-04-06 18:14:41 +0200 | [diff] [blame] | 45 | sdmmc2_b4_pins_a: sdmmc2-b4-0 { |
Yann Gautier | 9f4037e | 2022-05-02 13:49:58 +0200 | [diff] [blame] | 46 | pins { |
Yann Gautier | cd73619 | 2020-02-25 15:14:52 +0100 | [diff] [blame] | 47 | pinmux = <STM32_PINMUX('B', 14, AF10)>, /* SDMMC2_D0 */ |
| 48 | <STM32_PINMUX('B', 15, AF10)>, /* SDMMC2_D1 */ |
| 49 | <STM32_PINMUX('B', 3, AF10)>, /* SDMMC2_D2 */ |
| 50 | <STM32_PINMUX('B', 4, AF10)>, /* SDMMC2_D3 */ |
| 51 | <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */ |
| 52 | slew-rate = <1>; |
| 53 | drive-push-pull; |
| 54 | bias-pull-up; |
| 55 | }; |
Yann Gautier | 9f4037e | 2022-05-02 13:49:58 +0200 | [diff] [blame] | 56 | }; |
| 57 | |
Yann Gautier | c55e2ee | 2023-10-18 14:17:04 +0200 | [diff] [blame] | 58 | /omit-if-no-ref/ |
Yann Gautier | 5c14e6b | 2023-04-06 18:14:41 +0200 | [diff] [blame] | 59 | sdmmc2_clk_pins_a: sdmmc2-clk-0 { |
Yann Gautier | 9f4037e | 2022-05-02 13:49:58 +0200 | [diff] [blame] | 60 | pins { |
Yann Gautier | cd73619 | 2020-02-25 15:14:52 +0100 | [diff] [blame] | 61 | pinmux = <STM32_PINMUX('E', 3, AF10)>; /* SDMMC2_CK */ |
Yann Gautier | 9f4037e | 2022-05-02 13:49:58 +0200 | [diff] [blame] | 62 | slew-rate = <1>; |
Yann Gautier | cd73619 | 2020-02-25 15:14:52 +0100 | [diff] [blame] | 63 | drive-push-pull; |
| 64 | bias-pull-up; |
| 65 | }; |
| 66 | }; |
| 67 | |
Yann Gautier | c55e2ee | 2023-10-18 14:17:04 +0200 | [diff] [blame] | 68 | /omit-if-no-ref/ |
Yann Gautier | 5c14e6b | 2023-04-06 18:14:41 +0200 | [diff] [blame] | 69 | uart4_pins_a: uart4-0 { |
Yann Gautier | cd73619 | 2020-02-25 15:14:52 +0100 | [diff] [blame] | 70 | pins1 { |
| 71 | pinmux = <STM32_PINMUX('D', 6, AF8)>; /* UART4_TX */ |
| 72 | bias-disable; |
| 73 | drive-push-pull; |
| 74 | slew-rate = <0>; |
| 75 | }; |
| 76 | pins2 { |
| 77 | pinmux = <STM32_PINMUX('D', 8, AF8)>; /* UART4_RX */ |
| 78 | bias-disable; |
| 79 | }; |
| 80 | }; |
| 81 | |
Yann Gautier | c55e2ee | 2023-10-18 14:17:04 +0200 | [diff] [blame] | 82 | /omit-if-no-ref/ |
Yann Gautier | 5c14e6b | 2023-04-06 18:14:41 +0200 | [diff] [blame] | 83 | usart1_pins_a: usart1-0 { |
Yann Gautier | cd73619 | 2020-02-25 15:14:52 +0100 | [diff] [blame] | 84 | pins1 { |
| 85 | pinmux = <STM32_PINMUX('C', 0, AF7)>, /* USART1_TX */ |
| 86 | <STM32_PINMUX('C', 2, AF7)>; /* USART1_RTS */ |
| 87 | bias-disable; |
| 88 | drive-push-pull; |
| 89 | slew-rate = <0>; |
| 90 | }; |
| 91 | pins2 { |
| 92 | pinmux = <STM32_PINMUX('B', 0, AF4)>, /* USART1_RX */ |
| 93 | <STM32_PINMUX('A', 7, AF7)>; /* USART1_CTS_NSS */ |
| 94 | bias-pull-up; |
| 95 | }; |
| 96 | }; |
| 97 | |
Yann Gautier | c55e2ee | 2023-10-18 14:17:04 +0200 | [diff] [blame] | 98 | /omit-if-no-ref/ |
Yann Gautier | 5c14e6b | 2023-04-06 18:14:41 +0200 | [diff] [blame] | 99 | uart8_pins_a: uart8-0 { |
Yann Gautier | cd73619 | 2020-02-25 15:14:52 +0100 | [diff] [blame] | 100 | pins1 { |
| 101 | pinmux = <STM32_PINMUX('E', 1, AF8)>; /* UART8_TX */ |
| 102 | bias-disable; |
| 103 | drive-push-pull; |
| 104 | slew-rate = <0>; |
| 105 | }; |
| 106 | pins2 { |
| 107 | pinmux = <STM32_PINMUX('F', 9, AF8)>; /* UART8_RX */ |
| 108 | bias-pull-up; |
| 109 | }; |
| 110 | }; |
| 111 | }; |