linux/SM8550: add touchscreen driver for AYANEO Pocket DMG

This commit is contained in:
spycat88
2025-09-04 21:35:06 +01:00
parent 74649b9f56
commit 0cb702bfbb
3 changed files with 20653 additions and 3 deletions

View File

@@ -2740,6 +2740,7 @@ CONFIG_INPUT_TOUCHSCREEN=y
# CONFIG_TOUCHSCREEN_HIDEEP is not set
# CONFIG_TOUCHSCREEN_HYCON_HY46XX is not set
CONFIG_TOUCHSCREEN_HYNITRON_CSTXXX=y
CONFIG_TOUCHSCREEN_HYNITRON_ALL=y
# CONFIG_TOUCHSCREEN_ILI210X is not set
# CONFIG_TOUCHSCREEN_ILITEK is not set
# CONFIG_TOUCHSCREEN_S6SY761 is not set

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +1,10 @@
diff --git a/arch/arm64/boot/dts/qcom/qcs8550-ayaneo-pocketdmg.dts b/arch/arm64/boot/dts/qcom/qcs8550-ayaneo-pocketdmg.dts
new file mode 100644
index 000000000000..e4e7e4138a15
index 000000000000..845a7cf600e2
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/qcs8550-ayaneo-pocketdmg.dts
@@ -0,0 +1,93 @@
+// SPDX-License-Identifier: BSD-3-Clause
@@ -0,0 +1,149 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (c) 2025, ROCKNIX (https://github.com/ROCKNIX)
+ */
@@ -67,6 +67,34 @@ index 000000000000..e4e7e4138a15
+ bias-disable;
+ output-high;
+ };
+
+ ts_int_active: ts-int-active-state {
+ pins = "gpio25";
+ function = "gpio";
+ drive-strength = <8>;
+ bias-pull-up;
+ };
+
+ ts_reset_active: ts-reset-active-state {
+ pins = "gpio24";
+ function = "gpio";
+ drive-strength = <8>;
+ bias-pull-up;
+ };
+
+ ts_int_suspend: ts-int-suspend-state {
+ pins = "gpio25";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-down;
+ };
+
+ ts_reset_suspend: ts-reset-suspend-state {
+ pins = "gpio24";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-down;
+ };
+};
+
+&i2c0 {
@@ -86,6 +114,34 @@ index 000000000000..e4e7e4138a15
+ };
+};
+
+&i2c4 {
+ status = "okay";
+ clock-frequency = <400000>;
+
+ hynitron@5a {
+ compatible = "hyn,66xx";
+ reg = <0x5a>;
+
+ vdd_ana;
+ vdd_ana-supply = <&vreg_l14b_3p2>;
+
+ interrupt-parent = <&tlmm>;
+ interrupts = <25 0x02>;
+ reset-gpio = <&tlmm 24 0x01>;
+ irq-gpio = <&tlmm 25 0x02>;
+
+ pinctrl-names = "ts_active","ts_suspend";
+ pinctrl-0 = <&ts_int_active &ts_reset_active>;
+ pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
+
+ max-touch-number = <5>;
+ display-coords = <0 0 1080 1240>;
+ pos-swap = <1>;
+ posx-reverse = <0>;
+ posy-reverse = <0>;
+ };
+};
+
+&display_panel {
+ compatible = "ayaneo,pocket-dmg-panel";
+