1/*
2 * Copyright (c) 2022 Linaro Limited
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include "b_u585i_iot02a-common.dtsi"
9
10/ {
11	model = "STMicroelectronics B-U585I-IOT02A discovery kit";
12	compatible = "st,b-u585i-iot02a";
13
14	chosen {
15		zephyr,console = &usart1;
16		zephyr,shell-uart = &usart1;
17		zephyr,sram = &sram0;
18		zephyr,flash = &flash0;
19		zephyr,code-partition = &slot0_ns_partition;
20	};
21
22	aliases {
23		led0 = &green_led_1;
24		led1 = &red_led_1;
25		sw0 = &user_button;
26	};
27};
28
29&flash0 {
30
31	partitions {
32		compatible = "fixed-partitions";
33		#address-cells = <1>;
34		#size-cells = <1>;
35
36		/*
37		 * Following flash partition is compatible with requirements
38		 * given in TFM configuration given for current board.
39		 * It might require adjustment depending on evolutions on TFM.
40		 */
41
42		boot_partition: partition@0 {
43			label = "mcuboot";
44			reg = <0x00000000 DT_SIZE_K(224)>;
45			read-only;
46		};
47		/* Secure image primary slot */
48		slot0_partition: partition@38000 {
49			label = "image-0";
50			reg = <0x00038000 DT_SIZE_K(384)>;
51		};
52		/* Non-secure image primary slot */
53		slot0_ns_partition: partition@98000 {
54			label = "image-0-nonsecure";
55			reg = <0x00098000 DT_SIZE_K(512)>;
56		};
57		/* Secure image secondary slot */
58		slot1_partition: partition@118000 {
59			label = "image-1";
60			reg = <0x00118000 DT_SIZE_K(384)>;
61		};
62		/* Non-secure image secondary slot */
63		slot1_ns_partition: partition@178000 {
64			label = "image-1-nonsecure";
65			reg = <0x00178000 DT_SIZE_K(512)>;
66		};
67		/* Applicative Non Volatile Storage */
68		storage_partition: partition@1f8000 {
69			label = "storage";
70			reg = <0x001f8000 DT_SIZE_K(16)>;
71		};
72	};
73};
74