diff --git a/qcom/khaje-rhode-common-overlay.dtsi b/qcom/khaje-rhode-common-overlay.dtsi index fe336834a4d5..ded6d129f522 100644 --- a/qcom/khaje-rhode-common-overlay.dtsi +++ b/qcom/khaje-rhode-common-overlay.dtsi @@ -14,6 +14,7 @@ #include "khaje-moto-common-overlay.dtsi" #include "khaje-rhode-display.dtsi" #include "khaje-rhode-fps-overlay_evb.dtsi" +#include "khaje-rhode-touchscreen-overlay.dtsi" &firmware { android { @@ -31,4 +32,4 @@ <16>, <17>; }; -}; \ No newline at end of file +}; diff --git a/qcom/khaje-rhode-touchscreen-overlay.dtsi b/qcom/khaje-rhode-touchscreen-overlay.dtsi new file mode 100644 index 000000000000..e7bf546d702c --- /dev/null +++ b/qcom/khaje-rhode-touchscreen-overlay.dtsi @@ -0,0 +1,98 @@ +&tlmm{ + pmx_ts_active { + ts_active: ts_active { + mux { + pins = "gpio69", "gpio86"; + function = "gpio"; + }; + + config { + pins = "gpio69", "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 = "gpio69"; + function = "gpio"; + }; + + config { + pins = "gpio69"; + drive-strength = <2>; + bias-pull-down; + }; + }; + }; + + pmx_ts_release { + ts_release: ts_release { + mux { + pins = "gpio69", "gpio86"; + function = "gpio"; + }; + + config { + pins = "gpio69", "gpio86"; + drive-strength = <2>; + bias-disable; + }; + }; + }; +}; + +&qupv3_se2_i2c { + status = "disabled"; +}; + +&qupv3_se2_spi { + #address-cells = <1>; + #size-cells = <0>; + + status = "ok"; + + goodix-berlin@0 { + status = "ok"; + compatible = "goodix,gt9916S"; + reg = <0>; + spi-max-frequency = <1000000>; + mmi,status = "/chosen","mmi,panel_name","contains","nt37701"; + + goodix,avdd-gpio = <&pm6125_gpios 1 GPIO_ACTIVE_LOW>; + goodix,reset-gpio = <&tlmm 86 0x0>; + goodix,irq-gpio = <&tlmm 69 0x2002>; + goodix,irq-flags = <0x2002>; /* 1:trigger rising, 2:trigger falling;*/ + goodix,panel-max-id = <10>; + goodix,panel-max-x = <1080>; + goodix,panel-max-y = <2400>; + goodix,panel-max-w = <255>; + goodix,panel-max-p = <4096>; + //panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 + // &mot_tm_nt37701_655_1080x2400_dsc_cmd_v0>; + 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 = <&ts_release>; + mmi,power-off-suspend; + }; +}; +