|
| 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 | +&flash0 { |
| 23 | + partitions { |
| 24 | + compatible = "fixed-partitions"; |
| 25 | + #address-cells = <1>; |
| 26 | + #size-cells = <1>; |
| 27 | + |
| 28 | + /* Keep in sync with partitions from flash_layout.h in TF-M */ |
| 29 | + /* Scratch area 0000_0000 - 0000_C000 ( 48k) */ |
| 30 | + /* MCUboot (anti-rollback counter) 0000_C000 - 0001_0000 ( 16k) */ |
| 31 | + /* MCUboot 0001_0000 - 0002_8000 (160k) */ |
| 32 | + /* MCUboot (OTP / non-volatile counters) 0002_8000 - 0002_C000 ( 16k) */ |
| 33 | + /* MCUboot (non-volatile counters) 0002_C000 - 0003_0000 ( 16k) */ |
| 34 | + /* Secure storage 0003_0000 - 0003_4000 ( 16k) */ |
| 35 | + /* Internal trusted storage 0003_4000 - 0003_8000 ( 16k) */ |
| 36 | + /* Slot 0 Secure Partition 0003_8000 - 0008_8000 (320k) */ |
| 37 | + /* Slot 0 Non-Secure Partition 0008_8000 - 0011_8000 (576k) */ |
| 38 | + /* Slot 1 Secure Partition 0011_8000 - 0016_8000 (320k) */ |
| 39 | + /* Slot 1 Non-Secure Partition 0016_8000 - 001F_8000 (576k) */ |
| 40 | + /* Storage Partition 001F_8000 - 0020_0000 ( 32k) */ |
| 41 | + |
| 42 | + boot_partition: partition@10000 { |
| 43 | + label = "mcuboot"; |
| 44 | + reg = <0x00010000 DT_SIZE_K(160)>; |
| 45 | + }; |
| 46 | + |
| 47 | + slot0_partition: partition@38000 { |
| 48 | + label = "image-0"; |
| 49 | + reg = <0x00038000 DT_SIZE_K(320)>; |
| 50 | + }; |
| 51 | + |
| 52 | + slot0_ns_partition: partition@88000 { |
| 53 | + label = "image-0-nonsecure"; |
| 54 | + reg = <0x00088000 DT_SIZE_K(576)>; |
| 55 | + }; |
| 56 | + |
| 57 | + slot1_partition: partition@118000 { |
| 58 | + label = "image-1"; |
| 59 | + reg = <0x00118000 DT_SIZE_K(320)>; |
| 60 | + }; |
| 61 | + |
| 62 | + slot1_ns_partition: partition@168000 { |
| 63 | + label = "image-1-nonsecure"; |
| 64 | + reg = <0x00168000 DT_SIZE_K(576)>; |
| 65 | + }; |
| 66 | + |
| 67 | + storage_partition: partition@1f8000 { |
| 68 | + label = "storage"; |
| 69 | + reg = <0x001f8000 DT_SIZE_K(32)>; |
| 70 | + }; |
| 71 | + }; |
| 72 | +}; |
| 73 | + |
| 74 | +&ext_flash { |
| 75 | + partitions { |
| 76 | + compatible = "fixed-partitions"; |
| 77 | + #address-cells = <1>; |
| 78 | + #size-cells = <1>; |
| 79 | + |
| 80 | + partition@0 { |
| 81 | + label = "nor"; |
| 82 | + reg = <0x00000000 DT_SIZE_M(64)>; |
| 83 | + }; |
| 84 | + }; |
| 85 | +}; |
0 commit comments