kernel/dts: devon nvt & ilitek touch driver bringup

devon: 1st NVT & 2nd txd
NVT & ilitek touch driver bringup

Change-Id: Ifa1a9da4b11bc71761739030c17703ce97dc3431
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2214746
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
hujing3 authored and Carlos Pinho committed 2023-05-31 17:01:05 -03:00
1 parent a8428bcaf9
commit d4ee20e77a
1 file changed
+127 -86
+127 -86
View File
@@ -1,99 +1,140 @@
&tlmm{
pmx_ts_active {
ts_active: ts_active {
mux {
pins = "gpio80", "gpio86";
function = "gpio";
};
config {
pins = "gpio80", "gpio86";
drive-strength = <8>;
bias-pull-up;
};
};
};
pmx_ts_reset_suspend {
ts_reset_suspend: ts_reset_suspend {
mux {
pins = "gpio86";
function = "gpio";
};
config {
pins = "gpio86";
drive-strength = <2>;
bias-pull-down;
};
};
};
pmx_ts_int_suspend {
ts_int_suspend: ts_int_suspend {
mux {
pins = "gpio80";
function = "gpio";
};
config {
pins = "gpio80";
drive-strength = <2>;
bias-pull-down;
};
};
};
pmx_ts_release {
ts_release: ts_release {
mux {
pins = "gpio80", "gpio86";
function = "gpio";
};
config {
pins = "gpio80", "gpio86";
drive-strength = <2>;
bias-disable;
};
};
};
&qupv3_se0_i2c {
status = "disabled";
};
&qupv3_se2_i2c {
status = "okay";
focaltech@38{
compatible = "focaltech,fts";
reg = <0x38>;
interrupt-parent = <&tlmm>;
interrupts = <80 0x02>;
focaltech,reset-gpio = <&tlmm 86 0x01>;
focaltech,irq-gpio = <&tlmm 80 0x02>;
focaltech,max-touch-number = <10>;
focaltech,display-coords = <0 0 1080 2400>;
focaltech,panel-supplier = "visionox";
&qupv3_se0_spi_pins {
qupv3_se0_spi_active: qupv3_se0_spi_active {
mux {
pins = "gpio0", "gpio1", "gpio2";
function = "qup0";
};
pinctrl-names = "pmx_ts_active","pmx_ts_suspend","pmx_ts_release";
pinctrl-0 = <&ts_int_active &ts_reset_active>;
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
pinctrl-2 = <&ts_release>;
config {
pins = "gpio0", "gpio1", "gpio2";
drive-strength = <6>;
bias-disable;
};
};
//panel = <&dsi_vtdr6110c_visionox_ft3519_643_video>;
//touchscreen_mmi
mmi,status = "/chosen","mmi,panel_name","contains","ft3519"
mmi,class-entry-name = "ft3519";
mmi,reset-on-resume = <0x01>;
mmi,enable-gestures;
mmi,usb-charger-detection;
qupv3_se0_spi_sleep: qupv3_se0_spi_sleep {
mux {
pins = "gpio0", "gpio1", "gpio2";
function = "gpio";
};
config {
pins = "gpio0", "gpio1", "gpio2";
drive-strength = <6>;
bias-disable;
};
};
qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active {
mux {
pins = "gpio3";
function = "qup0";
};
config {
pins = "gpio3";
drive-strength = <6>;
bias-disable;
};
};
qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep {
mux {
pins = "gpio3";
function = "gpio";
};
config {
pins = "gpio3";
drive-strength = <6>;
output-high;
};
};
touch_int_mux {
touch_int_active: active {
mux {
pins = "gpio80";
function = "gpio";
};
config {
pins = "gpio80";
drive-strength = <8>;
bias-pull-up;
};
};
touch_int_suspend: default {
mux {
pins = "gpio80";
function = "gpio";
};
config {
pins = "gpio80";
drive-strength = <2>;
bias-disable;
};
};
};
pmx_ts_int_suspend_high {
ts_int_suspend_high: ts_int_suspend_high {
mux {
pins = "gpio80";
function = "gpio";
};
config {
pins = "gpio80";
drive-strength = <2>;
bias-pull-up;
};
};
};
};
&qupv3_se2_spi {
#address-cells = <1>;
#size-cells = <0>;
&qupv3_se0_spi {
status = "ok"
pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>;
pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>;
novatek@0{
compatible = "novatek,NVT-ts-spi";
reg = <0x0>;
spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */
novatek,reset-gpio = <&tlmm 86 0x00>;
novatek,irq-gpio = <&tlmm 80 0x2001>;
novatek,def-max-resolution = <1080 2400>;
novatek,swrst-n8-addr = <0x03F0FE>;
novatek,spi-rd-fast-addr = <0x03F310>;
spi-cpha;
novatek,report_gesture_key;
novatek,usb_charger;
novatek,panel-supplier = "tm";
panel = <&dsi_tm_nt36672c_fhd_plus_90_video>;
status = "ok"
};
status = "disabled";
ilitek@0 {
compatible = "tchip,ilitek";
reg = <0x1>;
spi-max-frequency = <6000000>;
interrupt-parent = <&tlmm>;
interrupts = <80 0x2001>;
spi-cpha;
spi-cpol;
panel = <&dsi_txd_ili7807s_fhd_plus_90_video>;
mmi,status = "/chosen","mmi,panel_name","contains","ili7807s"
touch,reset-gpio = <&tlmm 86 0x00>;
touch,irq-gpio = <&tlmm 80 0x2001>;
pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high";
pinctrl-3 = <&ts_int_active>;
pinctrl-4 = <&ts_int_suspend_high>;
ilitek,report_gesture_key;
status = "ok"
};
};