From cd834bf9d1936cbd4c9455af1e257e2ebf8d1368 Mon Sep 17 00:00:00 2001 From: wingte49 Date: Fri, 21 Jan 2022 21:42:18 +0800 Subject: [PATCH] dts/rhodec: Bringup touch TXD ILI7807S - Add panel name dsi_txd_ili7807s_678_fhd_video for compatible with tongxingda panel. Change-Id: I5e44c474bf7d71bda7f55797f85479d9c234a6d0 Reviewed-on: https://gerrit.mot.com/2176649 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodec-touchscreen.dtsi | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/qcom/rhodec-touchscreen.dtsi b/qcom/rhodec-touchscreen.dtsi index eefce25d3c43..61202dfb3c67 100755 --- a/qcom/rhodec-touchscreen.dtsi +++ b/qcom/rhodec-touchscreen.dtsi @@ -67,6 +67,45 @@ bias-bus-hold; }; }; + touch_int_mux { + touch_int_active: active { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <8>; + bias-pull-up; + }; + }; + + touch_int_suspend: default { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; + + pmx_ts_int_suspend_high { + ts_int_suspend_high: ts_int_suspend_high { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-pull-up; + }; + }; + }; }; &qupv3_se0_spi { @@ -88,4 +127,19 @@ panel = <&dsi_nt36672c_fhd_plus_120_video>; status = "ok"; }; + ilitek@0 { + compatible = "tchip,ilitek"; + reg = <0x1>; + spi-max-frequency = <6000000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2001>; + panel = <&dsi_ili7807s_fhd_plus_120_video>; + mmi,status = "/chosen","mmi,panel_name","contains","ili7807s"; + touch,reset-gpio = <&tlmm 21 0x00>; + touch,irq-gpio = <&tlmm 22 0x2001>; + pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; + pinctrl-3 = <&ts_active>; + pinctrl-4 = <&ts_int_suspend_high>; + status = "ok"; + }; };