Browse Source

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>
pull/92139/head
Youssef Zini 2 months ago committed by Daniel DeGrasse
parent
commit
baf53b3328
  1. 16
      boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33.dts
  2. 2
      boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33.yaml
  3. 8
      boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33_defconfig

16
boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33.dts

@ -14,6 +14,8 @@ @@ -14,6 +14,8 @@
compatible = "st,stm32mp257f-ev1", "st,stm32mp25";
chosen {
zephyr,console = &uart5;
zephyr,shell-uart = &uart5;
zephyr,flash = &ddr_code;
zephyr,sram = &ddr_sys;
};
@ -54,3 +56,17 @@ @@ -54,3 +56,17 @@
&gpioj {
status = "okay";
};
&uart5 {
pinctrl-0 = <&uart5_tx_pg9 &uart5_rx_pg10>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};
&usart6 {
pinctrl-0 = <&usart6_tx_pf13 &usart6_rx_pf14>;
pinctrl-names = "default";
current-speed = <115200>;
status = "disabled";
};

2
boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33.yaml

@ -8,6 +8,7 @@ toolchain: @@ -8,6 +8,7 @@ toolchain:
supported:
- LED
- gpio
- shell
testing:
ignore_tags:
- cmsis_rtos_v2
@ -17,7 +18,6 @@ testing: @@ -17,7 +18,6 @@ testing:
- crypto
- aes
- cmm
- shell
- nfc
ram: 8192
flash: 8192

8
boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33_defconfig

@ -9,3 +9,11 @@ CONFIG_GPIO=y @@ -9,3 +9,11 @@ CONFIG_GPIO=y
# Enable HW stack protection
CONFIG_HW_STACK_PROTECTION=y
# Enable UART driver
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
# UART console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

Loading…
Cancel
Save