From bea7a85c1ecf23e713d9ef0ff08948ee3e21f105 Mon Sep 17 00:00:00 2001 From: Mukesh Kumar Savaliya Date: Tue, 1 Dec 2020 12:51:31 +0530 Subject: [PATCH] ARM: dts: msm: Add support for TUI over SPI on LE VM Adds SPI DTSI node support to enable Trusted VM usecase for TUI. Change-Id: I0373601889bcd90f5c1c9a3cb2ce92cde8015f22 --- qcom/shima-qupv3.dtsi | 5 +++-- qcom/shima-vm.dtsi | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/qcom/shima-qupv3.dtsi b/qcom/shima-qupv3.dtsi index a4c05936d55c..1b30f1c5ed89 100644 --- a/qcom/shima-qupv3.dtsi +++ b/qcom/shima-qupv3.dtsi @@ -59,6 +59,7 @@ qcom,ev-factor = <2>; qcom,iommu-dma-addr-pool = <0x100000 0x100000>; qcom,gpi-ee-offset = <0x10000>; + qcom,le-vm; status = "ok"; }; @@ -197,8 +198,8 @@ pinctrl-names = "default", "sleep"; pinctrl-0 = <&qupv3_se10_spi_active>; pinctrl-1 = <&qupv3_se10_spi_sleep>; - dmas = <&gpi_dma0 0 2 1 64 0>, - <&gpi_dma0 1 2 1 64 0>; + dmas = <&gpi_dma0 0 2 1 64 2>, + <&gpi_dma0 1 2 1 64 2>; dma-names = "tx", "rx"; spi-max-frequency = <50000000>; qcom,wrapper-core = <&qupv3_0>; diff --git a/qcom/shima-vm.dtsi b/qcom/shima-vm.dtsi index 9a94097f5cc2..c29e3fe76683 100644 --- a/qcom/shima-vm.dtsi +++ b/qcom/shima-vm.dtsi @@ -246,6 +246,7 @@ qupv3_0: qcom,qupv3_0_geni_se@9c0000 { compatible = "qcom,qupv3-geni-se"; reg = <0x9c0000 0x2000>; + status = "ok"; }; /* GPI Instance */ @@ -298,6 +299,23 @@ }; }; + /* SPI SE */ + qupv3_se10_spi: spi@988000 { + compatible = "qcom,spi-geni"; + reg = <0x988000 0x4000>; + reg-names = "se_phys"; + #address-cells = <1>; + #size-cells = <0>; + dmas = <&gpi_dma0 0 2 1 64 0>, + <&gpi_dma0 1 2 1 64 0>; + dma-names = "tx", "rx"; + spi-max-frequency = <50000000>; + qcom,wrapper-core = <&qupv3_0>; + qcom,le-vm; + status = "disabled"; + }; + + }; #include "lahaina-vm-ion.dtsi" #include "display/trustedvm-shima-sde.dtsi"