2020-11-20 23:39:46 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 EPAM Systems
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* This file was created by running
|
|
|
|
*
|
|
|
|
* # LIBXL_DEBUG_DUMP_DTB=domu-libxl.dtb xl create zephyr.conf
|
|
|
|
*
|
2022-02-24 20:00:55 +08:00
|
|
|
* decompiling resulting domu-libxl.dtb and then manually aligning it
|
2020-11-20 23:39:46 +08:00
|
|
|
* with zephyr requirements.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include <mem.h>
|
2021-03-25 18:56:15 +08:00
|
|
|
#include <arm64/armv8-a.dtsi>
|
2022-05-06 16:56:39 +08:00
|
|
|
#include <zephyr/dt-bindings/interrupt-controller/arm-gic.h>
|
2020-11-20 23:39:46 +08:00
|
|
|
|
|
|
|
/ {
|
2023-03-15 19:33:30 +08:00
|
|
|
model = "XENVM";
|
|
|
|
compatible = "xen,xenvm";
|
2020-11-20 23:39:46 +08:00
|
|
|
interrupt-parent = <&gic>;
|
|
|
|
#address-cells = <0x02>;
|
|
|
|
#size-cells = <0x02>;
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,sram = &ram;
|
2021-07-02 17:31:34 +08:00
|
|
|
zephyr,console = &xen_hvc;
|
2020-11-20 23:39:46 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
cpus {
|
|
|
|
#address-cells = <0x01>;
|
|
|
|
#size-cells = <0x00>;
|
|
|
|
|
|
|
|
cpu@0 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,armv8";
|
|
|
|
enable-method = "psci";
|
|
|
|
reg = <0x00>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
psci {
|
|
|
|
compatible = "arm,psci-1.0", "arm,psci-0.2", "arm,psci";
|
|
|
|
method = "hvc";
|
|
|
|
};
|
|
|
|
|
|
|
|
ram: memory@40000000 {
|
|
|
|
device_type = "mmio-sram";
|
|
|
|
reg = <0x00 0x40000000 0x00 DT_SIZE_M(16)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gic: interrupt-controller@3001000 {
|
2023-05-18 00:05:07 +08:00
|
|
|
compatible = "arm,gic-v2", "arm,gic";
|
2020-11-20 23:39:46 +08:00
|
|
|
#interrupt-cells = <0x04>;
|
|
|
|
#address-cells = <0x00>;
|
|
|
|
interrupt-controller;
|
|
|
|
reg = <0x00 0x3001000 0x00 0x1000 0x00 0x3002000 0x00 0x2000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
timer {
|
2021-02-04 08:53:44 +08:00
|
|
|
compatible = "arm,armv8-timer";
|
2020-11-20 23:39:46 +08:00
|
|
|
interrupts = <GIC_PPI 0x0d IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY
|
|
|
|
GIC_PPI 0x0e IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY
|
|
|
|
GIC_PPI 0x0b IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
|
|
|
|
interrupt-parent = <&gic>;
|
|
|
|
};
|
|
|
|
|
|
|
|
hypervisor: hypervisor@38000000 {
|
2023-03-15 19:33:30 +08:00
|
|
|
compatible = "xen,xen";
|
2020-11-20 23:39:46 +08:00
|
|
|
reg = <0x00 0x38000000 0x00 0x1000000>;
|
|
|
|
interrupts = <GIC_PPI 0x0f IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
|
|
|
|
interrupt-parent = <&gic>;
|
|
|
|
};
|
|
|
|
|
2021-07-02 17:31:34 +08:00
|
|
|
xen_hvc: hvc {
|
2022-06-14 15:24:02 +08:00
|
|
|
compatible = "xen,hvc-uart";
|
2021-07-02 17:31:34 +08:00
|
|
|
status = "okay";
|
2020-11-20 23:39:46 +08:00
|
|
|
};
|
|
|
|
};
|