boards: nucleo_f207zg: Fix default config

According to GH7151: boards: Move existing boards to
"default configuration guidelines"
Add USART6 Arduino compatible config

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2018-09-12 09:25:54 +02:00 committed by Kumar Gala
commit c0d58d1a60
4 changed files with 21 additions and 0 deletions

View file

@ -27,4 +27,11 @@ config ETH_STM32_HAL
endif # NETWORKING endif # NETWORKING
if SERIAL
config UART_STM32_PORT_6
default y
endif # SERIAL
endif # BOARD_NUCLEO_F207ZG endif # BOARD_NUCLEO_F207ZG

View file

@ -131,6 +131,8 @@ For more details please refer to `STM32 Nucleo-144 board User Manual`_.
Default Zephyr Peripheral Mapping: Default Zephyr Peripheral Mapping:
---------------------------------- ----------------------------------
- UART_3 TX/RX : PD8/PD9 (ST-Link Virtual Port Com)
- UART_6 TX/RX : PG14/PG9 (Arduino Serial)
- ETH : PA1, PA2, PA7, PB13, PC1, PC4, PC5, PG11, PG13 - ETH : PA1, PA2, PA7, PB13, PC1, PC4, PC5, PG11, PG13
- USB_DM : PA11 - USB_DM : PA11
- USB_DP : PA12 - USB_DP : PA12

View file

@ -49,6 +49,8 @@
}; };
}; };
arduino_serial: &usart6 {};
&usart3 { &usart3 {
current-speed = <115200>; current-speed = <115200>;
pinctrl-0 = <&usart3_pins_b>; pinctrl-0 = <&usart3_pins_b>;
@ -56,6 +58,12 @@
status = "ok"; status = "ok";
}; };
&usart6 {
current-speed = <115200>;
pinctrl-names = "default";
status = "ok";
};
&usbotg_fs { &usbotg_fs {
status = "ok"; status = "ok";
}; };

View file

@ -18,6 +18,10 @@ static const struct pin_config pinconf[] = {
{STM32_PIN_PD8, STM32F2_PINMUX_FUNC_PD8_USART3_TX}, {STM32_PIN_PD8, STM32F2_PINMUX_FUNC_PD8_USART3_TX},
{STM32_PIN_PD9, STM32F2_PINMUX_FUNC_PD9_USART3_RX}, {STM32_PIN_PD9, STM32F2_PINMUX_FUNC_PD9_USART3_RX},
#endif /* #ifdef CONFIG_UART_STM32_PORT_3 */ #endif /* #ifdef CONFIG_UART_STM32_PORT_3 */
#ifdef CONFIG_UART_STM32_PORT_6
{STM32_PIN_PG14, STM32F2_PINMUX_FUNC_PG14_USART6_TX},
{STM32_PIN_PG9, STM32F2_PINMUX_FUNC_PG9_USART6_RX},
#endif /* CONFIG_UART_STM32_PORT_6 */
#ifdef CONFIG_ETH_STM32_HAL #ifdef CONFIG_ETH_STM32_HAL
{STM32_PIN_PC1, STM32F2_PINMUX_FUNC_PC1_ETH}, {STM32_PIN_PC1, STM32F2_PINMUX_FUNC_PC1_ETH},
{STM32_PIN_PC4, STM32F2_PINMUX_FUNC_PC4_ETH}, {STM32_PIN_PC4, STM32F2_PINMUX_FUNC_PC4_ETH},