From ea38d00ada3e434ef8b42b84ff98f83650a545ca Mon Sep 17 00:00:00 2001 From: Raviteja Tamatam Date: Tue, 2 Aug 2022 11:42:53 -0700 Subject: [PATCH] ARM: dts: msm: add TUI support on secondary touch This change enables TUI on secondary touch for CDP on kalama target. Change-Id: Ia943450d47fe59f02bdc4a56e4913f340612017c --- qcom/kalama-cdp.dtsi | 2 +- qcom/kalama-vm-cdp.dtsi | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/qcom/kalama-cdp.dtsi b/qcom/kalama-cdp.dtsi index 331dc34f..5a9460ed 100644 --- a/qcom/kalama-cdp.dtsi +++ b/qcom/kalama-cdp.dtsi @@ -167,7 +167,7 @@ qts,touch-environment = "pvm"; qts,trusted-touch-type = "secondary"; qts,trusted-touch-spi-irq = <657>; - qts,trusted-touch-io-bases = <0xa90000>; + qts,trusted-touch-io-bases = <0x880000>; qts,trusted-touch-io-sizes = <0x1000>; qts,trusted-touch-vm-gpio-list = <&tlmm 56 0 &tlmm 57 0 &tlmm 58 0 &tlmm 59 0 &tlmm 13 0 &tlmm 48 0x2008>; diff --git a/qcom/kalama-vm-cdp.dtsi b/qcom/kalama-vm-cdp.dtsi index f1762c8d..e0fd7e47 100644 --- a/qcom/kalama-vm-cdp.dtsi +++ b/qcom/kalama-vm-cdp.dtsi @@ -23,3 +23,27 @@ &tlmm 47 0 &tlmm 24 0 &tlmm 25 0x2008>; }; }; + +&qupv3_se8_spi { + status = "ok"; + goodix-berlin@0 { + compatible = "goodix,gt9916S2"; + reg = <0>; + spi-max-frequency = <1000000>; + goodix,panel-max-x = <1080>; + goodix,panel-max-y = <2400>; + goodix,panel-max-w = <255>; + goodix,panel-max-p = <4096>; + goodix,touch-type = "secondary"; + goodix,qts_en; + qts,trusted-touch-mode = "vm_mode"; + qts,touch-environment = "tvm"; + qts,trusted-touch-type = "secondary"; + qts,trusted-touch-spi-irq = <657>; + qts,trusted-touch-io-bases = <0x880000>; + qts,trusted-touch-io-sizes = <0x1000>; + qts,trusted-touch-vm-gpio-list = <&tlmm 56 0 &tlmm 57 0 &tlmm 58 0 + &tlmm 59 0 &tlmm 13 0 &tlmm 48 0x2008>; + }; +}; +