Files
android_kernel_motorola_sm6225/qcom/bengal-cebu-touchscreen-overlay.dtsi
T
hujing3 046b1c4c2e arm/dts: cebu tp spi miso update
Cebu: Focaltech TP SPI config
keep pull down for miso

Change-Id: Ic2d502990dfd004859a24cdcaf5685f6dbb56929
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1712005
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-05-31 17:01:01 -03:00

200 lines
3.8 KiB
Devicetree

&qupv3_se2_i2c {
status = "disabled";
};
&tlmm{
pmx_ts_int_active {
ts_int_active: ts_int_active {
mux {
pins = "gpio67";
function = "gpio";
};
config {
pins = "gpio67";
drive-strength = <8>;
bias-pull-up;
};
};
};
pmx_ts_int_suspend {
ts_int_suspend: ts_int_suspend {
mux {
pins = "gpio67";
function = "gpio";
};
config {
pins = "gpio67";
drive-strength = <2>;
bias-disable;
};
};
};
pmx_ts_reset_active {
ts_reset_active: ts_reset_active {
mux {
pins = "gpio66";
function = "gpio";
};
config {
pins = "gpio66";
drive-strength = <8>;
bias-pull-up;
};
};
};
pmx_ts_reset_suspend {
ts_reset_suspend: ts_reset_suspend {
mux {
pins = "gpio66";
function = "gpio";
};
config {
pins = "gpio66";
drive-strength = <2>;
bias-pull-down;
};
};
};
pmx_ts_release {
ts_release: ts_release {
mux {
pins = "gpio67", "gpio66";
function = "gpio";
};
config {
pins = "gpio67", "gpio66";
drive-strength = <2>;
bias-pull-down;
};
};
};
};
&qupv3_se0_spi_pins {
qupv3_se0_spi_active: qupv3_se0_spi_active {
mux {
pins = "gpio1", "gpio2", "gpio3";
function = "qup0";
};
config {
pins = "gpio1", "gpio2", "gpio3";
drive-strength = <6>;
bias-disable;
};
};
qupv3_se0_spi_miso_active: qupv3_se0_spi_miso_active {
mux {
pins = "gpio0";
function = "qup0";
};
config {
pins = "gpio0";
drive-strength = <6>;
bias-pull-down;
};
};
qupv3_se0_spi_sleep: qupv3_se0_spi_sleep {
mux {
pins = "gpio1", "gpio2";
function = "gpio";
};
config {
pins = "gpio1", "gpio2";
drive-strength = <6>;
bias-disable;
};
};
qupv3_se0_spi_miso_sleep: qupv3_se0_spi_miso_sleep {
mux {
pins = "gpio0";
function = "gpio";
};
config {
pins = "gpio0";
drive-strength = <6>;
bias-pull-down;
};
};
qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep {
mux {
pins = "gpio3";
function = "gpio";
};
config {
pins = "gpio3";
drive-strength = <6>;
bias-pull-up;
output-high;
};
};
};
&qupv3_se0_spi {
status = "ok"
pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_miso_active>;
pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep &qupv3_se0_spi_miso_sleep>;
focaltech@0 {
compatible = "focaltech,fts";
reg = <0>;
interrupt-parent = <&tlmm>;
interrupts = <67 0x02>;
spi-max-frequency=<8000000>;
focaltech,always_on_vio;
focaltech,share_reset_gpio;
focaltech,reset-gpio = <&tlmm 66 0x01>;
focaltech,irq-gpio = <&tlmm 67 0x02>;
focaltech,max-touch-number = <10>;
focaltech,display-coords = <0 0 720 1640>;
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>;
focaltech,name = "ft8006ss_aa";
focaltech,panel-supplier = "dsbj";
focaltech,dlfw_in_resume;
panel = <&dsi_dsbj_ft8006s_video>;
/*
focaltech,have-key;
focaltech,key-number = <3>;
focaltech,keys = <139 102 158>;
focaltech,key-x-coords = <200 600 800>;
focaltech,key-y-coords = <2000 2000 2000>;
*/
};
nova_0flash_ts@1 {
compatible = "novatek,NVT-ts-spi";
reg = <1>;
spi-max-frequency = <9600000>;
novatek,swrst-n8-addr = <0x03F0FE>;
novatek,spi-rd-fast-addr = <0x03F310>;
spi-cpha;
novatek,irq-gpio = <&tlmm 67 0x2001>;
novatek,reset-gpio = <&tlmm 66 0x00>;
report_type = <1>;
novatek,def-max-resolution = <720 1640>;
interrupt-parent = <&tlmm>;
interrupts = <67 0x02>;
pinctrl-names = "pmx_ts_active","pmx_ts_suspend";
pinctrl-0 = <&ts_int_active &ts_reset_active>;
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
};
};