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"; + }; };