1/*
2 * Copyright 2018 Foundries.io Ltd
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6/dts-v1/;
7
8#include "openisa/rv32m1_ri5cy.dtsi"
9#include "rv32m1_vega_openisa_rv32m1.dtsi"
10
11/ {
12	model = "OpenISA RV32M1 Vega RI5CY";
13	compatible = "openisa,rv32m1";
14
15	chosen {
16		zephyr,sram = &m4_dtcm;
17		zephyr,flash = &m4_flash;
18		zephyr,console = &lpuart0;
19		zephyr,shell-uart = &lpuart0;
20		zephyr,uart-pipe = &lpuart0;
21		zephyr,code-partition = &slot0_partition;
22		zephyr,bt-hci = &bt_hci_controller;
23	};
24};
25
26&bt_hci_controller {
27	status = "okay";
28};
29
30&m4_flash {
31	/*
32	 * For more information, see:
33	 * http://docs.zephyrproject.org/latest/guides/dts/index.html
34	 */
35	partitions {
36		compatible = "fixed-partitions";
37		#address-cells = <1>;
38		#size-cells = <1>;
39
40		slot0_partition: partition@0 {
41			label = "image-0";
42			reg = <0x00000000 0x00069000>;
43		};
44		slot1_partition: partition@69000 {
45			label = "image-1";
46			reg = <0x00069000 0x00069000>;
47		};
48		scratch_partition: partition@d2000 {
49			label = "image-scratch";
50			reg = <0x000d2000 0x0001e000>;
51		};
52		storage_partition: partition@f0000 {
53			label = "storage";
54			reg = <0x000f0000 0x00004000>;
55		};
56		boot_partition: partition@f4000 {
57			label = "mcuboot";
58			reg = <0x000f4000 0x0000C000>;
59		};
60	};
61};
62