From 7fdefdd1a231d59e1bb3f463f258f5e92225b54a Mon Sep 17 00:00:00 2001 From: Fei Mao Date: Tue, 4 Feb 2020 22:26:15 +0800 Subject: [PATCH] ARM: dts: msm: Add dt node for Focaltech touch IC Add new touch IC device tree node for QRD Lahaina device. Change-Id: I100bd6b0bf16a4987cd8e6afc754b98269a91b2e --- qcom/lahaina-qrd.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/qcom/lahaina-qrd.dtsi b/qcom/lahaina-qrd.dtsi index 29d7d6ee9976..4390b6be1db7 100644 --- a/qcom/lahaina-qrd.dtsi +++ b/qcom/lahaina-qrd.dtsi @@ -12,3 +12,32 @@ &usb_qmp_phy { status = "disabled"; }; + +&qupv3_se4_i2c { + #address-cells = <1>; + #size-cells = <0>; + + status = "ok"; + qcom,i2c-touch-active = "focaltech,fts_ts"; + + focaltech@38 { + compatible = "focaltech,fts_ts"; + reg = <0x38>; + interrupt-parent = <&tlmm>; + interrupts = <23 0x2008>; + focaltech,reset-gpio = <&tlmm 22 0x00>; + focaltech,irq-gpio = <&tlmm 23 0x2008>; + focaltech,max-touch-number = <5>; + focaltech,display-coords = <0 0 1080 2340>; + + vdd-supply = <&L3C>; + + 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 = <&ts_release>; + + panel = <&dsi_r66451_amoled_cmd + &dsi_r66451_amoled_video>; + }; +};