From 30ab6a80ce4b7f713b56507d4b3dcdb288c7643d Mon Sep 17 00:00:00 2001 From: Vipin Deep Kaur Date: Fri, 12 Jun 2020 11:17:11 +0530 Subject: [PATCH 1/2] dt-bindings: qcom_gpi: Add DT support for TUI usecase on lahaina Add le-vm DT flag to enable TUI usecase. Add static-gpii-mask to assign a static gpii to touch LA usecase on Lahaina. Change-Id: I0760673e482ec6353a6e3100722432d631780637 --- bindings/dma/qcom_gpi.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bindings/dma/qcom_gpi.txt b/bindings/dma/qcom_gpi.txt index 91f73d1112c1..4f98aaea00c4 100644 --- a/bindings/dma/qcom_gpi.txt +++ b/bindings/dma/qcom_gpi.txt @@ -74,6 +74,16 @@ Optional property: Value type: tuple of
. Definition: Indicates the range of addresses that the dma layer will use. +- qcom,le-vm + Usage: optional + Value type: boolean + Definition: flag to support I2C functionality in trusted VM. + +- qcom,static-gpii-mask + Usage: optional + Value type: boolean + Definition: GPII number statically assigned to TUI LA touch se. + ======== Example: ======== From 7ad236060e4d105b780a1ad84340ae8da10032b9 Mon Sep 17 00:00:00 2001 From: Vipin Deep Kaur Date: Tue, 26 May 2020 18:26:23 +0530 Subject: [PATCH 2/2] ARM: dts: msm: Add DT flags for TUI usecase on lahaina Add le-vm DT flag to enable TUI usecase. Add static-gpii-mask to assign a static gpii to touch LA usecase on Lahaina. Change-Id: I2905c0bec48ea83f34fbd6e3ffbbfec52306f5c5 --- qcom/lahaina-qupv3.dtsi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qcom/lahaina-qupv3.dtsi b/qcom/lahaina-qupv3.dtsi index 5c8fafacd424..02e418019e9a 100644 --- a/qcom/lahaina-qupv3.dtsi +++ b/qcom/lahaina-qupv3.dtsi @@ -57,11 +57,13 @@ , ; qcom,max-num-gpii = <12>; - qcom,gpii-mask = <0x7f>; + qcom,static-gpii-mask = <0x1>; + qcom,gpii-mask = <0x7e>; qcom,ev-factor = <2>; iommus = <&apps_smmu 0x5b6 0x0>; qcom,gpi-ee-offset = <0x10000>; qcom,iommu-dma-addr-pool = <0x100000 0x100000>; + qcom,le-vm; status = "ok"; }; @@ -343,8 +345,8 @@ clocks = <&clock_gcc GCC_QUPV3_WRAP0_S4_CLK>, <&clock_gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, <&clock_gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; - dmas = <&gpi_dma0 0 4 3 64 0>, - <&gpi_dma0 1 4 3 64 0>; + dmas = <&gpi_dma0 0 4 3 64 2>, + <&gpi_dma0 1 4 3 64 2>; dma-names = "tx", "rx"; pinctrl-names = "default", "sleep"; pinctrl-0 = <&qupv3_se4_i2c_active>;