From 5ab365a8d7664307d7aa38ffc97225c585edbabb Mon Sep 17 00:00:00 2001 From: hujing3 Date: Wed, 20 Apr 2022 13:27:51 +0800 Subject: [PATCH] arch/dts:devon 3rd focaltech touch driver bringup devon: 3rd txd + focaltech panel touch driver bringup, add init configs Change-Id: Ia851268e71bef0cfe2ae410120383dfb1a00a0d1 Signed-off-by: hujing3 Reviewed-on: https://gerrit.mot.com/2247340 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Wang Wang Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/khaje-devon-touchscreen-overlay.dtsi | 24 +++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/qcom/khaje-devon-touchscreen-overlay.dtsi b/qcom/khaje-devon-touchscreen-overlay.dtsi index 596c69cf67a5..f0a403e05475 100644 --- a/qcom/khaje-devon-touchscreen-overlay.dtsi +++ b/qcom/khaje-devon-touchscreen-overlay.dtsi @@ -100,9 +100,25 @@ status = "ok"; pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; - novatek@0{ - compatible = "novatek,NVT-ts-spi"; + + focaltech@0{ + compatible = "focaltech,fts"; reg = <0x0>; + interrupt-parent = <&tlmm>; + interrupts = <80 0x02>; + spi-max-frequency = <6000000>; + focaltech,reset-gpio = <&tlmm 86 0x01>; + focaltech,irq-gpio = <&tlmm 80 0x02>; + focaltech,max-touch-number = <10>; + focaltech,display-coords = <0 0 1080 2400>; + + focaltech,panel-supplier = "txd"; + panel = <&dsi_ft8726_txd_90hz_video>; + }; + + novatek@1{ + compatible = "novatek,NVT-ts-spi"; + reg = <0x1>; spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ novatek,reset-gpio = <&tlmm 86 0x00>; novatek,irq-gpio = <&tlmm 80 0x2001>; @@ -117,9 +133,9 @@ status = "ok"; }; - ilitek@0 { + ilitek@2 { compatible = "tchip,ilitek"; - reg = <0x1>; + reg = <0x2>; spi-max-frequency = <6000000>; interrupt-parent = <&tlmm>; interrupts = <80 0x2001>;