1/*
2 * Copyright (c) 2021 STMicroelectronics
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include "b_u585i_iot02a-common.dtsi"
9#include <zephyr/dt-bindings/memory-attr/memory-attr.h>
10#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
11
12/ {
13	model = "STMicroelectronics B-U585I-IOT02A discovery kit";
14	compatible = "st,b-u585i-iot02a";
15
16	chosen {
17		zephyr,console = &usart1;
18		zephyr,shell-uart = &usart1;
19		zephyr,sram = &sram0;
20		zephyr,flash = &flash0;
21		zephyr,code-partition = &slot0_partition;
22		zephyr,bt-hci = &bt_hci_uart;
23	};
24
25	aliases {
26		led0 = &green_led_1;
27		led1 = &red_led_1;
28		sw0 = &user_button;
29	};
30
31	octo_nor: memory@70000000 {
32		compatible = "zephyr,memory-region";
33		reg = <0x70000000 DT_SIZE_M(64)>;
34		zephyr,memory-region = "EXTMEM";
35		/* The ATTR_MPU_EXTMEM attribut causing a MPU FAULT */
36		zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_IO) )>;
37	};
38};
39
40&flash0 {
41	partitions {
42		compatible = "fixed-partitions";
43		#address-cells = <1>;
44		#size-cells = <1>;
45
46		/*
47		 * Following flash partition is dedicated to the use of b_u585i_iot02a
48		 * with TZEN=0 (so w/o TFM).
49		 * Set the partitions with first MB to make use of the whole Bank1
50		 */
51		boot_partition: partition@0 {
52			label = "mcuboot";
53			reg = <0x00000000 DT_SIZE_K(64)>;
54		};
55		slot0_partition: partition@10000 {
56			label = "image-0";
57			reg = <0x00010000 DT_SIZE_K(416)>;
58		};
59		slot1_partition: partition@78000 {
60			label = "image-1";
61			reg = <0x00078000 DT_SIZE_K(416)>;
62		};
63		scratch_partition: partition@e0000 {
64			label = "image-scratch";
65			reg = <0x000e0000 DT_SIZE_K(64)>;
66		};
67		storage_partition: partition@f0000 {
68			label = "storage";
69			reg = <0x000f0000 DT_SIZE_K(64)>;
70		};
71
72	};
73};
74
75&gpdma1 {
76	status = "okay";
77};
78
79&uart4 {
80	pinctrl-0 = <&uart4_tx_pc10 &uart4_rx_pc11>;
81	pinctrl-names = "default";
82	current-speed = <100000>;
83	status = "okay";
84
85	bt_hci_uart: bt_hci_uart {
86		compatible = "zephyr,bt-hci-uart";
87		status = "okay";
88	};
89};
90