Skip to content

Commit 84aca6d

Browse files
committed
boards: arm: stm32u585 disco kit for XiP on external octoflash
Define the Device tree of the b_u585i_iot02a disco kit to access the external NOR octo-flash in MemoryMapped mode for XiP Signed-off-by: Francois Ramu <[email protected]>
1 parent 5e10f8a commit 84aca6d

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,10 @@ stm32_lp_tick_source: &lptim1 {
131131

132132
status = "okay";
133133

134-
mx25lm51245: ospi-nor-flash@0 {
134+
mx25lm51245: ospi-nor-flash@70000000 {
135135
compatible = "st,stm32-ospi-nor";
136-
reg = <0>;
136+
reg = <0x70000000 DT_SIZE_M(64)>; /* 512 Mbits */
137137
ospi-max-frequency = <DT_FREQ_M(50)>;
138-
size = <DT_SIZE_M(512)>; /* 64 MBytes */
139138
spi-bus-width = <OSPI_OPI_MODE>;
140139
data-rate = <OSPI_DTR_TRANSFER>;
141140
four-byte-opcodes;
@@ -146,8 +145,10 @@ stm32_lp_tick_source: &lptim1 {
146145
#address-cells = <1>;
147146
#size-cells = <1>;
148147

149-
partition@0 {
150-
reg = <0x00000000 DT_SIZE_M(64)>;
148+
/* put image at the offset of slot1 */
149+
slot1_partition:partition@100000 {
150+
label = "image-1";
151+
reg = <0x00100000 DT_SIZE_K(416)>;
151152
};
152153
};
153154
};

boards/arm/b_u585i_iot02a/b_u585i_iot02a.dts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
zephyr,shell-uart = &usart1;
1717
zephyr,sram = &sram0;
1818
zephyr,flash = &flash0;
19-
zephyr,code-partition = &slot0_partition;
2019
};
2120

2221
aliases {
@@ -45,10 +44,7 @@
4544
label = "image-0";
4645
reg = <0x00010000 DT_SIZE_K(416)>;
4746
};
48-
slot1_partition: partition@78000 {
49-
label = "image-1";
50-
reg = <0x00078000 DT_SIZE_K(416)>;
51-
};
47+
5248
scratch_partition: partition@e0000 {
5349
label = "image-scratch";
5450
reg = <0x000e0000 DT_SIZE_K(64)>;

0 commit comments

Comments
 (0)