From 3c11e90a84ec600f4aafe825861c5f1298f5f85d Mon Sep 17 00:00:00 2001 From: Prakruthi Deepak Heragu Date: Thu, 19 Dec 2019 11:55:34 -0800 Subject: [PATCH 1/2] dt-bindings: Add bindings for guestvm-loader Add bindings for guestvm-loader. Change-Id: I19904980acf4b8548d2d65781fe1bfd2528c8069 --- bindings/soc/qcom/qcom,guestvm-loader.yaml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 bindings/soc/qcom/qcom,guestvm-loader.yaml diff --git a/bindings/soc/qcom/qcom,guestvm-loader.yaml b/bindings/soc/qcom/qcom,guestvm-loader.yaml new file mode 100644 index 000000000000..10533eb7bb46 --- /dev/null +++ b/bindings/soc/qcom/qcom,guestvm-loader.yaml @@ -0,0 +1,29 @@ +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/msm/guestvm-loaderpsci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Guest VM Loader + +maintainers: + - Prakruthi Deepak Heragu + - Murali Nalajala + +properties: + compatible: + const: qcom,guestvm-loader + + image_to_be_loaded: + $ref: /schemas/types.yaml#/definitions/string + +required: + - compatible + - image_to_be_loaded + +examples: + - |+ + qcom,guestvm_loader { + compatible = "qcom,guestvm-loader"; + image_to_be_loaded = "trustedvm"; + }; +... \ No newline at end of file From a62531081be6cc2905507cf582ec78e4a3f54b55 Mon Sep 17 00:00:00 2001 From: Prakruthi Deepak Heragu Date: Thu, 19 Dec 2019 11:47:08 -0800 Subject: [PATCH 2/2] ARM: dts: qcom: Reserved GuestVM memory and add its PIL driver Reserved Guest VM memory for PIL loading and create content for GuestVM driver. Change-Id: I41bec5f4fc35704a2b1776a21dd1587fd6580755 --- qcom/lahaina.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/qcom/lahaina.dtsi b/qcom/lahaina.dtsi index fee851b93239..2b5124443af2 100644 --- a/qcom/lahaina.dtsi +++ b/qcom/lahaina.dtsi @@ -336,6 +336,12 @@ reg = <0x0 0x98900000 0x0 0x1400000>; }; + pil_trustedvm_mem: pil_trustedvm_region@d0800000 { + compatible = "removed-dma-pool"; + no-map; + reg = <0x0 0xd0800000 0x0 0x8000000>; + }; + adsp_mem: adsp_region { compatible = "shared-dma-pool"; alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; @@ -2268,6 +2274,19 @@ mbox-names = "spss-pil"; }; + 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"; + }; + ssc_sensors: qcom,msm-ssc-sensors { compatible = "qcom,msm-ssc-sensors"; status = "ok";