ARM: dts: msm: Add initial device tree for an SA8155 based Auto VM

Add the initial device tree files for an SA8155 based Auto GVM
support.

Change-Id: I752e8bda80b50b14cac7dfdfffd100286c24b8e1
This commit is contained in:
Anant Goel
2022-07-11 21:59:33 -07:00
parent de6080ae92
commit 156801a225
6 changed files with 93 additions and 0 deletions

View File

@@ -144,6 +144,17 @@ sa410m_auto-dtb-$(CONFIG_ARCH_SA410M) += \
sa410m-rumi.dtb
dtb-y += $(sa410m_auto-dtb-y)
SA8155_LA_GVM_BASE_DTB += sa8155-vm-la.dtb
SA8155_LA_GVM_BOARDS += \
sa8155-vm-la-overlay.dtbo
autogvm-dtb-$(CONFIG_QTI_QUIN_GVM) += \
$(call add-overlays, $(SA8155_LA_GVM_BOARDS),$(SA8155_LA_GVM_BASE_DTB))
autogvm-overlays-dtb-$(CONFIG_QTI_QUIN_GVM) += $(SA8155_LA_GVM_BOARDS) $(SA8155_LA_GVM_BASE_DTB)
dtb-y += $(autogvm-dtb-y)
endif
ifeq ($(CONFIG_ARCH_KALAMA), y)

53
qcom/quin-vm-common.dtsi Normal file
View File

@@ -0,0 +1,53 @@
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/gpio/gpio.h>
/ {
#address-cells = <2>;
#size-cells = <2>;
psci {
compatible = "arm,psci-1.0";
method = "smc";
};
chosen {
bootargs = "rcupdate.rcu_expedited=1 rcu_nocbs=0-7 cgroup.memory=nokmem,nosocket";
};
soc: soc { };
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
linux,cma {
compatible = "shared-dma-pool";
alloc-ranges = <0x0 0x0 0x0 0xffffffff>;
reusable;
alignment = <0x0 0x400000>;
size = <0x0 0x2000000>;
linux,cma-default;
phandle = <0x4>;
};
pmem_shared: pmem_shared_region {
reg = <0x1 0x6a500000 0x0 0x51400000>;
label = "pmem_shared_mem";
};
};
};
&soc {
#address-cells = <1>;
#size-cells = <1>;
interrupt-parent = <&intc>;
ranges = <0x0 0x0 0x0 0xffffffff>;
compatible = "simple-bus";
intc: vgic@0 {
qvm,vdev = "gic";
#interrupt-cells = <3>;
interrupt-controller;
};
};

View File

@@ -0,0 +1,10 @@
/dts-v1/;
/plugin/;
#include "sa8155-vm.dtsi"
/ {
model = "Qualcomm Technologies, Inc. SA8155 Single LA Guest Virtual Machine";
compatible = "qcom,sa8155", "qcom,quinvm";
qcom,board-id = <0x0 0x1000001>;
};

10
qcom/sa8155-vm-la.dts Normal file
View File

@@ -0,0 +1,10 @@
/dts-v1/;
#include "sa8155-vm.dtsi"
#include "sa8155-vm-la.dtsi"
/ {
model = "Qualcomm Technologies, Inc. SA8155 Single LA Guest Virtual Machine";
compatible = "qcom,sa8155", "qcom,quinvm";
qcom,board-id = <0x0 0x1000001>;
};

2
qcom/sa8155-vm-la.dtsi Normal file
View File

@@ -0,0 +1,2 @@
&soc {
};

7
qcom/sa8155-vm.dtsi Normal file
View File

@@ -0,0 +1,7 @@
#include "quin-vm-common.dtsi"
/ {
model = "Qualcomm Technologies, Inc. SA8155 Guest Virtual Machine";
qcom,msm-name = "SA8155 v2";
qcom,msm-id = <362 0x20000>;
};