1/*
2 * Copyright (c) 2021 Yestin Sun
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include "stm32l562e_dk_common.dtsi"
9
10/ {
11	model = "STMicroelectronics STM32L562E-DK Discovery board";
12	compatible = "st,stm32l562e-dk";
13
14	#address-cells = <1>;
15	#size-cells = <1>;
16
17	chosen {
18		zephyr,console = &usart1;
19		zephyr,shell-uart = &usart1;
20		zephyr,sram = &sram0;
21		zephyr,flash = &flash0;
22		zephyr,code-partition = &slot1_ns_partition;
23	};
24
25	aliases {
26		led0 = &green_led_10;
27		sw0 = &user_button;
28	};
29};
30
31&rtc {
32	clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000400>,
33		 <&rcc STM32_SRC_LSE RTC_SEL(1)>;
34
35	status = "okay";
36};
37
38&flash0 {
39	partitions {
40		compatible = "fixed-partitions";
41		#address-cells = <1>;
42		#size-cells = <1>;
43
44		boot_partition: partition@0 {
45			reg = <0x00000000 DT_SIZE_K(100)>;
46			read-only;
47		};
48		/* Secure image primary slot */
49		slot0_partition: partition@19000 {
50			reg = <0x00019000 DT_SIZE_K(240)>;
51		};
52		/* Non-secure image primary slot */
53		slot1_ns_partition: partition@55000 {
54			reg = <0x00055000 DT_SIZE_K(168)>;
55		};
56		/* 4KB at the end of 512KB flash is set for storage */
57		 storage_partition: partition@7f000 {
58			reg = <0x0007f000 DT_SIZE_K(4)>;
59		};
60	};
61};
62