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