From fc5da81b5b96c09476f5e1f93976224850ca1c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Tonn=C3=A4tt?= Date: Sun, 30 Jul 2023 15:01:00 -0700 Subject: [PATCH] xiaomi-daisy: add goodix gt917d touchscreen --- .../boot/dts/qcom/msm8953-xiaomi-common.dtsi | 19 +++++++++++++++++++ .../boot/dts/qcom/msm8953-xiaomi-daisy.dts | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-common.dtsi b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-common.dtsi index 8647eebb833d32..088cf621e4f43e 100644 --- a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-common.dtsi @@ -170,6 +170,25 @@ status = "disabled"; }; + + gt917d_ts: touchscreen@5d { + compatible = "goodix,gt917d"; + reg = <0x5d>; + + interrupt-parent = <&tlmm>; + interrupts = <65 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&ts_reset_active &ts_int_active>; + pinctrl-1 = <&ts_reset_suspend &ts_int_suspend>; + + reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>; + + VDDIO-supply = <&pm8953_l6>; + AVDD28-supply = <&pm8953_l10>; + + status = "disabled"; + }; }; &lpass { diff --git a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-daisy.dts b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-daisy.dts index 212639f30a9ceb..b134ded41d2f21 100644 --- a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-daisy.dts +++ b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-daisy.dts @@ -94,7 +94,7 @@ reset-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>; }; -&ft5406_ts { +>917d_ts { status = "okay"; touchscreen-size-x = <1080>;