Skip to content

Commit 4574c53

Browse files
committed
dts: arm: stm32h7 MPU attribute for the external Memory
Define the MPU attribute to be ATTR_MPU_EXTMEM for the external region (qspi- or octo-spi NOR flash) starting at 0x90000000 of the stm32h7 serie. A XiP region should be Included inside with attribute ATTR_MPU_IO, to access the external memory in XIP. The stm32h7a/h7b serie as another external area at 0x70000000. Signed-off-by: Francois Ramu <[email protected]>
1 parent d7328ea commit 4574c53

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

dts/arm/st/h7/stm32h7.dtsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
};
4646
};
4747

48-
quadspi_memory: memory@90000000 {
49-
compatible = "zephyr,memory-region", "mmio-sram";
50-
reg = <0x90000000 DT_SIZE_M(256)>;
51-
zephyr,memory-region = "QSPI";
48+
ext_memory: memory@90000000 {
49+
compatible = "zephyr,memory-region";
50+
reg = <0x90000000 DT_SIZE_M(256)>; /* max addressable area */
51+
zephyr,memory-region = "EXTMEM";
5252
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_EXTMEM) )>;
5353
};
5454

dts/arm/st/h7/stm32h7a3.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,13 @@
152152
zephyr,memory-region = "ITCM";
153153
};
154154

155+
ext_memory2: memory@70000000 {
156+
compatible = "zephyr,memory-region";
157+
reg = <0x70000000 DT_SIZE_M(256)>; /* max addressable area */
158+
zephyr,memory-region = "EXTMEM2";
159+
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_EXTMEM) )>;
160+
};
161+
155162
otghs_fs_phy: otghs_fs_phy {
156163
compatible = "usb-nop-xceiv";
157164
#phy-cells = <0>;

0 commit comments

Comments
 (0)