mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-12 01:51:34 -05:00
- Since ilitek touch will meet esd issue and need to keep int gpio in pull up state, therefore change dtsi for fixed this issue. Change-Id: I499da7069160ec7084df6d4ebd27b2d13ca945e7 Signed-off-by: wengjun1 <[email protected]> Reviewed-on: https://gerrit.mot.com/2010711 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao <[email protected]> Submit-Approved: Jira Key
138 lines
2.7 KiB
Devicetree
Executable file
138 lines
2.7 KiB
Devicetree
Executable file
/*
|
|
* 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.
|
|
*/
|
|
|
|
&tlmm {
|
|
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;
|
|
};
|
|
};
|
|
};
|
|
|
|
touch_reset_mux {
|
|
touch_reset_active: active {
|
|
mux {
|
|
pins = "gpio21";
|
|
function = "gpio";
|
|
};
|
|
config {
|
|
pins = "gpio21";
|
|
drive-strength = <8>;
|
|
bias-disable;
|
|
};
|
|
};
|
|
|
|
touch_reset_suspend: default {
|
|
mux {
|
|
pins = "gpio21";
|
|
function = "gpio";
|
|
};
|
|
config {
|
|
pins = "gpio21";
|
|
drive-strength = <2>;
|
|
bias-pull-down;
|
|
output-low;
|
|
};
|
|
};
|
|
};
|
|
|
|
ts_release_mux {
|
|
ts_release: ts_release {
|
|
mux {
|
|
pins = "gpio21", "gpio22";
|
|
function = "gpio";
|
|
};
|
|
|
|
config {
|
|
pins = "gpio21", "gpio22";
|
|
drive-strength = <2>;
|
|
bias-disable;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&qupv3_se0_i2c {
|
|
status = "disabled";
|
|
};
|
|
|
|
&qupv3_se8_i2c {
|
|
synaptics_tcm@20 {
|
|
status = "disabled";
|
|
};
|
|
};
|
|
|
|
&qupv3_se0_spi {
|
|
status = "ok"
|
|
ilitek@0 {
|
|
compatible = "tchip,ilitek";
|
|
reg = <0x0>;
|
|
spi-max-frequency = <6000000>;
|
|
interrupt-parent = <&tlmm>;
|
|
interrupts = <22 0x2008>;
|
|
panel = <&dsi_tm_ili7807s_678_fhd_video>;
|
|
touch,reset-gpio = <&tlmm 21 0x00>;
|
|
touch,irq-gpio = <&tlmm 22 0x2008>;
|
|
pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high";
|
|
pinctrl-0 = <&ts_active>;
|
|
pinctrl-1 = <&ts_int_suspend_high>;
|
|
status = "ok"
|
|
};
|
|
|
|
gcore@1 {
|
|
compatible = "gcore,touchscreen";
|
|
reg = <0x1>;
|
|
spi-max-frequency = <8000000>;
|
|
panel = <&dsi_csot_gc7372_678_fhd_video>;
|
|
gcore,rst-gpio = <&tlmm 21 0x00>;
|
|
gcore,irq-gpio = <&tlmm 22 0x2001>;
|
|
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>;
|
|
status = "ok"
|
|
};
|
|
};
|