arm: stm32f4: Add UART4 pinmux definitions
Add missing UART4 pinmux definitions for STM32F4 series. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
This commit is contained in:
parent
8f56e8e681
commit
f8ac865693
4 changed files with 31 additions and 0 deletions
|
@ -267,6 +267,8 @@
|
|||
|
||||
#define STM32F4_PINMUX_FUNC_PC10_USART3_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F4_PINMUX_FUNC_PC10_UART4_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PC11_USART3_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_NOPULL)
|
||||
|
|
|
@ -45,6 +45,18 @@
|
|||
tx = <STM32_PIN_PD8 (STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_NOPULL)>;
|
||||
};
|
||||
};
|
||||
uart4_pins_a: uart4_a {
|
||||
rx_tx {
|
||||
rx = <STM32_PIN_PA1 (STM32_PINMUX_ALT_FUNC_8 | STM32_PUPDR_NO_PULL)>;
|
||||
tx = <STM32_PIN_PA0 (STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)>;
|
||||
};
|
||||
};
|
||||
uart4_pins_b: uart4_b {
|
||||
rx_tx {
|
||||
rx = <STM32_PIN_PC11 (STM32_PINMUX_ALT_FUNC_8 | STM32_PUPDR_NO_PULL)>;
|
||||
tx = <STM32_PIN_PC10 (STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)>;
|
||||
};
|
||||
};
|
||||
usart6_pins_a: usart6_a {
|
||||
rx_tx {
|
||||
rx = <STM32_PIN_PC7 (STM32_PINMUX_ALT_FUNC_8 | STM32_PUPDR_NO_PULL)>;
|
||||
|
|
|
@ -133,6 +133,15 @@
|
|||
label = "UART_2";
|
||||
};
|
||||
|
||||
uart4: serial@40004c00 {
|
||||
compatible = "st,stm32-usart", "st,stm32-uart";
|
||||
reg = <0x40004C00 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00080000>;
|
||||
interrupts = <52 0>;
|
||||
status = "disabled";
|
||||
label = "UART_4";
|
||||
};
|
||||
|
||||
usart6: serial@40011400 {
|
||||
compatible = "st,stm32-usart", "st,stm32-uart";
|
||||
reg = <0x40011400 0x400>;
|
||||
|
|
|
@ -125,6 +125,14 @@
|
|||
#define DT_UART_STM32_USART_3_CLOCK_BITS DT_ST_STM32_USART_40004800_CLOCK_BITS
|
||||
#define DT_UART_STM32_USART_3_CLOCK_BUS DT_ST_STM32_USART_40004800_CLOCK_BUS
|
||||
|
||||
#define DT_UART_STM32_UART_4_BASE_ADDRESS DT_ST_STM32_USART_40004C00_BASE_ADDRESS
|
||||
#define DT_UART_STM32_UART_4_BAUD_RATE DT_ST_STM32_USART_40004C00_CURRENT_SPEED
|
||||
#define DT_UART_STM32_UART_4_IRQ_PRI DT_ST_STM32_USART_40004C00_IRQ_0_PRIORITY
|
||||
#define DT_UART_STM32_UART_4_NAME DT_ST_STM32_USART_40004C00_LABEL
|
||||
#define DT_UART_4_IRQ DT_ST_STM32_USART_40004C00_IRQ_0
|
||||
#define DT_UART_STM32_UART_4_CLOCK_BITS DT_ST_STM32_USART_40004C00_CLOCK_BITS
|
||||
#define DT_UART_STM32_UART_4_CLOCK_BUS DT_ST_STM32_USART_40004C00_CLOCK_BUS
|
||||
|
||||
#define DT_UART_STM32_USART_6_NAME DT_ST_STM32_USART_40011400_LABEL
|
||||
#define DT_UART_STM32_USART_6_BASE_ADDRESS DT_ST_STM32_USART_40011400_BASE_ADDRESS
|
||||
#define DT_UART_STM32_USART_6_BAUD_RATE DT_ST_STM32_USART_40011400_CURRENT_SPEED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue