From dc18d4050da4836ef3d4ec08c332474c858df0e7 Mon Sep 17 00:00:00 2001 From: Raviteja Tamatam Date: Fri, 18 Mar 2022 17:33:29 -0700 Subject: [PATCH] ARM: dts: msm: add trusted touch properties for kalama This change adds trusted touch properties for kalama target. Change-Id: I9b3444f35ebce6bad2e9f809a09222d26e4f5e90 --- qcom/kalama-mtp.dtsi | 10 ++++++++++ qcom/kalama-vm-mtp.dtsi | 14 +++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/qcom/kalama-mtp.dtsi b/qcom/kalama-mtp.dtsi index bafea84e..e34cb3dd 100644 --- a/qcom/kalama-mtp.dtsi +++ b/qcom/kalama-mtp.dtsi @@ -142,6 +142,16 @@ invert_xy; avdd-supply = <&L14B>; iovdd-supply = <&L12B>; + goodix,touch-type = "primary"; + goodix,qts_en; + qts,trusted-touch-mode = "vm_mode"; + qts,touch-environment = "pvm"; + qts,trusted-touch-type = "primary"; + qts,trusted-touch-spi-irq = <569>; + qts,trusted-touch-io-bases = <0xa90000>; + qts,trusted-touch-io-sizes = <0x1000>; + qts,trusted-touch-vm-gpio-list = <&tlmm 44 0 &tlmm 45 0 &tlmm 46 0 + &tlmm 47 0 &tlmm 24 0 &tlmm 25 0x2008>; }; }; diff --git a/qcom/kalama-vm-mtp.dtsi b/qcom/kalama-vm-mtp.dtsi index 090e4c24..0c042720 100644 --- a/qcom/kalama-vm-mtp.dtsi +++ b/qcom/kalama-vm-mtp.dtsi @@ -3,12 +3,24 @@ &qupv3_se4_i2c { status = "ok"; + qcom,i2c-touch-active = "goodix,gt9916"; goodix-berlin@5d { - compatible = "goodix,gt9916S"; + compatible = "goodix,gt9916"; reg = <0x5d>; goodix,panel-max-x = <1080>; goodix,panel-max-y = <2400>; goodix,panel-max-w = <255>; goodix,panel-max-p = <4096>; + invert_xy; + goodix,touch-type = "primary"; + goodix,qts_en; + qts,trusted-touch-mode = "vm_mode"; + qts,touch-environment = "tvm"; + qts,trusted-touch-type = "primary"; + qts,trusted-touch-spi-irq = <569>; + qts,trusted-touch-io-bases = <0xa90000>; + qts,trusted-touch-io-sizes = <0x1000>; + qts,trusted-touch-vm-gpio-list = <&tlmm 44 0 &tlmm 45 0 &tlmm 46 0 + &tlmm 47 0 &tlmm 24 0 &tlmm 25 0x2008>; }; };