-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: drivers: configure the sample to run on stm32h573_dk
Declare the stm32h573i_dk node to be MSPI compatible when running the samples/drivers/jesd216 or samples/drivers/mspi/ Only SPI/STR mode. No DMA in this version. Signed-off-by: Francois Ramu <francois.ramu@st.com>
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2024 STMicroelectronics | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
||
CONFIG_LOG=y | ||
CONFIG_FLASH_LOG_LEVEL_DBG=y | ||
CONFIG_MSPI_LOG_LEVEL_DBG=y | ||
|
||
CONFIG_FLASH_MSPI_NOR_MX=y |
34 changes: 34 additions & 0 deletions
34
samples/drivers/mspi/mspi_flash/boards/stm32h573i_dk.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) 2024 STMicroelectronics | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
aliases { | ||
flash0 = &mx25lm51245; | ||
}; | ||
}; | ||
|
||
&mx25lm51245 { | ||
/* First step : only SPI/STR supported */ | ||
/delete-property/ mspi-io-mode; | ||
/delete-property/ mspi-data-rate; | ||
mspi-io-mode = "MSPI_IO_MODE_SINGLE"; | ||
mspi-data-rate = "MSPI_DATA_RATE_SINGLE"; | ||
/delete-property/ read-command; | ||
read-command = <0x13>; /* Fast read */ | ||
/delete-property/ address-length; | ||
address-length = "ADDR_3_BYTE"; | ||
}; | ||
|
||
&mspi1 { | ||
/* request 57 for xSPI1 */ | ||
dmas = <&gpdma1 4 57 STM32_DMA_PERIPH_TX | ||
&gpdma1 5 57 STM32_DMA_PERIPH_RX>; | ||
dma-names = "tx", "rx"; | ||
}; | ||
|
||
&gpdma1 { | ||
status = "disabled"; | ||
}; |