Skip to content

boards: STM32h750B-DK: add memory partitions for MCUboot #84256

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 2 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions boards/st/stm32h750b_dk/stm32h750b_dk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
zephyr,flash = &flash0;
zephyr,flash-controller = &mt25ql512ab1;
zephyr,display = &ltdc;
zephyr,code-partition = &slot0_partition;
};

sdram2: sdram@d0000000 {
Expand Down Expand Up @@ -78,6 +79,19 @@
status = "okay";
};

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Flash has 128KB sector size */
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(128)>;
};
};
};

&ltdc {
pinctrl-0 = <&ltdc_r0_pi15 &ltdc_r1_pj0 &ltdc_r2_pj1 &ltdc_r3_ph9
&ltdc_r4_pj3 &ltdc_r5_pj4 &ltdc_r6_pj5 &ltdc_r7_pj6
Expand Down Expand Up @@ -165,6 +179,8 @@
dual-flash;
status = "okay";

/* Sector erase 64KB uniform granularity */
/* Subsector erase 4KB, 32KB granularity */
mt25ql512ab1: qspi-nor-flash-1@90000000 {
compatible = "st,stm32-qspi-nor";
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
Expand All @@ -178,8 +194,19 @@
#address-cells = <1>;
#size-cells = <1>;

partition@0 {
reg = <0x0 DT_SIZE_M(64)>;
slot0_partition: partition@0 {
label = "image-0";
reg = <0x00000000 DT_SIZE_K(2048)>;
};

slot1_partition: partition@200000 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inconsistent spacing

label = "image-1";
reg = <0x00200000 DT_SIZE_K(2048)>;
};

storage_partition: partition@400000 {
label = "storage";
reg = <0x00400000 DT_SIZE_K(128)>;
};
};
};
Expand Down
2 changes: 2 additions & 0 deletions tests/drivers/flash/stm32/boards/stm32h750b_dk.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&flash0 {
partitions {
compatible = "fixed-partitions";
Expand Down
Loading