boards: st: stm32h750b-dk: enable usart1

Enable USART1 that can be used with external periphs via Arduino pins.
LPUART1 can also be used on the same pins.
Tested with tests/drivers/uart_elementary

Signed-off-by: Abderrahmane Jarmouni <git@jarmouni.me>
This commit is contained in:
Abderrahmane Jarmouni 2024-10-04 18:40:56 +02:00 committed by Henrik Brix Andersen
parent 51e0130a74
commit c3fd40d59c
3 changed files with 13 additions and 0 deletions

View File

@ -34,3 +34,5 @@
<21 0 &gpiod 12 0>; /* D15 */
};
};
arduino_serial: &usart1 {};

View File

@ -84,6 +84,7 @@ Default Zephyr Peripheral Mapping:
- UART_3 TX/RX : PB10/PB11 (ST-Link Virtual Port Com)
- LD1 : PJ2
- LD2 : PI13
- USART1 TX/RX : PB6/PB7 (Arduino D1/D0)
System Clock
============

View File

@ -243,3 +243,13 @@
st,adc-prescaler = <4>;
status = "okay";
};
/* Arduino Header pins: Tx:D1, Rx:D0 */
/* LPUART1 can also be used with this pins */
&usart1 {
dma-names = "tx", "rx";
pinctrl-0 = <&usart1_tx_pb6 &usart1_rx_pb7>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};