From 666f3418c7ce4e4fe3dd3bbdab0c86c5f086d7e4 Mon Sep 17 00:00:00 2001 From: Naina Mehta Date: Fri, 27 Nov 2020 13:27:11 +0530 Subject: [PATCH] ARM: dts: msm: Add trustedvm enablement nodes for Yupik Add trusted VM configuration for Yupik SoC. Change-Id: I4f628c7958ac32ebd41e99243a6849b7b21812ed --- qcom/yupik.dtsi | 79 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/qcom/yupik.dtsi b/qcom/yupik.dtsi index bbefeda3d6dc..c5f47c0f6775 100644 --- a/qcom/yupik.dtsi +++ b/qcom/yupik.dtsi @@ -339,6 +339,26 @@ reg = <0x0 0xc0000000 0x0 0x5100000>; }; + pil_trustedvm_mem: pil_trustedvm_region@d0800000 { + no-map; + reg = <0x0 0xd0800000 0x0 0x76f7000>; + }; + + qrtr_shbuf: qrtr-shmem { + no-map; + reg = <0x0 0xd7ef7000 0x0 0x9000>; + }; + + chan0_shbuf: neuron_block@0 { + no-map; + reg = <0x0 0xd7f00000 0x0 0x80000>; + }; + + chan1_shbuf: neuron_block@1 { + no-map; + reg = <0x0 0xd7f80000 0x0 0x80000>; + }; + secure_display_memory: secure_display_region { compatible = "shared-dma-pool"; alloc-ranges = <0 0x00000000 0 0xffffffff>; @@ -1219,6 +1239,65 @@ interconnects = <&aggre2_noc MASTER_CRYPTO &mc_virt SLAVE_EBI1>; }; + qcom,trustedvm@d0800000 { + compatible = "qcom,pil-tz-generic"; + status = "ok"; + qcom,pas-id = <28>; + qcom,firmware-name = "trustedvm"; + memory-region = <&pil_trustedvm_mem>; + }; + + qcom,guestvm_loader { + compatible = "qcom,guestvm-loader"; + image_to_be_loaded = "trustedvm"; + }; + + qcom,svm_neuron_block { + compatible = "qcom,neuron-service"; + #address-cells = <1>; + #size-cells = <0>; + protocol { + compatible = "qcom,neuron-protocol-block"; + processes = "server"; + }; + + application { + compatible = "qcom,neuron-block-server"; + }; + + channel@0 { + compatible = "qcom,neuron-channel-haven-shmem"; + reg = <0>; + class = "message-queue"; + direction = "receive"; + max-size = <0 65536>; + shared-buffer = <&chan0_shbuf>; + qcom,primary; + haven-label = <1>; + peer-name = <2>; + }; + + channel@1 { + compatible = "qcom,neuron-channel-haven-shmem"; + reg = <1>; + class = "message-queue"; + direction = "send"; + max-size = <0 65536>; + shared-buffer = <&chan1_shbuf>; + qcom,primary; + haven-label = <2>; + peer-name = <2>; + }; + }; + + qrtr-haven { + compatible = "qcom,qrtr-haven"; + qcom,master; + haven-label = <3>; + peer-name = <2>; + shared-buffer = <&qrtr_shbuf>; + }; + qcom,lpass@3700000 { compatible = "qcom,pil-tz-generic"; reg = <0x3700000 0x00100>;