boards: stm32f769i_disco: Conform to default configuration guidelines

Update stm32f769i_disco configuration to match with
default configuration guidelines:
-Configure available connectors

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2018-09-14 14:47:45 +02:00 committed by Anas Nashif
commit b89317d14c
7 changed files with 73 additions and 4 deletions

View file

@ -17,4 +17,28 @@ config UART_STM32_PORT_1
endif # UART_CONSOLE
if SERIAL
config UART_STM32_PORT_6
default y
endif # SERIAL
if I2C
config I2C_1
default y
endif # I2C
if SPI
config SPI_STM32_INTERRUPT
default y
config SPI_2
default y
endif # SPI
endif # BOARD_STM32F769I_DISCO

View file

@ -110,6 +110,10 @@ The Zephyr stm32f769i_disco board configuration supports the following hardware
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on Zephyr porting.
@ -126,10 +130,11 @@ For mode details please refer to `32F769I-DISCO board User Manual`_.
Default Zephyr Peripheral Mapping:
----------------------------------
- UART_1_TX : PA9
- UART_1_RX : PA10
- UART_6_TX : PC6
- UART_6_RX : PC7
- UART_1 TX/RX : PA9/PA10 (ST-Link Virtual Port Com)
- UART_6 TX/RX : PC6/PC7 (Arduino Serial)
- I2C1 SCL/SDA : PB8/PB9 (Arduino I2C)
- SPI2 SCK/MISO/MOSI : PA12/PB14/PB15 (Arduino SPI)
- LD1 : PJ13
- LD2 : PJ5
- LD3 : PA12

View file

@ -22,6 +22,15 @@ static const struct pin_config pinconf[] = {
{STM32_PIN_PC6, STM32F7_PINMUX_FUNC_PC6_USART6_TX},
{STM32_PIN_PC7, STM32F7_PINMUX_FUNC_PC7_USART6_RX},
#endif /* CONFIG_UART_STM32_PORT_6 */
#ifdef CONFIG_I2C_1
{STM32_PIN_PB8, STM32F7_PINMUX_FUNC_PB8_I2C1_SCL},
{STM32_PIN_PB9, STM32F7_PINMUX_FUNC_PB9_I2C1_SDA},
#endif /* CONFIG_I2C_1 */
#ifdef CONFIG_SPI_2
{STM32_PIN_PA12, STM32F7_PINMUX_FUNC_PA12_SPI2_SCK},
{STM32_PIN_PB14, STM32F7_PINMUX_FUNC_PB14_SPI2_MISO},
{STM32_PIN_PB15, STM32F7_PINMUX_FUNC_PB15_SPI2_MOSI},
#endif /* CONFIG_SPI_2 */
};
static int pinmux_stm32_init(struct device *port)

View file

@ -54,6 +54,10 @@
};
};
arduino_i2c: &i2c1 {};
arduino_spi: &spi2 {};
arduino_serial: &usart6 {};
&usart1 {
current-speed = <115200>;
pinctrl-names = "default";
@ -65,3 +69,12 @@
pinctrl-names = "default";
status = "ok";
};
&i2c1 {
status = "ok";
clock-frequency = <I2C_BITRATE_FAST>;
};
&spi2 {
status = "ok";
};

View file

@ -5,3 +5,9 @@ arch: arm
toolchain:
- zephyr
- gnuarmemb
ram: 512
flash: 2048
supported:
- i2c
- spi
- gpio

View file

@ -112,6 +112,8 @@
#define STM32F7_PINMUX_FUNC_PA11_OTG_FS_DM \
(STM32_PINMUX_ALT_FUNC_10 | STM32_PUSHPULL_NOPULL)
#define STM32F7_PINMUX_FUNC_PA12_SPI2_SCK \
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
#define STM32F7_PINMUX_FUNC_PA12_USART1_RTS \
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
#define STM32F7_PINMUX_FUNC_PA12_OTG_FS_DP \
@ -232,6 +234,12 @@
#define STM32F7_PINMUX_FUNC_PB15_SPI2_MOSI \
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
#define STM32F7_PINMUX_FUNC_PB14_SPI2_MISO \
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
#define STM32F7_PINMUX_FUNC_PB15_SPI2_MOSI \
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
/* Port C */
#define STM32F7_PINMUX_FUNC_PC1_ETH \
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \

View file

@ -97,6 +97,10 @@
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
#define STM32L4X_PINMUX_FUNC_PC5_USART3_RX \
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUPDR_NO_PULL)
#define STM32L4X_PINMUX_FUNC_PC6_USART6_TX \
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
#define STM32L4X_PINMUX_FUNC_PC7_USART6_RX \
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUPDR_NO_PUL
#define STM32L4X_PINMUX_FUNC_PC10_SPI3_SCK \
(STM32_PINMUX_ALT_FUNC_6 | STM32_PUSHPULL_NOPULL)
#define STM32L4X_PINMUX_FUNC_PC10_USART3_TX \