From 550ec7bc563edddffc195df08a0799ca14b1c568 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 28 May 2020 14:45:41 +0800 Subject: [PATCH] arm/dt: Add tm ili9881x touch configs arm/dt: Add tm ili9881x touch configs. Change-Id: I8404b09c127c5ee56f18ccd8f7d49302eafdeeb9 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1584313 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bengal-borneo-touchscreen-overlay.dtsi | 47 ++++++--------------- 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/qcom/bengal-borneo-touchscreen-overlay.dtsi b/qcom/bengal-borneo-touchscreen-overlay.dtsi index 69592f6824c7..0c5e9f4f79c6 100644 --- a/qcom/bengal-borneo-touchscreen-overlay.dtsi +++ b/qcom/bengal-borneo-touchscreen-overlay.dtsi @@ -1,3 +1,7 @@ +&qupv3_se2_i2c { + status = "disabled"; +}; + &tlmm{ pmx_ts_int_active { ts_int_active: ts_int_active { @@ -102,27 +106,16 @@ &qupv3_se2_spi { status = "ok"; - qcom,spi-touch-active="himax,hxcommon"; + qcom,spi-touch-active="tchip,ilitek"; pinctrl-1 = <&qupv3_se2_spi_sleep &qupv3_se2_cs_sleep>; - himax_0flash_ts@0 { - compatible = "himax,hxcommon"; - reg = <0>; - spi-max-frequency = <10000000>; - spi-cpha; - himax,panel-coords = <0 720 0 1600>; - himax,display-coords = <0 720 0 1600>; - /* himax,touch_info = <32 18 0 720 1600 10 0 1>;*/ - himax,irq-gpio = <&tlmm 67 0x2008>; - himax,rst-gpio = <&tlmm 66 0x00>; - report_type = <1>; - interrupt-parent = <&tlmm>; - interrupts = <67 0x02>; - /* lab-supply = <&lcdb_ldo_vreg>; - ibb-supply = <&lcdb_ncp_vreg>;*/ - pinctrl-names = "pmx_ts_active","pmx_ts_suspend"; - pinctrl-0 = <&ts_int_active &ts_reset_active>; - pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; - panel = <&dsi_hlt_hx83102d_video>; + ilitek@0{ + compatible = "tchip,ilitek"; + reg = <0x0>; + poll_mode = <0>; + spi-max-frequency = <12000000>; + touch,reset-gpio = <&tlmm 66 0x00>; + touch,irq-gpio = <&tlmm 67 0x2002>; + panel = <&dsi_tm_ili9881x_video>; }; nova_0flash_ts@1 { compatible = "novatek,NVT-ts-spi"; @@ -141,18 +134,4 @@ pinctrl-0 = <&ts_int_active &ts_reset_active>; pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; }; - chipone_tddi@2 { - compatible = "chipone-tddi"; - reg = <2>; - interrupt-parent = <&tlmm>; - spi-max-frequency = <4000000>; - spi-cpha; - spi-cpol; - interrupts = <67 0x02>; - chipone,rst-gpio = <&tlmm 66 0x00>; - chipone,irq-gpio = <&tlmm 67 0x2008>; - chipone,x-res = <720>; - chipone,y-res = <1600>; - panel = <&dsi_tm_icnl9911s_video>; - }; };