Skip to content

Commit baf53b3

Browse files
youssefz24danieldegrasse
authored andcommitted
boards: add uart5 as console and shell-UART
Add UART5 as zephyr console and shell-UART device by default and ensure its corresponding GPIOG node is enabled. Add USART6 as a disabled node for potential use. Enable UART support to the STM32MP257F-EV1 board configuration and add the shell feature in the yaml. Signed-off-by: Youssef Zini <youssef.zini@savoirfairelinux.com>
1 parent be12fa1 commit baf53b3

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
compatible = "st,stm32mp257f-ev1", "st,stm32mp25";
1515

1616
chosen {
17+
zephyr,console = &uart5;
18+
zephyr,shell-uart = &uart5;
1719
zephyr,flash = &ddr_code;
1820
zephyr,sram = &ddr_sys;
1921
};
@@ -54,3 +56,17 @@
5456
&gpioj {
5557
status = "okay";
5658
};
59+
60+
&uart5 {
61+
pinctrl-0 = <&uart5_tx_pg9 &uart5_rx_pg10>;
62+
pinctrl-names = "default";
63+
current-speed = <115200>;
64+
status = "okay";
65+
};
66+
67+
&usart6 {
68+
pinctrl-0 = <&usart6_tx_pf13 &usart6_rx_pf14>;
69+
pinctrl-names = "default";
70+
current-speed = <115200>;
71+
status = "disabled";
72+
};

boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ toolchain:
88
supported:
99
- LED
1010
- gpio
11+
- shell
1112
testing:
1213
ignore_tags:
1314
- cmsis_rtos_v2
@@ -17,7 +18,6 @@ testing:
1718
- crypto
1819
- aes
1920
- cmm
20-
- shell
2121
- nfc
2222
ram: 8192
2323
flash: 8192

boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33_defconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@ CONFIG_GPIO=y
99

1010
# Enable HW stack protection
1111
CONFIG_HW_STACK_PROTECTION=y
12+
13+
# Enable UART driver
14+
CONFIG_SERIAL=y
15+
CONFIG_UART_INTERRUPT_DRIVEN=y
16+
17+
# UART console
18+
CONFIG_CONSOLE=y
19+
CONFIG_UART_CONSOLE=y

0 commit comments

Comments
 (0)