From 5f6d81fd66ceab0bf5a42586eded52bc7b690343 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 2 Jul 2021 22:31:03 +0800 Subject: [PATCH] arm/dt: corfuq: add touch focaltech configs arm/dt: Add touch panel focaltech configs, rename ldo from pm6150 to pm6375. Change-Id: I42fa125f41e76d86d9443659dbab03582524d61f Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2001051 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/corfuq-touchscreen.dtsi | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 qcom/corfuq-touchscreen.dtsi diff --git a/qcom/corfuq-touchscreen.dtsi b/qcom/corfuq-touchscreen.dtsi new file mode 100755 index 000000000000..7cd21a412eb7 --- /dev/null +++ b/qcom/corfuq-touchscreen.dtsi @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se0_spi { + status = "disabled"; +}; + +&qupv3_se0_i2c { + status = "ok"; + + focaltech@38{ + compatible = "focaltech,fts"; + reg = <0x38>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + focaltech,reset-gpio = <&tlmm 21 0x00>; + focaltech,irq-gpio = <&tlmm 22 0x2008>; + focaltech,max-touch-number = <10>; + focaltech,display-coords = <0 0 1080 2400>; + vdd-supply = <&L22A>; + 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>; + panel = <&dsi_vtdr6110c_visionox_video>; + + /* touchscreen_mmi class entries*/ + mmi,usb-charger-detection; + mmi,class-entry-name = "ft3519"; + }; +};