diff --git a/qcom/tuna-cdp.dtsi b/qcom/tuna-cdp.dtsi index 9df4770a..28e33b9d 100644 --- a/qcom/tuna-cdp.dtsi +++ b/qcom/tuna-cdp.dtsi @@ -2,3 +2,39 @@ /* * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. */ + +&qupv3_se4_i2c { + #address-cells = <1>; + #size-cells = <0>; + + status = "ok"; + qcom,touch-active = "st,fts"; + + st_fts@49 { + compatible = "st,fts"; + reg = <0x49>; + interrupt-parent = <&tlmm>; + interrupts = <176 0x2008>; + vdd-supply = <&L1D>; + avdd-supply = <&L22B>; + pinctrl-names = "pmx_ts_active", "pmx_ts_suspend"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + st,irq-gpio = <&tlmm 176 0x2008>; + st,irq-flags = <8>; + st,reset-gpio = <&tlmm 189 0x00>; + st,regulator_dvdd = "vdd"; + st,regulator_avdd = "avdd"; + + st,touch-type = "primary"; + st,qts_en; + qts,trusted-touch-mode = "vm_mode"; + qts,touch-environment = "pvm"; + qts,trusted-touch-type = "primary"; + qts,trusted-touch-spi-irq = <658>; + qts,trusted-touch-io-bases = <0xa90000>; + qts,trusted-touch-io-sizes = <0x1000>; + qts,trusted-touch-vm-gpio-list = <&tlmm 16 0 &tlmm 17 0 &tlmm 18 0 + &tlmm 19 0 &tlmm 189 0 &tlmm 176 0x2008>; + }; +}; diff --git a/qcom/tuna-mtp.dtsi b/qcom/tuna-mtp.dtsi index 9df4770a..947b1af1 100644 --- a/qcom/tuna-mtp.dtsi +++ b/qcom/tuna-mtp.dtsi @@ -2,3 +2,39 @@ /* * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. */ +&qupv3_se4_i2c { + #address-cells = <1>; + #size-cells = <0>; + + status = "ok"; + qcom,touch-active = "st,fts"; + + st_fts@49 { + compatible = "st,fts"; + reg = <0x49>; + interrupt-parent = <&tlmm>; + interrupts = <176 0x2008>; + vdd-supply = <&L1D>; + avdd-supply = <&L22B>; + pinctrl-names = "pmx_ts_active", "pmx_ts_suspend"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + st,irq-gpio = <&tlmm 176 0x2008>; + st,irq-flags = <8>; + st,reset-gpio = <&tlmm 189 0x00>; + st,regulator_dvdd = "vdd"; + st,regulator_avdd = "avdd"; + + st,touch-type = "primary"; + st,qts_en; + qts,trusted-touch-mode = "vm_mode"; + qts,touch-environment = "pvm"; + qts,trusted-touch-type = "primary"; + qts,trusted-touch-spi-irq = <658>; + qts,trusted-touch-io-bases = <0xa90000>; + qts,trusted-touch-io-sizes = <0x1000>; + qts,trusted-touch-vm-gpio-list = <&tlmm 16 0 &tlmm 17 0 &tlmm 18 0 + &tlmm 19 0 &tlmm 189 0 &tlmm 176 0x2008>; + }; +}; + diff --git a/qcom/tuna-pinctrl.dtsi b/qcom/tuna-pinctrl.dtsi index cfd44251..8c3ca7ff 100644 --- a/qcom/tuna-pinctrl.dtsi +++ b/qcom/tuna-pinctrl.dtsi @@ -1638,4 +1638,66 @@ drive-strength = <2>; }; }; + /* touchscreen pins */ + + pmx_ts_active { + ts_active: ts_active { + mux { + pins = "gpio189", "gpio176"; + function = "gpio"; + }; + + config { + pins = "gpio189", "gpio176"; + drive-strength = <8>; + bias-pull-up; + }; + }; + }; + + pmx_ts_reset_suspend { + ts_reset_suspend: ts_reset_suspend { + mux { + pins = "gpio189"; + function = "gpio"; + }; + + config { + pins = "gpio189"; + drive-strength = <2>; + bias-pull-down; + }; + }; + }; + + pmx_ts_int_suspend { + ts_int_suspend: ts_int_suspend { + mux { + pins = "gpio176"; + function = "gpio"; + }; + + config { + pins = "gpio176"; + drive-strength = <2>; + bias-pull-down; + }; + }; + }; + + pmx_ts_release { + ts_release: ts_release { + mux { + pins = "gpio189", "gpio176"; + function = "gpio"; + }; + + config { + pins = "gpio189", "gpio176"; + drive-strength = <2>; + bias-disable; + }; + }; + }; + }; diff --git a/qcom/tuna-qrd.dtsi b/qcom/tuna-qrd.dtsi index 9df4770a..535e2a31 100644 --- a/qcom/tuna-qrd.dtsi +++ b/qcom/tuna-qrd.dtsi @@ -2,3 +2,42 @@ /* * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. */ + +&qupv3_se4_spi { + #address-cells = <1>; + #size-cells = <0>; + status = "ok"; + qcom,touch-active = "st,fts"; + qcom,la-vm; + + st_fts@0 { + compatible = "st,fts"; + reg = <0x0>; + spi-max-frequency = <1000000>; + + interrupt-parent = <&tlmm>; + interrupts = <176 0x2008>; + vdd-supply = <&L1D>; + avdd-supply = <&L22B>; + pinctrl-names = "pmx_ts_active", "pmx_ts_suspend"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + st,irq-gpio = <&tlmm 176 0x2008>; + st,irq-flags = <8>; + st,reset-gpio = <&tlmm 189 0x00>; + st,regulator_dvdd = "vdd"; + st,regulator_avdd = "avdd"; + + st,touch-type = "primary"; + st,qts_en; + qts,trusted-touch-mode = "vm_mode"; + qts,touch-environment = "pvm"; + qts,trusted-touch-type = "primary"; + qts,trusted-touch-spi-irq = <658>; + qts,trusted-touch-io-bases = <0xa90000>; + qts,trusted-touch-io-sizes = <0x1000>; + qts,trusted-touch-vm-gpio-list = <&tlmm 16 0 &tlmm 17 0 &tlmm 18 0 + &tlmm 19 0 &tlmm 189 0 &tlmm 176 0x2008>; + + }; +};