-
Notifications
You must be signed in to change notification settings - Fork 8.3k
drivers: flash_stm32_qspi: fix DT accessor for flash size #76735
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
|
I'll have to investigate further, something's weird here. This fixes the issue for me locally on top of v3.7.0 with a couple patches that shouldn't make a difference, but causes problems in CI. |
|
Oooh, it's because my board sets |
Could you elaborate (which board, which sample, ...) ? |
|
All boards/samples/etc using They all have a |
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
|
@erwango: would appreciate some guidance here |
|
Agreed on the analysis. in impacted compatibles bindings, and fix dts description. Note that this would likely require a note in migration guidelines as this may break out of tree boards definitions. |
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
93378fd to
7a443f1
Compare
7a443f1 to
c90b62e
Compare
mathieuchopstm
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.
Driver modification LGTM, but as suggested by @erwango, the modification should be made at SoC DTSI level instead, e.g., here for STM32H7:
zephyr/dts/arm/st/h7/stm32h7.dtsi
Lines 1068 to 1076 in 561ee12
| quadspi: quadspi@52005000 { | |
| compatible = "st,stm32-qspi"; | |
| #address-cells = <0x1>; | |
| #size-cells = <0x0>; | |
| reg = <0x52005000 0x34>; | |
| interrupts = <92 0>; | |
| clocks = <&rcc STM32_CLOCK(AHB3, 14U)>; | |
| status = "disabled"; | |
| }; |
This should fix the issue without needing to modify any board's DTS file.
The flash size is the second part (size) of the first reg value, not the first part (address) of a nonexistent second reg value. Signed-off-by: Armin Brauns <[email protected]>
c90b62e to
6b80328
Compare
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.
@arbrauns I think we're there.
Note that it should also be fixed for drivers/flash/flash_stm32_xspi.c, bu tthen there would be a conflict with #85561 and potentially #85564.
So I propose that we keep these separate.
@gautierg-st Would you mind checking this on flash_stm32_xspi once above mentionned PRs are merged ?
The flash size is the second part (size) of the first reg value, not the first part (address) of a nonexistent second reg value.
This was introduced in #68274, and I don't understand how it has ever worked. I'm getting the following errors: