-
Notifications
You must be signed in to change notification settings - Fork 8.2k
stm32h7rs xspi Node with domain clock for peripheral clock configuration #88051
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
0cfdd54
soc: st: stm32 Kconfig to retrieve the external Flash Base address
FRASTM c41a0c7
drivers: flash: stm32 xspi driver supports clock domain config
FRASTM c7b54c2
drivers: flash: stm32 xspi drivers supporting the stm32h7r/s mcu
FRASTM 15bcfb6
drivers: flash: stm32 xspi flash driver set the DelayBlock if exists
FRASTM 09493b9
drivers: clock control: stm32H7RS has a PLL2 & 3 or HCLK5 output
FRASTM c2ddf9f
dts: arm: stm32h7rs mcu with external memory area
FRASTM e7a1f50
boards: st: stm32h7s3l8 nucleo board supporting xspi instance
FRASTM 20adb4b
boards: arm: stm32h7s78 disco kit supporting xspi instance
FRASTM File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -85,6 +85,19 @@ | |
| status = "okay"; | ||
| }; | ||
|
|
||
| /* PLL2 for clocking the xspi peripheral */ | ||
| &pll2 { | ||
| div-m = <12>; | ||
| mul-n = <200>; | ||
| div-p = <2>; | ||
| div-q = <2>; | ||
| div-r = <2>; | ||
| div-s = <2>; | ||
| div-t = <2>; | ||
| clocks = <&clk_hse>; | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &rcc { | ||
| clocks = <&pll>; | ||
| clock-frequency = <DT_FREQ_M(200)>; | ||
|
|
@@ -139,3 +152,62 @@ | |
| status = "okay"; | ||
| clock-frequency = <I2C_BITRATE_FAST>; | ||
| }; | ||
|
|
||
| &flash0 { | ||
| partitions { | ||
| compatible = "fixed-partitions"; | ||
| #address-cells = <1>; | ||
| #size-cells = <1>; | ||
|
|
||
| /* Set the partitions with first MB to make use of the whole Bank1 */ | ||
| boot_partition: partition@0 { | ||
| label = "mcuboot"; | ||
| reg = <0x00000000 DT_SIZE_K(64)>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &xspi2 { | ||
| pinctrl-0 = <&xspim_p2_clk_pn6 &xspim_p2_ncs1_pn1 | ||
| &xspim_p2_io0_pn2 &xspim_p2_io1_pn3 | ||
| &xspim_p2_io2_pn4 &xspim_p2_io3_pn5 | ||
| &xspim_p2_io4_pn8 &xspim_p2_io5_pn9 | ||
| &xspim_p2_io6_pn10 &xspim_p2_io7_pn11 | ||
| &xspim_p2_dqs0_pn0>; | ||
| pinctrl-names = "default"; | ||
|
|
||
| status = "okay"; | ||
|
|
||
| mx25uw25645: xspi-nor-flash@0 { | ||
| compatible = "st,stm32-xspi-nor"; | ||
| reg = <0>; | ||
| size = <DT_SIZE_M(256)>; /* 256Mbits */ | ||
| ospi-max-frequency = <DT_FREQ_M(50)>; | ||
| spi-bus-width = <XSPI_OCTO_MODE>; | ||
| data-rate = <XSPI_DTR_TRANSFER>; | ||
| status = "okay"; | ||
|
|
||
| partitions { | ||
| compatible = "fixed-partitions"; | ||
| #address-cells = <1>; | ||
| #size-cells = <1>; | ||
|
|
||
| slot0_partition: partition@0 { | ||
| label = "image-0"; | ||
| reg = <0x00000000 DT_SIZE_K(512)>; | ||
| }; | ||
| slot1_partition: partition@80000 { | ||
| label = "image-1"; | ||
| reg = <0x0080000 DT_SIZE_K(512)>; | ||
| }; | ||
| scratch_partition: partition@100000 { | ||
| label = "image-scratch"; | ||
| reg = <0x00100000 DT_SIZE_K(64)>; | ||
| }; | ||
| storage_partition: partition@110000 { | ||
| label = "storage"; | ||
| reg = <0x00110000 DT_SIZE_K(64)>; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Intentionally waste the remaining of the internal flash? 64kB is not much. Maybe increase to 1 or 2 MByte, or even |
||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -12,4 +12,5 @@ supported: | |
| - watchdog | ||
| - entropy | ||
| - adc | ||
| - octospi | ||
| vendor: st | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Prefer with an empty line before each subnodes.