From 77c1044f51984b2a98a63de0a7b56a6c2e75b31f Mon Sep 17 00:00:00 2001 From: Murali Nalajala Date: Sat, 22 Feb 2020 11:44:08 -0800 Subject: [PATCH] ARM: dts: qcom: Update trusted vm DT entries Update below DT entries based on testing on the target. - Move memory node outside of vm-config node and provide static S2 mappings until VMM is ready. - Update chosen node to support initramfs functionality. - Remove interrupt controller reference from arch_timer. Change-Id: Id59aa9e21cdc356e3664ebb4323c3ecefb9f1f3c --- qcom/trustedvm.dtsi | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/qcom/trustedvm.dtsi b/qcom/trustedvm.dtsi index 36e55c70..770e29a4 100644 --- a/qcom/trustedvm.dtsi +++ b/qcom/trustedvm.dtsi @@ -6,6 +6,10 @@ interrupt-parent = <&vgic>; chosen { + bootargs = "root=/dev/ram rw init=/init console=hvc0 loglevel=8"; + linux,initrd-start = <0x2a900000>; + linux,initrd-end = <0x2b42171a>; /* 11 MB */ + kaslr-seed = <0xfeedbeef 0xc0def00d>; }; cpus { @@ -21,7 +25,7 @@ }; }; - vgic: interrupt-controller { + vgic: interrupt-controller@17a00000 { compatible = "arm,gic-v3"; interrupt-controller; #interrupt-cells = <0x3>; @@ -34,6 +38,11 @@ method = "smc"; }; + memory@28000000 { + device_type = "memory"; + reg = <0x0 0x28000000 0x0 0x8000000>; /* Temp S2 mapping */ + }; + qcom,vm-config { compatible = "qcom,vm-1.0"; vm-type = "aarch64-guest"; @@ -73,13 +82,12 @@ }; }; - timer { + arch_timer: timer { compatible = "arm,armv8-timer"; always-on; interrupts = , , , ; - interrupt-parent = <&vgic>; }; };