Skip to content
Snippets Groups Projects
Commit 1321a078 authored by Jianhua Lu's avatar Jianhua Lu
Browse files

arm64: dts: qcom: sm8250-xiaomi-elish: enable touchscreen

parent e688cbce
No related branches found
No related tags found
No related merge requests found
......@@ -16,3 +16,8 @@ &display_panel {
compatible = "xiaomi,elish-boe-nt36523", "novatek,nt36523";
status = "okay";
};
&touchscreen {
firmware-name = "novatek/nt36523-boe.bin";
status = "okay";
};
......@@ -766,6 +766,16 @@ &pon_resin {
status = "okay";
};
&qup_spi4_cs_gpio {
drive-strength = <6>;
bias-disable;
};
&qup_spi4_data_clk {
drive-strength = <6>;
bias-disable;
};
&qupv3_id_0 {
status = "okay";
};
......@@ -783,6 +793,28 @@ &slpi {
status = "okay";
};
&spi4 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&qup_spi4_data_clk &qup_spi4_cs_gpio>;
cs-gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
touchscreen: touchscreen@0 {
compatible = "novatek,NVT-ts-spi";
reg = <0>; //Same as CS ID
status = "disabled";
spi-max-frequency = <19200000>; //4800000,9600000,15000000,19200000
novatek,irq-gpio = <&tlmm 39 0x2001>;
novatek,pen-support;
novatek,wgp-stylus;
/* 523 */
novatek,swrst-n8-addr = <0x03F0FE>;
novatek,spi-rd-fast-addr = <0x03F310>;
};
};
&tlmm {
gpio-reserved-ranges = <40 4>;
......
......@@ -16,3 +16,8 @@ &display_panel {
compatible = "xiaomi,elish-csot-nt36523", "novatek,nt36523";
status = "okay";
};
&touchscreen {
firmware-name = "novatek/nt36523-csot.bin";
status = "okay";
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment