From 59a609a833f7b2b02f0b67cdd1423fc74fc07058 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Fri, 19 Jan 2024 02:18:35 +0800 Subject: [PATCH] ARM: dts: msm: add trusted touch node for sun Add trusted touch node for sun panel. Change-Id: Icd9ad451393428983fb6558642c7eee3c6c9dbfd Signed-off-by: Rui Chen --- qcom/sun-vm-mtp.dtsi | 23 ++++++++++++++++++++++- qcom/sun-vm-qrd.dts | 2 +- qcom/sun-vm-qrd.dtsi | 26 +++++++++++++++++++++++++- 3 files changed, 48 insertions(+), 3 deletions(-) diff --git a/qcom/sun-vm-mtp.dtsi b/qcom/sun-vm-mtp.dtsi index 9d0bfe90..72a4ff8f 100644 --- a/qcom/sun-vm-mtp.dtsi +++ b/qcom/sun-vm-mtp.dtsi @@ -1,6 +1,27 @@ // SPDX-License-Identifier: BSD-3-Clause /* - * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. */ &soc { }; + +&qupv3_se4_i2c { + status = "ok"; + qcom,touch-active = "st,fts"; + + st_fts@49 { + compatible = "st,fts"; + reg = <0x49>; + + st,touch-type = "primary"; + st,qts_en; + qts,trusted-touch-mode = "vm_mode"; + qts,touch-environment = "pvm"; + qts,trusted-touch-type = "primary"; + qts,trusted-touch-spi-irq = <652>; + qts,trusted-touch-io-bases = <0xa90000>; + qts,trusted-touch-io-sizes = <0x1000>; + qts,trusted-touch-vm-gpio-list = <&tlmm 48 0 &tlmm 49 0 &tlmm 50 0 + &tlmm 51 0 &tlmm 161 0 &tlmm 162 0x2008>; + }; +}; diff --git a/qcom/sun-vm-qrd.dts b/qcom/sun-vm-qrd.dts index 2a483354..92621f8c 100644 --- a/qcom/sun-vm-qrd.dts +++ b/qcom/sun-vm-qrd.dts @@ -5,7 +5,7 @@ /dts-v1/; #include "sun-vm.dtsi" -#include "sun-vm-mtp.dtsi" +#include "sun-vm-qrd.dtsi" / { model = "Qualcomm Technologies, Inc. Sun SVM QRD"; diff --git a/qcom/sun-vm-qrd.dtsi b/qcom/sun-vm-qrd.dtsi index 9d0bfe90..e4960fd8 100644 --- a/qcom/sun-vm-qrd.dtsi +++ b/qcom/sun-vm-qrd.dtsi @@ -1,6 +1,30 @@ // SPDX-License-Identifier: BSD-3-Clause /* - * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. */ &soc { }; + + +&qupv3_se4_spi { + status = "ok"; + qcom,touch-active = "st,fts"; + + st_fts@0 { + compatible = "st,fts"; + reg = <0x0>; + spi-max-frequency = <1000000>; + + st,touch-type = "primary"; + st,qts_en; + qts,trusted-touch-mode = "vm_mode"; + qts,touch-environment = "pvm"; + qts,trusted-touch-type = "primary"; + qts,trusted-touch-spi-irq = <652>; + qts,trusted-touch-io-bases = <0xa90000>; + qts,trusted-touch-io-sizes = <0x1000>; + qts,trusted-touch-vm-gpio-list = <&tlmm 48 0 &tlmm 49 0 &tlmm 50 0 + &tlmm 51 0 &tlmm 161 0 &tlmm 162 0x2008>; + + }; +};