boards: stm32f469i_disco: Conform to default configuration guidelines
Update stm32f469i_disco configuration to match with default configuration guidelines: -Configure available connectors -Update yaml file Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
5aafa1e787
commit
3a1f4650f1
7 changed files with 74 additions and 5 deletions
|
@ -17,4 +17,28 @@ config UART_STM32_PORT_3
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
||||||
|
if SERIAL
|
||||||
|
|
||||||
|
config UART_STM32_PORT_6
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif # SERIAL
|
||||||
|
|
||||||
|
if SPI
|
||||||
|
|
||||||
|
config SPI_STM32_INTERRUPT
|
||||||
|
default y
|
||||||
|
|
||||||
|
config SPI_2
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif # SPI
|
||||||
|
|
||||||
|
if I2C
|
||||||
|
|
||||||
|
config I2C_1
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif # I2C
|
||||||
|
|
||||||
endif # BOARD_STM32F469I_DISCO
|
endif # BOARD_STM32F469I_DISCO
|
||||||
|
|
|
@ -115,10 +115,12 @@ For mode details please refer to `32F469IDISCOVERY board User Manual`_.
|
||||||
|
|
||||||
Default Zephyr Peripheral Mapping:
|
Default Zephyr Peripheral Mapping:
|
||||||
----------------------------------
|
----------------------------------
|
||||||
- UART_3_TX : PB10
|
- UART_3 TX/RX : PB10/PB11 (ST-Link Virtual Port Com)
|
||||||
- UART_3_RX : PB11
|
- UART_6 TX/RX : PG14/PG9 (Arduino Serial)
|
||||||
- UART_6_TX : PG14
|
- I2C1 SCL/SDA : PB8/PB9 (Arduino I2C)
|
||||||
- UART_6_RX : PG9
|
- SPI2 SCK/MISO/MOSI : PD3/PB14/PB15 (Arduino SPI)
|
||||||
|
- USB DM : PA11
|
||||||
|
- USB DP : PA12
|
||||||
- USER_PB : PA0
|
- USER_PB : PA0
|
||||||
- LD1 : PG6
|
- LD1 : PG6
|
||||||
- LD2 : PD4
|
- LD2 : PD4
|
||||||
|
|
|
@ -22,6 +22,20 @@ static const struct pin_config pinconf[] = {
|
||||||
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_USART6_TX},
|
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_USART6_TX},
|
||||||
{STM32_PIN_PG9, STM32F4_PINMUX_FUNC_PG9_USART6_RX},
|
{STM32_PIN_PG9, STM32F4_PINMUX_FUNC_PG9_USART6_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_6 */
|
#endif /* CONFIG_UART_STM32_PORT_6 */
|
||||||
|
#ifdef CONFIG_I2C_1
|
||||||
|
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
|
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
#endif /* CONFIG_I2C_1 */
|
||||||
|
#ifdef CONFIG_SPI_2
|
||||||
|
{STM32_PIN_PD3, STM32F4_PINMUX_FUNC_PD3_SPI2_SCK},
|
||||||
|
{STM32_PIN_PB14, STM32F4_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||||
|
{STM32_PIN_PB15, STM32F4_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||||
|
#endif /* CONFIG_SPI_2 */
|
||||||
|
#ifdef CONFIG_USB_DC_STM32
|
||||||
|
{STM32_PIN_PA11, STM32F4_PINMUX_FUNC_PA11_OTG_FS_DM},
|
||||||
|
{STM32_PIN_PA12, STM32F4_PINMUX_FUNC_PA12_OTG_FS_DP},
|
||||||
|
#endif /* CONFIG_USB_DC_STM32 */
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int pinmux_stm32_init(struct device *port)
|
static int pinmux_stm32_init(struct device *port)
|
||||||
|
|
|
@ -51,6 +51,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
arduino_i2c: &i2c1 {};
|
||||||
|
arduino_spi: &spi2 {};
|
||||||
|
arduino_serial: &usart6 {};
|
||||||
|
|
||||||
&usart3 {
|
&usart3 {
|
||||||
current-speed = <115200>;
|
current-speed = <115200>;
|
||||||
pinctrl-0 = <&usart3_pins_a>;
|
pinctrl-0 = <&usart3_pins_a>;
|
||||||
|
@ -60,11 +64,23 @@
|
||||||
|
|
||||||
&usart6 {
|
&usart6 {
|
||||||
current-speed = <115200>;
|
current-speed = <115200>;
|
||||||
pinctrl-0 = <&usart6_pins_a>;
|
pinctrl-0 = <&usart6_pins_b>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
status = "ok";
|
status = "ok";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&i2c1 {
|
||||||
|
status = "ok";
|
||||||
|
};
|
||||||
|
|
||||||
|
&spi2 {
|
||||||
|
status = "ok";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usbotg_fs {
|
||||||
|
status = "ok";
|
||||||
|
};
|
||||||
|
|
||||||
&rtc {
|
&rtc {
|
||||||
status = "ok";
|
status = "ok";
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,3 +7,7 @@ toolchain:
|
||||||
- gnuarmemb
|
- gnuarmemb
|
||||||
supported:
|
supported:
|
||||||
- rtc
|
- rtc
|
||||||
|
- i2c
|
||||||
|
- spi
|
||||||
|
- gpio
|
||||||
|
- usb_device
|
||||||
|
|
|
@ -247,6 +247,9 @@
|
||||||
#define STM32F4_PINMUX_FUNC_PD2_UART5_RX \
|
#define STM32F4_PINMUX_FUNC_PD2_UART5_RX \
|
||||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
|
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
|
||||||
|
|
||||||
|
#define STM32F4_PINMUX_FUNC_PD3_SPI2_SCK \
|
||||||
|
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||||
|
|
||||||
#define STM32F4_PINMUX_FUNC_PD5_USART2_TX \
|
#define STM32F4_PINMUX_FUNC_PD5_USART2_TX \
|
||||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,12 @@
|
||||||
tx = <STM32_PIN_PC6 (STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)>;
|
tx = <STM32_PIN_PC6 (STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
usart6_pins_b: usart6_b {
|
||||||
|
rx_tx {
|
||||||
|
rx = <STM32_PIN_PG9 (STM32_PINMUX_ALT_FUNC_8 | STM32_PUPDR_NO_PULL)>;
|
||||||
|
tx = <STM32_PIN_PG14 (STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue