From ef0a83d7834bdc1e5a146f4f237382ae754150af Mon Sep 17 00:00:00 2001 From: houdz1 Date: Sun, 27 Sep 2020 16:39:18 +0800 Subject: [PATCH] dts/panel: add the dts file for denver's touchscreen dts/panel: add the dts file for denver's touchscreen Change-Id: Id87183f8d49490c0cf4f023944e3508616ded330 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1761134 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Jun Weng --- qcom/denver-touchscreen.dtsi | 90 ++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100755 qcom/denver-touchscreen.dtsi diff --git a/qcom/denver-touchscreen.dtsi b/qcom/denver-touchscreen.dtsi new file mode 100755 index 000000000000..68dc270e83ec --- /dev/null +++ b/qcom/denver-touchscreen.dtsi @@ -0,0 +1,90 @@ +/* + * 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_i2c { + status = "disabled"; +}; + +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + 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 = "qup00"; + }; + + 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>; + bias-pull-up; + }; + }; +}; + +&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 21 0x00>; + novatek,irq-gpio = <&tlmm 22 0x2001>; + novatek,def-max-resolution = <1080 2400>; + novatek,swrst-n8-addr = <0x03F0FE>; + novatek,spi-rd-fast-addr = <0x03F310>; + novatek,report_gesture_key; + panel = <&dsi_nt36675_auo_video>; + status = "ok"; + }; + +};