arm: stm32: dts: use label to generate STM32 uart name

Now that we can utilize label in the device tree we can convert to
getting the device name for the STM32 UART out of the device tree
instead of from Kconfig.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2017-05-16 15:50:20 -05:00 committed by Anas Nashif
commit bb2c32428b
24 changed files with 70 additions and 80 deletions

View file

@ -27,14 +27,6 @@ config UART_STM32_PORT_1
Enable support for USART1 port in the driver. Say y here
if you want to use USART1 device.
config UART_STM32_PORT_1_NAME
string "Device Name for STM32 USART1 Port"
default "UART_1"
depends on UART_STM32_PORT_1
help
This is the device name for USART1 port, and is
included in the device struct.
# --- port 2 ---
config UART_STM32_PORT_2
@ -45,14 +37,6 @@ config UART_STM32_PORT_2
Enable support for USART2 port in the driver. Say y here
if you want to use USART2 device.
config UART_STM32_PORT_2_NAME
string "Device Name for STM32 USART2 Port"
default "UART_2"
depends on UART_STM32_PORT_2
help
This is the device name for USART2 port, and is
included in the device struct.
# --- port 3 ---
config UART_STM32_PORT_3
@ -63,14 +47,6 @@ config UART_STM32_PORT_3
Enable support for USART3 port in the driver. Say y here
if you want to use USART3 device.
config UART_STM32_PORT_3_NAME
string "Device Name for STM32 USART3 Port"
default "UART_3"
depends on UART_STM32_PORT_3
help
This is the device name for USART3 port, and is
included in the device struct.
# --- port 4 ---
config UART_STM32_PORT_4
@ -81,14 +57,6 @@ config UART_STM32_PORT_4
Enable support for UART4 port in the driver. Say y here
if you want to use UART4 device.
config UART_STM32_PORT_4_NAME
string "Device Name for STM32 UART4 Port"
default "UART_4"
depends on UART_STM32_PORT_4
help
This is the device name for UART4 port, and is
included in the device struct.
# --- port 5 ---
config UART_STM32_PORT_5
@ -99,14 +67,6 @@ config UART_STM32_PORT_5
Enable support for UART5 port in the driver. Say y here
if you want to use UART5 device.
config UART_STM32_PORT_5_NAME
string "Device Name for STM32 UART5 Port"
default "UART_5"
depends on UART_STM32_PORT_5
help
This is the device name for UART5 port, and is
included in the device struct.
# --- port 6 ---
config UART_STM32_PORT_6
@ -117,14 +77,6 @@ config UART_STM32_PORT_6
Enable support for USART6 port in the driver. Say y here
if you want to use USART6 device.
config UART_STM32_PORT_6_NAME
string "Device Name for STM32 USART6 Port"
default "UART_6"
depends on UART_STM32_PORT_6
help
This is the device name for USART6 port, and is
included in the device struct.
# --- port 7 ---
config UART_STM32_PORT_7
@ -135,14 +87,6 @@ config UART_STM32_PORT_7
Enable support for UART7 port in the driver. Say y here
if you want to use UART7 device.
config UART_STM32_PORT_7_NAME
string "Device Name for STM32 UART7 Port"
default "UART_7"
depends on UART_STM32_PORT_7
help
This is the device name for UART7 port, and is
included in the device struct.
# --- port 8 ---
config UART_STM32_PORT_8
@ -153,14 +97,6 @@ config UART_STM32_PORT_8
Enable support for UART8 port in the driver. Say y here
if you want to use UART8 device.
config UART_STM32_PORT_8_NAME
string "Device Name for STM32 UART8 Port"
default "UART_8"
depends on UART_STM32_PORT_8
help
This is the device name for UART8 port, and is
included in the device struct.
# --- port 9 ---
config UART_STM32_PORT_9
@ -171,14 +107,6 @@ config UART_STM32_PORT_9
Enable support for UART9 port in the driver. Say y here
if you want to use UART9 device.
config UART_STM32_PORT_9_NAME
string "Device Name for STM32 UART9 Port"
default "UART_9"
depends on UART_STM32_PORT_9
help
This is the device name for UART9 port, and is
included in the device struct.
# --- port 10 ---
config UART_STM32_PORT_10
@ -189,12 +117,4 @@ config UART_STM32_PORT_10
Enable support for UART10 port in the driver. Say y here
if you want to use UART10 device.
config UART_STM32_PORT_10_NAME
string "Device Name for STM32 UART10 Port"
default "UART_10"
depends on UART_STM32_PORT_10
help
This is the device name for UART10 port, and is
included in the device struct.
endif # UART_STM32

View file

@ -10,9 +10,11 @@
#define CONFIG_UART_STM32_PORT_1_BASE_ADDRESS ST_STM32_USART_40011000_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_1_BAUD_RATE ST_STM32_USART_40011000_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_1_IRQ_PRI ST_STM32_USART_40011000_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_1_NAME ST_STM32_USART_40011000_LABEL
#define PORT_1_IRQ ST_STM32_USART_40011000_IRQ_0
#define CONFIG_UART_STM32_PORT_2_BASE_ADDRESS ST_STM32_USART_40004400_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_2_BAUD_RATE ST_STM32_USART_40004400_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_2_IRQ_PRI ST_STM32_USART_40004400_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_2_NAME ST_STM32_USART_40004400_LABEL
#define PORT_2_IRQ ST_STM32_USART_40004400_IRQ_0

View file

@ -9,24 +9,29 @@
#define CONFIG_UART_STM32_PORT_1_BASE_ADDRESS ST_STM32_USART_40013800_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_1_BAUD_RATE ST_STM32_USART_40013800_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_1_IRQ_PRI ST_STM32_USART_40013800_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_1_NAME ST_STM32_USART_40013800_LABEL
#define PORT_1_IRQ ST_STM32_USART_40013800_IRQ_0
#define CONFIG_UART_STM32_PORT_2_BASE_ADDRESS ST_STM32_USART_40004400_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_2_BAUD_RATE ST_STM32_USART_40004400_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_2_IRQ_PRI ST_STM32_USART_40004400_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_2_NAME ST_STM32_USART_40004400_LABEL
#define PORT_2_IRQ ST_STM32_USART_40004400_IRQ_0
#define CONFIG_UART_STM32_PORT_3_BASE_ADDRESS ST_STM32_USART_40004800_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_3_BAUD_RATE ST_STM32_USART_40004800_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_3_IRQ_PRI ST_STM32_USART_40004800_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_3_NAME ST_STM32_USART_40004800_LABEL
#define PORT_3_IRQ ST_STM32_USART_40004800_IRQ_0
#define CONFIG_UART_STM32_PORT_4_BASE_ADDRESS ST_STM32_USART_40004C00_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_4_BAUD_RATE ST_STM32_USART_40004C00_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_4_IRQ_PRI ST_STM32_USART_40004C00_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_4_NAME ST_STM32_USART_40004C00_LABEL
#define PORT_4_IRQ ST_STM32_USART_40004C00_IRQ_0
#define CONFIG_UART_STM32_PORT_5_BASE_ADDRESS ST_STM32_USART_40005000_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_5_BAUD_RATE ST_STM32_USART_40005000_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_5_IRQ_PRI ST_STM32_USART_40005000_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_5_NAME ST_STM32_USART_40005000_LABEL
#define PORT_5_IRQ ST_STM32_USART_40005000_IRQ_0

View file

@ -10,4 +10,5 @@
#define CONFIG_UART_STM32_PORT_2_BASE_ADDRESS ST_STM32_USART_40004400_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_2_BAUD_RATE ST_STM32_USART_40004400_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_2_IRQ_PRI ST_STM32_USART_40004400_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_2_NAME ST_STM32_USART_40004400_LABEL
#define PORT_2_IRQ ST_STM32_USART_40004400_IRQ_0

View file

@ -10,4 +10,5 @@
#define CONFIG_UART_STM32_PORT_2_BASE_ADDRESS ST_STM32_USART_40004400_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_2_BAUD_RATE ST_STM32_USART_40004400_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_2_IRQ_PRI ST_STM32_USART_40004400_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_2_NAME ST_STM32_USART_40004400_LABEL
#define PORT_2_IRQ ST_STM32_USART_40004400_IRQ_0

View file

@ -10,9 +10,11 @@
#define CONFIG_UART_STM32_PORT_1_BASE_ADDRESS ST_STM32_USART_40011000_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_1_BAUD_RATE ST_STM32_USART_40011000_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_1_IRQ_PRI ST_STM32_USART_40011000_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_1_NAME ST_STM32_USART_40011000_LABEL
#define PORT_1_IRQ ST_STM32_USART_40011000_IRQ_0
#define CONFIG_UART_STM32_PORT_2_BASE_ADDRESS ST_STM32_USART_40004400_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_2_BAUD_RATE ST_STM32_USART_40004400_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_2_IRQ_PRI ST_STM32_USART_40004400_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_2_NAME ST_STM32_USART_40004400_LABEL
#define PORT_2_IRQ ST_STM32_USART_40004400_IRQ_0

View file

@ -10,9 +10,11 @@
#define CONFIG_UART_STM32_PORT_1_BASE_ADDRESS ST_STM32_USART_40011000_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_1_BAUD_RATE ST_STM32_USART_40011000_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_1_IRQ_PRI ST_STM32_USART_40011000_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_1_NAME ST_STM32_USART_40011000_LABEL
#define PORT_1_IRQ ST_STM32_USART_40011000_IRQ_0
#define CONFIG_UART_STM32_PORT_2_BASE_ADDRESS ST_STM32_USART_40004400_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_2_BAUD_RATE ST_STM32_USART_40004400_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_2_IRQ_PRI ST_STM32_USART_40004400_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_2_NAME ST_STM32_USART_40004400_LABEL
#define PORT_2_IRQ ST_STM32_USART_40004400_IRQ_0

View file

@ -10,4 +10,5 @@
#define CONFIG_UART_STM32_PORT_3_BASE_ADDRESS ST_STM32_USART_40004800_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_3_BAUD_RATE ST_STM32_USART_40004800_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_3_IRQ_PRI ST_STM32_USART_40004800_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_3_NAME ST_STM32_USART_40004800_LABEL
#define PORT_3_IRQ ST_STM32_USART_40004800_IRQ_0

View file

@ -9,19 +9,23 @@
#define CONFIG_UART_STM32_PORT_1_BASE_ADDRESS ST_STM32_USART_40013800_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_1_BAUD_RATE ST_STM32_USART_40013800_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_1_IRQ_PRI ST_STM32_USART_40013800_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_1_NAME ST_STM32_USART_40013800_LABEL
#define PORT_1_IRQ ST_STM32_USART_40013800_IRQ_0
#define CONFIG_UART_STM32_PORT_2_BASE_ADDRESS ST_STM32_USART_40004400_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_2_BAUD_RATE ST_STM32_USART_40004400_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_2_IRQ_PRI ST_STM32_USART_40004400_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_2_NAME ST_STM32_USART_40004400_LABEL
#define PORT_2_IRQ ST_STM32_USART_40004400_IRQ_0
#define CONFIG_UART_STM32_PORT_3_BASE_ADDRESS ST_STM32_USART_40004800_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_3_BAUD_RATE ST_STM32_USART_40004800_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_3_IRQ_PRI ST_STM32_USART_40004800_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_3_NAME ST_STM32_USART_40004800_LABEL
#define PORT_3_IRQ ST_STM32_USART_40004800_IRQ_0
#define CONFIG_UART_STM32_PORT_4_BASE_ADDRESS ST_STM32_USART_40004C00_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_4_BAUD_RATE ST_STM32_USART_40004C00_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_4_IRQ_PRI ST_STM32_USART_40004C00_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_4_NAME ST_STM32_USART_40004C00_LABEL
#define PORT_4_IRQ ST_STM32_USART_40004C00_IRQ_0

View file

@ -9,24 +9,29 @@
#define CONFIG_UART_STM32_PORT_1_BASE_ADDRESS ST_STM32_USART_40013800_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_1_BAUD_RATE ST_STM32_USART_40013800_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_1_IRQ_PRI ST_STM32_USART_40013800_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_1_NAME ST_STM32_USART_40013800_LABEL
#define PORT_1_IRQ ST_STM32_USART_40013800_IRQ_0
#define CONFIG_UART_STM32_PORT_2_BASE_ADDRESS ST_STM32_USART_40004400_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_2_BAUD_RATE ST_STM32_USART_40004400_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_2_IRQ_PRI ST_STM32_USART_40004400_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_2_NAME ST_STM32_USART_40004400_LABEL
#define PORT_2_IRQ ST_STM32_USART_40004400_IRQ_0
#define CONFIG_UART_STM32_PORT_3_BASE_ADDRESS ST_STM32_USART_40004800_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_3_BAUD_RATE ST_STM32_USART_40004800_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_3_IRQ_PRI ST_STM32_USART_40004800_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_3_NAME ST_STM32_USART_40004800_LABEL
#define PORT_3_IRQ ST_STM32_USART_40004800_IRQ_0
#define CONFIG_UART_STM32_PORT_4_BASE_ADDRESS ST_STM32_USART_40004C00_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_4_BAUD_RATE ST_STM32_USART_40004C00_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_4_IRQ_PRI ST_STM32_USART_40004C00_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_4_NAME ST_STM32_USART_40004C00_LABEL
#define PORT_4_IRQ ST_STM32_USART_40004C00_IRQ_0
#define CONFIG_UART_STM32_PORT_5_BASE_ADDRESS ST_STM32_USART_40005000_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_5_BAUD_RATE ST_STM32_USART_40005000_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_5_IRQ_PRI ST_STM32_USART_40005000_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_5_NAME ST_STM32_USART_40005000_LABEL
#define PORT_5_IRQ ST_STM32_USART_40005000_IRQ_0

View file

@ -10,14 +10,17 @@
#define CONFIG_UART_STM32_PORT_1_BASE_ADDRESS ST_STM32_USART_40013800_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_1_BAUD_RATE ST_STM32_USART_40013800_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_1_IRQ_PRI ST_STM32_USART_40013800_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_1_NAME ST_STM32_USART_40013800_LABEL
#define PORT_1_IRQ ST_STM32_USART_40013800_IRQ_0
#define CONFIG_UART_STM32_PORT_2_BASE_ADDRESS ST_STM32_USART_40004400_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_2_BAUD_RATE ST_STM32_USART_40004400_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_2_IRQ_PRI ST_STM32_USART_40004400_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_2_NAME ST_STM32_USART_40004400_LABEL
#define PORT_2_IRQ ST_STM32_USART_40004400_IRQ_0
#define CONFIG_UART_STM32_PORT_3_BASE_ADDRESS ST_STM32_USART_40004800_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_3_BAUD_RATE ST_STM32_USART_40004800_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_3_IRQ_PRI ST_STM32_USART_40004800_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_3_NAME ST_STM32_USART_40004800_LABEL
#define PORT_3_IRQ ST_STM32_USART_40004800_IRQ_0

View file

@ -25,6 +25,7 @@
reg = <0x40013800 0x400>;
interrupts = <37 0>;
status = "disabled";
label = "UART_1";
};
usart2: uart@40004400 {
@ -32,6 +33,7 @@
reg = <0x40004400 0x400>;
interrupts = <38 0>;
status = "disabled";
label = "UART_2";
};
usart3: uart@40004800 {
@ -39,6 +41,7 @@
reg = <0x40004800 0x400>;
interrupts = <39 0>;
status = "disabled";
label = "UART_3";
};
};
};

View file

@ -25,6 +25,7 @@
reg = <0x40013800 0x400>;
interrupts = <37 0>;
status = "disabled";
label = "UART_1";
};
usart2: uart@40004400 {
@ -32,6 +33,7 @@
reg = <0x40004400 0x400>;
interrupts = <38 0>;
status = "disabled";
label = "UART_2";
};
usart3: uart@40004800 {
@ -39,6 +41,7 @@
reg = <0x40004800 0x400>;
interrupts = <39 0>;
status = "disabled";
label = "UART_3";
};
};
};

View file

@ -22,6 +22,7 @@
reg = <0x40013800 0x400>;
interrupts = <37 0>;
status = "disabled";
label = "UART_1";
};
usart2: uart@40004400 {
@ -29,6 +30,7 @@
reg = <0x40004400 0x400>;
interrupts = <38 0>;
status = "disabled";
label = "UART_2";
};
usart3: uart@40004800 {
@ -36,6 +38,7 @@
reg = <0x40004800 0x400>;
interrupts = <39 0>;
status = "disabled";
label = "UART_3";
};
};
};

View file

@ -22,6 +22,7 @@
reg = <0x40013800 0x400>;
interrupts = <37 0>;
status = "disabled";
label = "UART_1";
};
usart2: uart@40004400 {
@ -29,6 +30,7 @@
reg = <0x40004400 0x400>;
interrupts = <38 0>;
status = "disabled";
label = "UART_2";
};
usart3: uart@40004800 {
@ -36,6 +38,7 @@
reg = <0x40004800 0x400>;
interrupts = <39 0>;
status = "disabled";
label = "UART_3";
};
};
};

View file

@ -22,6 +22,7 @@
reg = <0x40013800 0x400>;
interrupts = <37 0>;
status = "disabled";
label = "UART_1";
};
usart2: uart@40004400 {
@ -29,6 +30,7 @@
reg = <0x40004400 0x400>;
interrupts = <38 0>;
status = "disabled";
label = "UART_2";
};
usart3: uart@40004800 {
@ -36,6 +38,7 @@
reg = <0x40004800 0x400>;
interrupts = <39 0>;
status = "disabled";
label = "UART_3";
};
};
};

View file

@ -22,6 +22,7 @@
reg = <0x40011000 0x400>;
interrupts = <37 0>;
status = "disabled";
label = "UART_1";
};
usart2: uart@40004400 {
@ -29,6 +30,7 @@
reg = <0x40004400 0x400>;
interrupts = <38 0>;
status = "disabled";
label = "UART_2";
};
usart3: uart@40004800 {
@ -36,6 +38,7 @@
reg = <0x40004800 0x400>;
interrupts = <39 0>;
status = "disabled";
label = "UART_3";
};
uart4: uart@40004c00 {
@ -43,6 +46,7 @@
reg = <0x40004c00 0x400>;
interrupts = <52 0>;
status = "disabled";
label = "UART_4";
};
uart5: uart@40005000 {
@ -50,6 +54,7 @@
reg = <0x40005000 0x400>;
interrupts = <53 0>;
status = "disabled";
label = "UART_5";
};
usart6: uart@40011400 {
@ -57,6 +62,7 @@
reg = <0x40011400 0x400>;
interrupts = <71 0>;
status = "disabled";
label = "UART_6";
};
uart7: uart@40007800 {
@ -64,6 +70,7 @@
reg = <0x40007800 0x400>;
interrupts = <82 0>;
status = "disabled";
label = "UART_7";
};
uart8: uart@40007c00 {
@ -71,6 +78,7 @@
reg = <0x40007c00 0x400>;
interrupts = <83 0>;
status = "disabled";
label = "UART_8";
};
uart9: uart@40011800 {
@ -78,6 +86,7 @@
reg = <0x40011800 0x400>;
interrupts = <88 0>;
status = "disabled";
label = "UART_9";
};
uart10: uart@40011c00 {
@ -85,6 +94,7 @@
reg = <0x40011c00 0x400>;
interrupts = <89 0>;
status = "disabled";
label = "UART_10";
};
};
};

View file

@ -22,6 +22,7 @@
reg = <0x40013800 0x400>;
interrupts = <37 0>;
status = "disabled";
label = "UART_1";
};
usart2: uart@40004400 {
@ -29,6 +30,7 @@
reg = <0x40004400 0x400>;
interrupts = <38 0>;
status = "disabled";
label = "UART_2";
};
usart3: uart@40004800 {
@ -36,6 +38,7 @@
reg = <0x40004800 0x400>;
interrupts = <39 0>;
status = "disabled";
label = "UART_3";
};
uart4: uart@40004c00 {
@ -43,6 +46,7 @@
reg = <0x40004c00 0x400>;
interrupts = <52 0>;
status = "disabled";
label = "UART_4";
};
};
};

View file

@ -22,6 +22,7 @@
reg = <0x40013800 0x400>;
interrupts = <37 0>;
status = "disabled";
label = "UART_1";
};
usart2: uart@40004400 {
@ -29,6 +30,7 @@
reg = <0x40004400 0x400>;
interrupts = <38 0>;
status = "disabled";
label = "UART_2";
};
usart3: uart@40004800 {
@ -36,6 +38,7 @@
reg = <0x40004800 0x400>;
interrupts = <39 0>;
status = "disabled";
label = "UART_3";
};
uart4: uart@40004c00 {
@ -43,6 +46,7 @@
reg = <0x40004c00 0x400>;
interrupts = <52 0>;
status = "disabled";
label = "UART_4";
};
uart5: uart@40005000 {
@ -50,6 +54,7 @@
reg = <0x40005000 0x400>;
interrupts = <53 0>;
status = "disabled";
label = "UART_5";
};
};
};

View file

@ -10,4 +10,5 @@
#define CONFIG_UART_STM32_PORT_2_BASE_ADDRESS ST_STM32_USART_40004400_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_2_BAUD_RATE ST_STM32_USART_40004400_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_2_IRQ_PRI ST_STM32_USART_40004400_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_2_NAME ST_STM32_USART_40004400_LABEL
#define PORT_2_IRQ ST_STM32_USART_40004400_IRQ_0

View file

@ -10,4 +10,5 @@
#define CONFIG_UART_STM32_PORT_2_BASE_ADDRESS ST_STM32_USART_40004400_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_2_BAUD_RATE ST_STM32_USART_40004400_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_2_IRQ_PRI ST_STM32_USART_40004400_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_2_NAME ST_STM32_USART_40004400_LABEL
#define PORT_2_IRQ ST_STM32_USART_40004400_IRQ_0

View file

@ -10,4 +10,5 @@
#define CONFIG_UART_STM32_PORT_1_BASE_ADDRESS ST_STM32_USART_40013800_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_1_BAUD_RATE ST_STM32_USART_40013800_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_1_IRQ_PRI ST_STM32_USART_40013800_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_1_NAME ST_STM32_USART_40013800_LABEL
#define PORT_1_IRQ ST_STM32_USART_40013800_IRQ_0

View file

@ -10,9 +10,11 @@
#define CONFIG_UART_STM32_PORT_1_BASE_ADDRESS ST_STM32_USART_40011000_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_1_BAUD_RATE ST_STM32_USART_40011000_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_1_IRQ_PRI ST_STM32_USART_40011000_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_1_NAME ST_STM32_USART_40011000_LABEL
#define PORT_1_IRQ ST_STM32_USART_40011000_IRQ_0
#define CONFIG_UART_STM32_PORT_2_BASE_ADDRESS ST_STM32_USART_40004400_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_2_BAUD_RATE ST_STM32_USART_40004400_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_2_IRQ_PRI ST_STM32_USART_40004400_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_2_NAME ST_STM32_USART_40004400_LABEL
#define PORT_2_IRQ ST_STM32_USART_40004400_IRQ_0

View file

@ -9,24 +9,29 @@
#define CONFIG_UART_STM32_PORT_1_BASE_ADDRESS ST_STM32_USART_40013800_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_1_BAUD_RATE ST_STM32_USART_40013800_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_1_IRQ_PRI ST_STM32_USART_40013800_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_1_NAME ST_STM32_USART_40013800_LABEL
#define PORT_1_IRQ ST_STM32_USART_40013800_IRQ_0
#define CONFIG_UART_STM32_PORT_2_BASE_ADDRESS ST_STM32_USART_40004400_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_2_BAUD_RATE ST_STM32_USART_40004400_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_2_IRQ_PRI ST_STM32_USART_40004400_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_2_NAME ST_STM32_USART_40004400_LABEL
#define PORT_2_IRQ ST_STM32_USART_40004400_IRQ_0
#define CONFIG_UART_STM32_PORT_3_BASE_ADDRESS ST_STM32_USART_40004800_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_3_BAUD_RATE ST_STM32_USART_40004800_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_3_IRQ_PRI ST_STM32_USART_40004800_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_3_NAME ST_STM32_USART_40004800_LABEL
#define PORT_3_IRQ ST_STM32_USART_40004800_IRQ_0
#define CONFIG_UART_STM32_PORT_4_BASE_ADDRESS ST_STM32_USART_40004C00_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_4_BAUD_RATE ST_STM32_USART_40004C00_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_4_IRQ_PRI ST_STM32_USART_40004C00_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_4_NAME ST_STM32_USART_40004C00_LABEL
#define PORT_4_IRQ ST_STM32_USART_40004C00_IRQ_0
#define CONFIG_UART_STM32_PORT_5_BASE_ADDRESS ST_STM32_USART_40005000_BASE_ADDRESS
#define CONFIG_UART_STM32_PORT_5_BAUD_RATE ST_STM32_USART_40005000_CURRENT_SPEED
#define CONFIG_UART_STM32_PORT_5_IRQ_PRI ST_STM32_USART_40005000_IRQ_0_PRIORITY
#define CONFIG_UART_STM32_PORT_5_NAME ST_STM32_USART_40005000_LABEL
#define PORT_5_IRQ ST_STM32_USART_40005000_IRQ_0