2017-08-09 17:21:09 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 RnDity Sp. z o.o.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <dt-bindings/pinctrl/stm32-pinctrl.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
soc {
|
2018-04-24 21:32:10 +08:00
|
|
|
pinctrl: pin-controller@48000000 {
|
2017-08-09 17:21:09 +08:00
|
|
|
usart1_pins_a: usart1@0 {
|
|
|
|
rx_tx {
|
|
|
|
rx = <STM32_PIN_PB7 (STM32_PINMUX_ALT_FUNC_0 | STM32_PUPDR_NO_PULL)>;
|
|
|
|
tx = <STM32_PIN_PB6 (STM32_PINMUX_ALT_FUNC_0 | STM32_PUSHPULL_NOPULL)>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
usart1_pins_b: usart1@1 {
|
|
|
|
rx_tx {
|
|
|
|
rx = <STM32_PIN_PA10 (STM32_PINMUX_ALT_FUNC_1 | STM32_PUPDR_NO_PULL)>;
|
|
|
|
tx = <STM32_PIN_PA9 (STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
usart2_pins_a: usart2@0 {
|
|
|
|
rx_tx {
|
|
|
|
rx = <STM32_PIN_PA3 (STM32_PINMUX_ALT_FUNC_1 | STM32_PUPDR_NO_PULL)>;
|
|
|
|
tx = <STM32_PIN_PA2 (STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
usart2_pins_b: usart2@1 {
|
|
|
|
rx_tx {
|
|
|
|
rx = <STM32_PIN_PA15 (STM32_PINMUX_ALT_FUNC_1 | STM32_PUPDR_NO_PULL)>;
|
|
|
|
tx = <STM32_PIN_PA14 (STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)>;
|
|
|
|
};
|
|
|
|
};
|
2017-09-08 21:59:38 +08:00
|
|
|
usart2_pins_d: usart2@2 {
|
|
|
|
rx_tx {
|
|
|
|
rx = <STM32_PIN_PD6 (STM32_PINMUX_ALT_FUNC_0 | STM32_PUPDR_NO_PULL)>;
|
|
|
|
tx = <STM32_PIN_PD5 (STM32_PINMUX_ALT_FUNC_0 | STM32_PUSHPULL_NOPULL)>;
|
|
|
|
};
|
|
|
|
};
|
2017-08-09 17:21:09 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|