|
1 | 1 | /*
|
2 | 2 | * Copyright (c) 2020 Alexander Kozhinov < [email protected]>
|
| 3 | + * Copyright (c) 2022 Georgij Cernysiov < [email protected]> |
| 4 | + * |
3 | 5 | * SPDX-License-Identifier: Apache-2.0
|
4 | 6 | */
|
5 | 7 |
|
| 8 | +#include <mem.h> |
6 | 9 | #include <st/h7/stm32h7.dtsi>
|
7 | 10 |
|
8 | 11 | / {
|
9 | 12 | soc {
|
10 | 13 | flash-controller@52002000 {
|
11 | 14 | flash0: flash@8000000 {
|
| 15 | + compatible = "soc-nv-flash"; |
12 | 16 | write-block-size = <32>;
|
13 | 17 | erase-block-size = <DT_SIZE_K(128)>;
|
| 18 | + label = "FLASH_STM32"; |
14 | 19 | };
|
15 | 20 | };
|
16 | 21 |
|
|
52 | 57 | };
|
53 | 58 | };
|
54 | 59 |
|
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 */ |
56 | 88 | dtcm: memory@20000000 {
|
57 | 89 | compatible = "zephyr,memory-region", "arm,dtcm";
|
58 | 90 | reg = <0x20000000 DT_SIZE_K(128)>;
|
59 | 91 | zephyr,memory-region = "DTCM";
|
60 | 92 | };
|
61 | 93 |
|
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"; |
66 | 99 | };
|
67 | 100 | };
|
0 commit comments