From fceaf387c8191f3c52a7f20c11f63a6a20baa3d4 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Fri, 5 Nov 2021 16:19:16 +0800 Subject: [PATCH] rhodep: arm64/dts: gt9916s bringup - Add initial gt9916a dts config. - Compitable with csot and tianma panel. Change-Id: I7277dc8ad67a8c9eea6264983f015fbf302e4153 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2108639 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Hujun Liao Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodep-touchscreen.dtsi | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/qcom/rhodep-touchscreen.dtsi b/qcom/rhodep-touchscreen.dtsi index b384e8cb0171..18b0b3da96e9 100755 --- a/qcom/rhodep-touchscreen.dtsi +++ b/qcom/rhodep-touchscreen.dtsi @@ -73,19 +73,27 @@ 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"; - reg = <0x0>; - spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ - novatek,reset-gpio = <&tlmm 21 0x00>; - novatek,irq-gpio = <&tlmm 22 0x2001>; - novatek,def-max-resolution = <1080 2460>; - novatek,swrst-n8-addr = <0x03F0FE>; - novatek,spi-rd-fast-addr = <0x03F310>; - novatek,report_gesture_key; - novatek,usb_charger; - panel = <&dsi_tm_nt36672e_678_fhdp_120_video>; - status = "ok"; - }; + goodix_ts_spi@0 { + status = "ok"; + compatible = "goodix,gt9916S"; + reg = <0x0>; + mmi,status = "/chosen","mmi,panel_name","contains","nt37701"; + spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ + goodix,reset-gpio = <&tlmm 21 0x0>; + goodix,irq-gpio = <&tlmm 22 0x2002>; + goodix,avdd-gpio = <&tlmm 92 0x0>; + goodix,irq-flags = <0x2002>; /* 1:trigger rising, 2:trigger falling;*/ + goodix,panel-max-id = <10>; + goodix,panel-max-x = <1080>; + goodix,panel-max-y = <2400>; + goodix,panel-max-w = <255>; + goodix,panel-max-p = <4096>; + panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 + &mot_tm_nt37701_655_1080x2400_dsc_cmd_v0>; + pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + }; };