boards/nucleo_f411re: Enable I2S support
I2S may be needed by any shield mounted on this nucleo. So change pinmux and dts file. Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
parent
5097ce6e35
commit
b6b44b2fea
|
@ -36,4 +36,5 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
arduino_i2c: &i2c1 {};
|
arduino_i2c: &i2c1 {};
|
||||||
|
arduino_i2s: &i2s1 {};
|
||||||
arduino_spi: &spi1 {};
|
arduino_spi: &spi1 {};
|
||||||
|
|
|
@ -52,7 +52,7 @@ Nucleo F411RE provides the following hardware components:
|
||||||
- SysTick timer
|
- SysTick timer
|
||||||
- USART/UART (3)
|
- USART/UART (3)
|
||||||
- I2C (3)
|
- I2C (3)
|
||||||
- SPI (5)
|
- SPI/I2S (5)
|
||||||
- SDIO
|
- SDIO
|
||||||
- USB 2.0 OTG FS
|
- USB 2.0 OTG FS
|
||||||
- DMA Controller
|
- DMA Controller
|
||||||
|
@ -83,6 +83,8 @@ The Zephyr nucleo_f411re board configuration supports the following hardware fea
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
| I2C | on-chip | i2c |
|
| I2C | on-chip | i2c |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
|
| I2S | on-chip | i2s |
|
||||||
|
+-----------+------------+-------------------------------------+
|
||||||
| SPI | on-chip | spi |
|
| SPI | on-chip | spi |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
|
|
||||||
|
@ -122,9 +124,11 @@ Default Zephyr Peripheral Mapping:
|
||||||
- I2C2 SCL/SDA : PB10/PB3
|
- I2C2 SCL/SDA : PB10/PB3
|
||||||
- I2C1 SCL/SDA : PA8/B4
|
- I2C1 SCL/SDA : PA8/B4
|
||||||
- SPI1 CS/SCK/MISO/MOSI : PA4/PA5/PA6/PA7 (Arduino SPI)
|
- SPI1 CS/SCK/MISO/MOSI : PA4/PA5/PA6/PA7 (Arduino SPI)
|
||||||
|
- I2S1 SCK/SD : PA5/PA7 (Arduino I2S)
|
||||||
- USER_PB : PC13
|
- USER_PB : PC13
|
||||||
- LD2 : PA5
|
- LD2 : PA5
|
||||||
|
|
||||||
|
.. note:: Please note that SPI1 and I2S1 are connected to the same mcu pins, as the h/w controller is the same one.
|
||||||
|
|
||||||
System Clock
|
System Clock
|
||||||
------------
|
------------
|
||||||
|
|
|
@ -9,6 +9,7 @@ toolchain:
|
||||||
supported:
|
supported:
|
||||||
- arduino_gpio
|
- arduino_gpio
|
||||||
- arduino_i2c
|
- arduino_i2c
|
||||||
|
- arduino_i2s
|
||||||
- arduino_spi
|
- arduino_spi
|
||||||
- counter
|
- counter
|
||||||
- gpio
|
- gpio
|
||||||
|
|
|
@ -34,7 +34,8 @@ static const struct pin_config pinconf[] = {
|
||||||
{STM32_PIN_PA8, STM32F4_PINMUX_FUNC_PA8_I2C3_SCL},
|
{STM32_PIN_PA8, STM32F4_PINMUX_FUNC_PA8_I2C3_SCL},
|
||||||
{STM32_PIN_PB4, STM32F4_PINMUX_FUNC_PB4_I2C3_SDA},
|
{STM32_PIN_PB4, STM32F4_PINMUX_FUNC_PB4_I2C3_SDA},
|
||||||
#endif
|
#endif
|
||||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1)) || \
|
||||||
|
DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2s1))
|
||||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||||
{STM32_PIN_PA4, STM32F4_PINMUX_FUNC_PA4_SPI1_NSS},
|
{STM32_PIN_PA4, STM32F4_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||||
|
|
Loading…
Reference in a new issue