From: Petr Hodina <[email protected]> Basic touchscreen connected to second i2c bus.
Signed-off-by: Petr Hodina <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Co-developed-by: David Heidelberg <[email protected]> Signed-off-by: David Heidelberg <[email protected]> --- arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts | 19 ++++++++++++++++++- arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts b/arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts index fa89be500fb85..8fb988130b551 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts @@ -26,7 +26,24 @@ &i2c2 { status = "okay"; - /* ST,FTS @ 49 */ + touchscreen@49 { + compatible = "st,stmfts5"; + reg = <0x49>; + + pinctrl-0 = <&touchscreen_irq_n>, <&touchscreen_reset>; + pinctrl-names = "default"; + + interrupts-extended = <&tlmm 125 IRQ_TYPE_LEVEL_LOW>; + + mode-switch-gpios = <&tlmm 136 GPIO_ACTIVE_HIGH>; + reset-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>; + + avdd-supply = <&vreg_l14a_1p8>; + vdd-supply = <&vreg_l19a_3p3>; + + touchscreen-size-x = <1080>; + touchscreen-size-y = <2160>; + }; }; &mdss_dsi0 { diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi index 6930066857768..4653c63ec26d2 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi @@ -466,7 +466,7 @@ touchscreen_reset: ts-reset-state { bias-pull-up; }; - touchscreen_pins: ts-pins-gpio-state { + touchscreen_irq_n: ts-irq-n-gpio-state { pins = "gpio125"; function = "gpio"; drive-strength = <2>; -- 2.53.0

