Skip to content

Commit b23ea08

Browse files
GeorgeCGVcarlescufi
authored andcommitted
dts: arm: st: h7: correct stm32h723 memory regions
* Corrects SRAM0 size. The `TCM_AXI_SHARED` is `000` after reset. That means ITCM is shared with SRAM0. * Adds missing SRAM1,2,4, and ITCM regions. * Adds label and compatible properties to the flash section. Signed-off-by: Georgij Cernysiov <[email protected]>
1 parent d2a792d commit b23ea08

File tree

1 file changed

+38
-5
lines changed

1 file changed

+38
-5
lines changed

dts/arm/st/h7/stm32h723.dtsi

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
/*
22
* Copyright (c) 2020 Alexander Kozhinov <[email protected]>
3+
* Copyright (c) 2022 Georgij Cernysiov <[email protected]>
4+
*
35
* SPDX-License-Identifier: Apache-2.0
46
*/
57

8+
#include <mem.h>
69
#include <st/h7/stm32h7.dtsi>
710

811
/ {
912
soc {
1013
flash-controller@52002000 {
1114
flash0: flash@8000000 {
15+
compatible = "soc-nv-flash";
1216
write-block-size = <32>;
1317
erase-block-size = <DT_SIZE_K(128)>;
18+
label = "FLASH_STM32";
1419
};
1520
};
1621

@@ -52,16 +57,44 @@
5257
};
5358
};
5459

55-
/* DTCM memory directly coupled to CPU */
60+
/* D1 domain, AXI SRAM (128KB with shared ITCM 192KB as `TCM_AXI_SHARED` is `000`) */
61+
sram0: memory@24000000 {
62+
reg = <0x24000000 DT_SIZE_K(320)>;
63+
compatible = "mmio-sram";
64+
};
65+
66+
/* D2 domain, AHB SRAM */
67+
sram1: memory@30000000 {
68+
reg = <0x30000000 DT_SIZE_K(16)>;
69+
compatible = "zephyr,memory-region", "mmio-sram";
70+
zephyr,memory-region = "SRAM1";
71+
};
72+
73+
/* D2 domain, AHB SRAM */
74+
sram2: memory@30040000 {
75+
reg = <0x30040000 DT_SIZE_K(16)>;
76+
compatible = "zephyr,memory-region", "mmio-sram";
77+
zephyr,memory-region = "SRAM2";
78+
};
79+
80+
/* D3 domain, AHB SRAM */
81+
sram4: memory@38000000 {
82+
reg = <0x38000000 DT_SIZE_K(16)>;
83+
compatible = "zephyr,memory-region", "mmio-sram";
84+
zephyr,memory-region = "SRAM4";
85+
};
86+
87+
/* Data TCM RAM */
5688
dtcm: memory@20000000 {
5789
compatible = "zephyr,memory-region", "arm,dtcm";
5890
reg = <0x20000000 DT_SIZE_K(128)>;
5991
zephyr,memory-region = "DTCM";
6092
};
6193

62-
/* AXI SRAM in D1 domain (AXI bus) */
63-
sram0: memory@24000000 {
64-
reg = <0x24000000 DT_SIZE_K(128)>;
65-
compatible = "mmio-sram";
94+
/* Instruction TCM RAM (64KB as `TCM_AXI_SHARED` is `000`) */
95+
itcm: memory@0 {
96+
compatible = "zephyr,memory-region", "arm,itcm";
97+
reg = <0x00000000 DT_SIZE_K(64)>;
98+
zephyr,memory-region = "ITCM";
6699
};
67100
};

0 commit comments

Comments
 (0)