Skip to content
Permalink
Browse files

soc: stm32f4: complete uart7's dts

Complete definitions for UART7 on
STM32F4 SoCs.

Signed-off-by: Jun Li <jun.r.li@intel.com>
  • Loading branch information...
jli157 authored and nashif committed May 7, 2019
1 parent cb39e4a commit 9f21b09d9ee089674a4486a32e5f8b216bdab863
Showing with 21 additions and 0 deletions.
  1. +12 −0 dts/arm/st/f4/stm32f4-pinctrl.dtsi
  2. +9 −0 soc/arm/st_stm32/stm32f4/dts_fixup.h
@@ -69,6 +69,18 @@
tx = <STM32_PIN_PG14 (STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)>;
};
};
uart7_pins_a: uart7_a {
rx_tx {
rx = <STM32_PIN_PE7 (STM32_PINMUX_ALT_FUNC_8 | STM32_PUPDR_NO_PULL)>;
tx = <STM32_PIN_PE8 (STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)>;
};
};
uart7_pins_b: uart7_b {
rx_tx {
rx = <STM32_PIN_PF6 (STM32_PINMUX_ALT_FUNC_8 | STM32_PUPDR_NO_PULL)>;
tx = <STM32_PIN_PF7 (STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)>;
};
};
};
};
};
@@ -157,6 +157,15 @@
#define DT_UART_STM32_USART_6_CLOCK_BUS DT_ST_STM32_USART_40011400_CLOCK_BUS
#define DT_UART_STM32_USART_6_HW_FLOW_CONTROL DT_ST_STM32_USART_40011400_HW_FLOW_CONTROL

#define DT_UART_STM32_UART_7_BASE_ADDRESS DT_ST_STM32_UART_40007800_BASE_ADDRESS
#define DT_UART_STM32_UART_7_BAUD_RATE DT_ST_STM32_UART_40007800_CURRENT_SPEED
#define DT_UART_STM32_UART_7_IRQ_PRI DT_ST_STM32_UART_40007800_IRQ_0_PRIORITY
#define DT_UART_STM32_UART_7_NAME DT_ST_STM32_UART_40007800_LABEL
#define DT_UART_7_IRQ DT_ST_STM32_UART_40007800_IRQ_0
#define DT_UART_STM32_UART_7_CLOCK_BITS DT_ST_STM32_UART_40007800_CLOCK_BITS
#define DT_UART_STM32_UART_7_CLOCK_BUS DT_ST_STM32_UART_40007800_CLOCK_BUS
#define DT_UART_STM32_UART_7_HW_FLOW_CONTROL DT_ST_STM32_UART_40007800_HW_FLOW_CONTROL

#define DT_I2C_1_BASE_ADDRESS DT_ST_STM32_I2C_V1_40005400_BASE_ADDRESS
#define DT_I2C_1_EVENT_IRQ_PRI DT_ST_STM32_I2C_V1_40005400_IRQ_EVENT_PRIORITY
#define DT_I2C_1_ERROR_IRQ_PRI DT_ST_STM32_I2C_V1_40005400_IRQ_ERROR_PRIORITY

0 comments on commit 9f21b09

Please sign in to comment.
You can’t perform that action at this time.