Files
android_kernel_motorola_sm6225/qcom/bengal-borneo-touchscreen-overlay.dtsi
T
wangyq13 8f97afe355 arm/dt: borneo: add touch int pinctrl status
arm/dt:
Add touch int pinctrl status for Borneo ilitek touch panel.
Set it to pull up as default.

Change-Id: I79c498396c2573406613b2f852b463fb16d05af9
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1664280
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
2023-05-31 17:01:01 -03:00

154 lines
3.1 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;
};
};
};
ts_int_pull_up: ts_int_pull_up {
mux {
pins = "gpio67";
function = "gpio";
};
config {
pins = "gpio67";
drive-strength = <6>;
input-enable;
bias-pull-up;
};
};
};
&qupv3_se2_spi_pins {
qupv3_se2_spi_sleep: qupv3_se2_spi_sleep {
mux {
pins = "gpio6", "gpio7","gpio71";
function = "gpio";
};
config {
pins = "gpio6", "gpio7","gpio71";
drive-strength = <6>;
bias-disable;
};
};
qupv3_se2_cs_sleep: qupv3_se2_cs_sleep {
mux {
pins = "gpio80";
function = "gpio";
};
config {
pins = "gpio80";
drive-strength = <6>;
bias-pull-up;
};
};
};
&qupv3_se2_spi {
status = "ok"
qcom,spi-touch-active="tchip,ilitek";
pinctrl-1 = <&qupv3_se2_spi_sleep &qupv3_se2_cs_sleep>;
ilitek@0{
compatible = "tchip,ilitek";
reg = <0x0>;
poll_mode = <0>;
spi-max-frequency = <12000000>;
touch,reset-gpio = <&tlmm 66 0x00>;
touch,irq-gpio = <&tlmm 67 0x2002>;
pinctrl-names = "default";
pinctrl-0 = <&ts_int_pull_up>;
ilitek,report_gesture_key;
panel = <&dsi_tm_ili9881x_video>;
};
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 0x2008>;
novatek,reset-gpio = <&tlmm 66 0x00>;
report_type = <1>;
novatek,report_gesture_key;
novatek,def-max-resolution = <720 1600>;
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>;
};
};