1/*
2 * Copyright (C) 2024 EPAM Systems.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/delete-node/ &ram;
8/delete-node/ &hscif0;
9
10/ {
11	/*
12	 * This node may differs on different setups, please check
13	 * following line in Xen boot log to set it right:
14	 * (XEN) Grant table range: 0x00000078080000-0x000000780c0000
15	 * Also, add extended region 1:
16	 * (XEN) Extended region 1: 0x40000000->0x47e00000
17	 *
18	 * Xen passes actual values for setup in domain device tree, but Zephyr
19	 * is not capable to parse and handle it in runtime.
20	 */
21	hypervisor: hypervisor@78080000 {
22		compatible = "xen,xen";
23		reg = <0x0 0x78080000 0x0 0x40000 0x0 0x40000000 0x0 0x7e00000>;
24		interrupts = <GIC_PPI 0x0 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
25		interrupt-parent = <&gic>;
26		status = "okay";
27	};
28
29	/*
30	 * This node may differs on different setups, because Xen picks
31	 * region for Domain-0 for every specific configuration. You can
32	 * start Xen for your platform and check following log:
33	 * (XEN) Allocating 1:1 mappings for dom0:
34	 * (XEN) BANK[0] 0x00000080000000-0x00000090000000 (256MB)
35	 *
36	 * Xen passes actual values for setup in domain device tree, but Zephyr
37	 * is not capable to parse and handle it in runtime.
38	 */
39	ram: memory@80000000 {
40		device_type = "mmio-sram";
41		reg = <0x00 0x80000000 0x00 DT_SIZE_M(256)>;
42	};
43};
44