-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Ospi bus support for the stm32H7x devices #45732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
rebase and fix merge conflicts |
d66ce54 to
31ff107
Compare
|
tested on the stm32h735g_disco with west build -p auto -b stm32h735g_disco samples/drivers/spi_flash |
f695b2b to
23a955d
Compare
|
@manoj153 please revisit |
GeorgeCGV
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
With the introduction of the OSPI NOR flash controller the stm32H7 serie requires the HAL MDMA in anycase. Signed-off-by: Francois Ramu <[email protected]>
For the stm32h7x3 and stm32h7x5 there is a octospi clock configuration in the D1CCIPR register Signed-off-by: Francois Ramu <[email protected]>
Add the octospi nodes to the stm32h723/h725 and h730/h733/h735 devices. Note that RM0468 gives a size of 1kB. The definition of the octospi clock source for both intances is given by the DTS node. The selected value for the alternate clock control is the PLL1_Q. Signed-off-by: Francois Ramu <[email protected]>
This commit enables the octo SPI peripheral to the flash-nor on the target board stm32h735g_disco from STMicroelectronics. The octospi1 is connected to the NOR- octo-flash through the OSPI IO Manager. Note that JESD16 requires 9 dwords for the sdfp table. The NOR octoflash is MX25LM51245 or compatible. Signed-off-by: Francois Ramu <[email protected]>
Add the octospi nodes to the stm32h7A3 and and h7B0/h7B3 devices. Note that RM0455 gives a size of 1kB. The definition of the octospi clock source for both intances is given by the DTS node. The selected value for the alternate clock control is the PLL1_Q. Signed-off-by: Francois Ramu <[email protected]>
This commit enables the octo SPI peripheral to the flash-nor on the target board stm32h7b3i_dk from STMicroelectronics. The octospi1 is connected to the NOR- octo-flash through the OSPI IO Manager. Note that JESD16 requires 9 dwords for the sdfp table. The NOR octoflash is MX25LM51245 or compatible. Signed-off-by: Francois Ramu <[email protected]>
This add a removes the SPI config for the stm32H735 and stm32H7b3 disco boards when testing the octoSPI. Signed-off-by: Francois Ramu <[email protected]>
|
rebase on 6027152 |
GeorgeCGV
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
|
||
| mx25lm51245: ospi-nor-flash@0 { | ||
| compatible = "st,stm32-ospi-nor"; | ||
| label = "MX25LM51245"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Label properties are being wiped out all over from the repository, #47881 wiped them from this binding. Can you drop them from here as well? (and I'd say from the st,stm32-ospi nodes as well)
This PR adds the support of the octoSPI bus for the stm32H7 devices
It updates the ospi flash controller driver
It also adds the OSPI instances to the stm32H7 mcus and boards
Not that DMA transfer is not yet in. There is no DMAMUX request for the octospi, only MDMA req 0x16, but the periph is not yet in.
requires the #45487
Signed-off-by: Francois Ramu [email protected]