boards: stm32f429i_disc1: add SPI5 support
Add support of RCC configuration. Add pinmux items Signed-off-by: Pavlo Hamov <pavlo_hamov@jabil.com>
This commit is contained in:
parent
47175499fe
commit
97e1ad1b8c
6 changed files with 34 additions and 0 deletions
|
@ -24,4 +24,11 @@ config I2C_3
|
||||||
|
|
||||||
endif # I2C
|
endif # I2C
|
||||||
|
|
||||||
|
if SPI
|
||||||
|
|
||||||
|
config SPI_5
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif # SPI
|
||||||
|
|
||||||
endif # BOARD_STM32F429I_DISC1
|
endif # BOARD_STM32F429I_DISC1
|
||||||
|
|
|
@ -95,6 +95,8 @@ The Zephyr stm32f429i_disc1 board configuration supports the following hardware
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
| I2C | on-chip | i2c |
|
| I2C | on-chip | i2c |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
|
| SPI | on-chip | spi |
|
||||||
|
+-----------+------------+-------------------------------------+
|
||||||
|
|
||||||
Other hardware features are not yet supported on Zephyr porting.
|
Other hardware features are not yet supported on Zephyr porting.
|
||||||
|
|
||||||
|
@ -126,6 +128,10 @@ Default Zephyr Peripheral Mapping:
|
||||||
- I2C_2_SDA : PB11
|
- I2C_2_SDA : PB11
|
||||||
- I2C_3_SCL : PA8
|
- I2C_3_SCL : PA8
|
||||||
- I2C_3_SDA : PC9
|
- I2C_3_SDA : PC9
|
||||||
|
- SPI_5_CS : PF6
|
||||||
|
- SPI_5_SCK : PF7
|
||||||
|
- SPI_5_MISO : PF8
|
||||||
|
- SPI_5_MOSI : PF9
|
||||||
|
|
||||||
System Clock
|
System Clock
|
||||||
============
|
============
|
||||||
|
|
|
@ -22,6 +22,14 @@ static const struct pin_config pinconf[] = {
|
||||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
|
#ifdef CONFIG_SPI_5
|
||||||
|
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||||
|
{STM32_PIN_PF6, STM32F4_PINMUX_FUNC_PF6_SPI5_MASTER_NSS},
|
||||||
|
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||||
|
{STM32_PIN_PF7, STM32F4_PINMUX_FUNC_PF7_SPI5_MASTER_SCK},
|
||||||
|
{STM32_PIN_PF8, STM32F4_PINMUX_FUNC_PF8_SPI5_MASTER_MISO},
|
||||||
|
{STM32_PIN_PF9, STM32F4_PINMUX_FUNC_PF9_SPI5_MASTER_MOSI},
|
||||||
|
#endif /* CONFIG_SPI_5 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
|
|
@ -11,3 +11,4 @@ flash: 2048
|
||||||
supported:
|
supported:
|
||||||
- counter
|
- counter
|
||||||
- i2c
|
- i2c
|
||||||
|
- spi
|
||||||
|
|
|
@ -458,21 +458,30 @@
|
||||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
|
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
|
||||||
#define STM32F4_PINMUX_FUNC_PF6_ADC3_IN4 \
|
#define STM32F4_PINMUX_FUNC_PF6_ADC3_IN4 \
|
||||||
STM32_MODER_ANALOG_MODE
|
STM32_MODER_ANALOG_MODE
|
||||||
|
#define STM32F4_PINMUX_FUNC_PF6_SPI5_MASTER_NSS \
|
||||||
|
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_PULLUP)
|
||||||
|
|
||||||
#define STM32F4_PINMUX_FUNC_PF7_UART7_TX \
|
#define STM32F4_PINMUX_FUNC_PF7_UART7_TX \
|
||||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
||||||
#define STM32F4_PINMUX_FUNC_PF7_ADC3_IN5 \
|
#define STM32F4_PINMUX_FUNC_PF7_ADC3_IN5 \
|
||||||
STM32_MODER_ANALOG_MODE
|
STM32_MODER_ANALOG_MODE
|
||||||
|
#define STM32F4_PINMUX_FUNC_PF7_SPI5_MASTER_SCK \
|
||||||
|
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL | \
|
||||||
|
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||||
|
|
||||||
#define STM32F4_PINMUX_FUNC_PF8_UART8_RX \
|
#define STM32F4_PINMUX_FUNC_PF8_UART8_RX \
|
||||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
|
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
|
||||||
#define STM32F4_PINMUX_FUNC_PF8_ADC3_IN6 \
|
#define STM32F4_PINMUX_FUNC_PF8_ADC3_IN6 \
|
||||||
STM32_MODER_ANALOG_MODE
|
STM32_MODER_ANALOG_MODE
|
||||||
|
#define STM32F4_PINMUX_FUNC_PF8_SPI5_MASTER_MISO \
|
||||||
|
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUPDR_PULL_DOWN)
|
||||||
|
|
||||||
#define STM32F4_PINMUX_FUNC_PF9_UART8_TX \
|
#define STM32F4_PINMUX_FUNC_PF9_UART8_TX \
|
||||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
||||||
#define STM32F4_PINMUX_FUNC_PF9_ADC3_IN7 \
|
#define STM32F4_PINMUX_FUNC_PF9_ADC3_IN7 \
|
||||||
STM32_MODER_ANALOG_MODE
|
STM32_MODER_ANALOG_MODE
|
||||||
|
#define STM32F4_PINMUX_FUNC_PF9_SPI5_MASTER_MOSI \
|
||||||
|
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUPDR_PULL_DOWN)
|
||||||
|
|
||||||
#define STM32F4_PINMUX_FUNC_PF10_ADC3_IN8 \
|
#define STM32F4_PINMUX_FUNC_PF10_ADC3_IN8 \
|
||||||
STM32_MODER_ANALOG_MODE
|
STM32_MODER_ANALOG_MODE
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
reg = <0x40013400 0x400>;
|
reg = <0x40013400 0x400>;
|
||||||
|
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00002000>;
|
||||||
interrupts = <84 5>;
|
interrupts = <84 5>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
label = "SPI_4";
|
label = "SPI_4";
|
||||||
|
@ -66,6 +67,7 @@
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
reg = <0x40015000 0x400>;
|
reg = <0x40015000 0x400>;
|
||||||
|
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00100000>;
|
||||||
interrupts = <85 5>;
|
interrupts = <85 5>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
label = "SPI_5";
|
label = "SPI_5";
|
||||||
|
@ -79,6 +81,7 @@
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
reg = <0x40015400 0x400>;
|
reg = <0x40015400 0x400>;
|
||||||
|
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00200000>;
|
||||||
interrupts = <86 5>;
|
interrupts = <86 5>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
label = "SPI_6";
|
label = "SPI_6";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue