-
Notifications
You must be signed in to change notification settings - Fork 8.2k
STM32 nor flash controller gets address and size #68274
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
Address and size are given by the DTS register property of the ospi nor. The size Property becomes useless Signed-off-by: Francois Ramu <francois.ramu@st.com>
erwango
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.
Please also update migration guide doc/releases/migration-guide-3.6.rst
|
CI twister failure is due to #68284 |
|
updated : migration guide v3.6 |
Laczen
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, it is nice to see the size removed.
erwango
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.
Otherwise LGTM
Address and size are given by the DTS register property of the ospi nor : to be used by the ospi driver. Signed-off-by: Francois Ramu <francois.ramu@st.com>
Define the reg and size property for the stm32u585 and stm32l562 disco kit. Refer to the dts/bindings/flash_controller/st,stm32-ospi-nor.yaml. The stm32l562 reads the sfdp table from the flash itself. Signed-off-by: Francois Ramu <francois.ramu@st.com>
Address and size are given by the DTS register property of the qspi nor. The size Property becomes useless. Signed-off-by: Francois Ramu <francois.ramu@st.com>
Address and size are given by the DTS register property of the qspi nor : to be used by the qspi driver. Signed-off-by: Francois Ramu <francois.ramu@st.com>
Define the reg and size property for the stm32 boards with qspi inside Refer to the dts/bindings/flash_controller/st,stm32-ospi-nor.yaml. Signed-off-by: Francois Ramu <francois.ramu@st.com>
Update the migration guide for release v3.6 to detail the change about the bindings of `st,stm32-ospi-nor` and `st,stm32-qspi-nor` compatible Signed-off-by: Francois Ramu <francois.ramu@st.com>
18c665c to
a9f4a93
Compare
|
same with DT_INST_REG_ADDR(0) and DT_INST_REG_ADDR_BY_IDX(0, 1) macro |
erwango
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.
Thanks
|
CI issue under fix in #68285 |
| } | ||
| #endif /* CONFIG_FLASH_PAGE_LAYOUT */ | ||
|
|
||
| LOG_INF("NOR octo-flash at 0x%lx (0x%x bytes)", |
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.
Was this meant to use LOG_INF()?
| LOG_INF("NOR quad-flash at 0x%lx (0x%x bytes)", | ||
| (long)(STM32_QSPI_BASE_ADDRESS), | ||
| dev_cfg->flash_size); |
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.
Same here?
CI is sad |
CI issue under fix in #68285 |
|
|
I believe this PR has missed the board stm32h7b3i_dk https://github.com/zephyrproject-rtos/zephyr/tree/main/boards/arm/stm32h7b3i_dk A search on boards for Show quite a few that missed an update. Search on |
the stm32 qspi and ospi flash drivers can retrieve the NOR flash address and size directly from the device tree
of their
compatible = "st,stm32-qspi-nor";orcompatible = "st,stm32-ospi-nor";This is done with the property of the qspi-nor-flash or ospi-nor-flash node as follows:
That will make the nor-flash controller driver using the address and size property and will prepare the flash controller for the memory mapped mode (XIP).
That will avoid confusion around the expressed in bits or in byte : here is the reg second param a size in Bytes.