1f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause) 2f126890aSEmmanuel Vadot/* 3f126890aSEmmanuel Vadot * Copyright (C) STMicroelectronics 2023 - All Rights Reserved 4f126890aSEmmanuel Vadot * Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics. 5f126890aSEmmanuel Vadot */ 6f126890aSEmmanuel Vadot#include <dt-bindings/pinctrl/stm32-pinfunc.h> 7f126890aSEmmanuel Vadot 8f126890aSEmmanuel Vadot&pinctrl { 9*84943d6fSEmmanuel Vadot sdmmc1_b4_pins_a: sdmmc1-b4-0 { 10*84943d6fSEmmanuel Vadot pins1 { 11*84943d6fSEmmanuel Vadot pinmux = <STM32_PINMUX('E', 4, AF10)>, /* SDMMC1_D0 */ 12*84943d6fSEmmanuel Vadot <STM32_PINMUX('E', 5, AF10)>, /* SDMMC1_D1 */ 13*84943d6fSEmmanuel Vadot <STM32_PINMUX('E', 0, AF10)>, /* SDMMC1_D2 */ 14*84943d6fSEmmanuel Vadot <STM32_PINMUX('E', 1, AF10)>, /* SDMMC1_D3 */ 15*84943d6fSEmmanuel Vadot <STM32_PINMUX('E', 2, AF10)>; /* SDMMC1_CMD */ 16*84943d6fSEmmanuel Vadot slew-rate = <2>; 17*84943d6fSEmmanuel Vadot drive-push-pull; 18*84943d6fSEmmanuel Vadot bias-disable; 19*84943d6fSEmmanuel Vadot }; 20*84943d6fSEmmanuel Vadot pins2 { 21*84943d6fSEmmanuel Vadot pinmux = <STM32_PINMUX('E', 3, AF10)>; /* SDMMC1_CK */ 22*84943d6fSEmmanuel Vadot slew-rate = <3>; 23*84943d6fSEmmanuel Vadot drive-push-pull; 24*84943d6fSEmmanuel Vadot bias-disable; 25*84943d6fSEmmanuel Vadot }; 26*84943d6fSEmmanuel Vadot }; 27*84943d6fSEmmanuel Vadot 28*84943d6fSEmmanuel Vadot sdmmc1_b4_od_pins_a: sdmmc1-b4-od-0 { 29*84943d6fSEmmanuel Vadot pins1 { 30*84943d6fSEmmanuel Vadot pinmux = <STM32_PINMUX('E', 4, AF10)>, /* SDMMC1_D0 */ 31*84943d6fSEmmanuel Vadot <STM32_PINMUX('E', 5, AF10)>, /* SDMMC1_D1 */ 32*84943d6fSEmmanuel Vadot <STM32_PINMUX('E', 0, AF10)>, /* SDMMC1_D2 */ 33*84943d6fSEmmanuel Vadot <STM32_PINMUX('E', 1, AF10)>; /* SDMMC1_D3 */ 34*84943d6fSEmmanuel Vadot slew-rate = <2>; 35*84943d6fSEmmanuel Vadot drive-push-pull; 36*84943d6fSEmmanuel Vadot bias-disable; 37*84943d6fSEmmanuel Vadot }; 38*84943d6fSEmmanuel Vadot pins2 { 39*84943d6fSEmmanuel Vadot pinmux = <STM32_PINMUX('E', 3, AF10)>; /* SDMMC1_CK */ 40*84943d6fSEmmanuel Vadot slew-rate = <3>; 41*84943d6fSEmmanuel Vadot drive-push-pull; 42*84943d6fSEmmanuel Vadot bias-disable; 43*84943d6fSEmmanuel Vadot }; 44*84943d6fSEmmanuel Vadot pins3 { 45*84943d6fSEmmanuel Vadot pinmux = <STM32_PINMUX('E', 2, AF10)>; /* SDMMC1_CMD */ 46*84943d6fSEmmanuel Vadot slew-rate = <2>; 47*84943d6fSEmmanuel Vadot drive-open-drain; 48*84943d6fSEmmanuel Vadot bias-disable; 49*84943d6fSEmmanuel Vadot }; 50*84943d6fSEmmanuel Vadot }; 51*84943d6fSEmmanuel Vadot 52*84943d6fSEmmanuel Vadot sdmmc1_b4_sleep_pins_a: sdmmc1-b4-sleep-0 { 53*84943d6fSEmmanuel Vadot pins { 54*84943d6fSEmmanuel Vadot pinmux = <STM32_PINMUX('E', 4, ANALOG)>, /* SDMMC1_D0 */ 55*84943d6fSEmmanuel Vadot <STM32_PINMUX('E', 5, ANALOG)>, /* SDMMC1_D1 */ 56*84943d6fSEmmanuel Vadot <STM32_PINMUX('E', 0, ANALOG)>, /* SDMMC1_D2 */ 57*84943d6fSEmmanuel Vadot <STM32_PINMUX('E', 1, ANALOG)>, /* SDMMC1_D3 */ 58*84943d6fSEmmanuel Vadot <STM32_PINMUX('E', 3, ANALOG)>, /* SDMMC1_CK */ 59*84943d6fSEmmanuel Vadot <STM32_PINMUX('E', 2, ANALOG)>; /* SDMMC1_CMD */ 60*84943d6fSEmmanuel Vadot }; 61*84943d6fSEmmanuel Vadot }; 62*84943d6fSEmmanuel Vadot 63f126890aSEmmanuel Vadot usart2_pins_a: usart2-0 { 64f126890aSEmmanuel Vadot pins1 { 65f126890aSEmmanuel Vadot pinmux = <STM32_PINMUX('A', 4, AF6)>; /* USART2_TX */ 66f126890aSEmmanuel Vadot bias-disable; 67f126890aSEmmanuel Vadot drive-push-pull; 68f126890aSEmmanuel Vadot slew-rate = <0>; 69f126890aSEmmanuel Vadot }; 70f126890aSEmmanuel Vadot pins2 { 71f126890aSEmmanuel Vadot pinmux = <STM32_PINMUX('A', 8, AF8)>; /* USART2_RX */ 72f126890aSEmmanuel Vadot bias-disable; 73f126890aSEmmanuel Vadot }; 74f126890aSEmmanuel Vadot }; 75f126890aSEmmanuel Vadot 76f126890aSEmmanuel Vadot usart2_idle_pins_a: usart2-idle-0 { 77f126890aSEmmanuel Vadot pins1 { 78f126890aSEmmanuel Vadot pinmux = <STM32_PINMUX('A', 4, ANALOG)>; /* USART2_TX */ 79f126890aSEmmanuel Vadot }; 80f126890aSEmmanuel Vadot pins2 { 81f126890aSEmmanuel Vadot pinmux = <STM32_PINMUX('A', 8, AF8)>; /* USART2_RX */ 82f126890aSEmmanuel Vadot bias-disable; 83f126890aSEmmanuel Vadot }; 84f126890aSEmmanuel Vadot }; 85f126890aSEmmanuel Vadot 86f126890aSEmmanuel Vadot usart2_sleep_pins_a: usart2-sleep-0 { 87f126890aSEmmanuel Vadot pins { 88f126890aSEmmanuel Vadot pinmux = <STM32_PINMUX('A', 4, ANALOG)>, /* USART2_TX */ 89f126890aSEmmanuel Vadot <STM32_PINMUX('A', 8, ANALOG)>; /* USART2_RX */ 90f126890aSEmmanuel Vadot }; 91f126890aSEmmanuel Vadot }; 92f126890aSEmmanuel Vadot}; 93