|
| 1 | +/* |
| 2 | + * Copyright (c) 2023 STMicroelectronics |
| 3 | + * Copyright (c) 2025 CodeWrights GmbH |
| 4 | + * |
| 5 | + * SPDX-License-Identifier: Apache-2.0 |
| 6 | + */ |
| 7 | + |
| 8 | +/dts-v1/; |
| 9 | +#include "stm32h573i_dk-common.dtsi" |
| 10 | + |
| 11 | +/ { |
| 12 | + model = "STMicroelectronics STM32H573I DISCOVERY KIT board"; |
| 13 | + compatible = "st,stm32h573i-dk"; |
| 14 | + |
| 15 | + chosen { |
| 16 | + zephyr,flash = &flash0; |
| 17 | + zephyr,flash-controller = &flash; |
| 18 | + zephyr,code-partition = &slot0_ns_partition; |
| 19 | + }; |
| 20 | +}; |
| 21 | + |
| 22 | +/* Last 64kB of SRAM1 are owned by TF-M */ |
| 23 | +&sram1 { |
| 24 | + reg = <0x20000000 DT_SIZE_K(256 - 64)>; |
| 25 | +}; |
| 26 | + |
| 27 | +/* SRAM2 is owned by TF-M */ |
| 28 | +&sram2 { |
| 29 | + status = "disabled"; |
| 30 | +}; |
| 31 | + |
| 32 | +&flash0 { |
| 33 | + partitions { |
| 34 | + compatible = "fixed-partitions"; |
| 35 | + #address-cells = <1>; |
| 36 | + #size-cells = <1>; |
| 37 | + |
| 38 | + /* Keep in sync with partitions from flash_layout.h in TF-M |
| 39 | + * MCUboot (scratch area) 0000_0000 - 0000_C000 ( 48k) |
| 40 | + * MCUboot (anti-rollback counter) 0000_C000 - 0001_0000 ( 16k) |
| 41 | + * MCUboot (BL2) 0001_0000 - 0002_8000 ( 96k) |
| 42 | + * MCUboot (OTP / non-volatile counters) 0002_8000 - 0002_C000 ( 16k) |
| 43 | + * MCUboot (non-volatile counters) 0002_C000 - 0003_0000 ( 16k) |
| 44 | + * Secure storage 0003_0000 - 0003_4000 ( 16k) |
| 45 | + * Internal trusted storage 0003_4000 - 0003_8000 ( 16k) |
| 46 | + * Slot 0 Secure Partition 0003_8000 - 0008_8000 (320k) |
| 47 | + * Slot 0 Non-Secure Partition 0008_8000 - 0011_8000 (576k) |
| 48 | + * Slot 1 Secure Partition 0011_8000 - 0016_8000 (320k) |
| 49 | + * Slot 1 Non-Secure Partition 0016_8000 - 001F_8000 (576k) |
| 50 | + * Storage Partition 001F_8000 - 0020_0000 ( 32k) |
| 51 | + */ |
| 52 | + |
| 53 | + boot_partition: partition@0 { |
| 54 | + label = "mcuboot"; |
| 55 | + reg = <0x00000000 DT_SIZE_K(192)>; |
| 56 | + }; |
| 57 | + |
| 58 | + slot0_partition: partition@38000 { |
| 59 | + label = "image-0"; |
| 60 | + reg = <0x00038000 DT_SIZE_K(320)>; |
| 61 | + }; |
| 62 | + |
| 63 | + slot0_ns_partition: partition@88000 { |
| 64 | + label = "image-0-nonsecure"; |
| 65 | + reg = <0x00088000 DT_SIZE_K(576)>; |
| 66 | + }; |
| 67 | + |
| 68 | + slot1_partition: partition@118000 { |
| 69 | + label = "image-1"; |
| 70 | + reg = <0x00118000 DT_SIZE_K(320)>; |
| 71 | + }; |
| 72 | + |
| 73 | + slot1_ns_partition: partition@168000 { |
| 74 | + label = "image-1-nonsecure"; |
| 75 | + reg = <0x00168000 DT_SIZE_K(576)>; |
| 76 | + }; |
| 77 | + |
| 78 | + storage_partition: partition@1f8000 { |
| 79 | + label = "storage"; |
| 80 | + reg = <0x001f8000 DT_SIZE_K(32)>; |
| 81 | + }; |
| 82 | + }; |
| 83 | +}; |
| 84 | + |
| 85 | +&ext_flash { |
| 86 | + partitions { |
| 87 | + compatible = "fixed-partitions"; |
| 88 | + #address-cells = <1>; |
| 89 | + #size-cells = <1>; |
| 90 | + |
| 91 | + partition@0 { |
| 92 | + label = "nor"; |
| 93 | + reg = <0x00000000 DT_SIZE_M(64)>; |
| 94 | + }; |
| 95 | + }; |
| 96 | +}; |
0 commit comments