From 761f49b3778403f4fd8db40338fe5afeaf3f6cd2 Mon Sep 17 00:00:00 2001 From: tiopex Date: Mon, 1 Sep 2025 07:28:38 +0200 Subject: [PATCH] SM8550: Ayaneo EVO enable touchscreen --- ...64--dts--qcom--Add-AYANEO-Pocket-EVO.patch | 76 +++++++++++++++++-- 1 file changed, 71 insertions(+), 5 deletions(-) diff --git a/projects/ROCKNIX/devices/SM8550/patches/linux/0213_arm64--dts--qcom--Add-AYANEO-Pocket-EVO.patch b/projects/ROCKNIX/devices/SM8550/patches/linux/0213_arm64--dts--qcom--Add-AYANEO-Pocket-EVO.patch index 908e470c34..d792894999 100644 --- a/projects/ROCKNIX/devices/SM8550/patches/linux/0213_arm64--dts--qcom--Add-AYANEO-Pocket-EVO.patch +++ b/projects/ROCKNIX/devices/SM8550/patches/linux/0213_arm64--dts--qcom--Add-AYANEO-Pocket-EVO.patch @@ -1,9 +1,9 @@ diff --git a/arch/arm64/boot/dts/qcom/qcs8550-ayaneo-pocketevo.dts b/arch/arm64/boot/dts/qcom/qcs8550-ayaneo-pocketevo.dts new file mode 100644 -index 000000000..2dd554820 +index 000000000..a1964367a --- /dev/null +++ b/arch/arm64/boot/dts/qcom/qcs8550-ayaneo-pocketevo.dts -@@ -0,0 +1,32 @@ +@@ -0,0 +1,98 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2025, Teguh Sobirin. @@ -21,11 +21,77 @@ index 000000000..2dd554820 + compatible = "ayaneo,pocketevo", "qcom,qcs8550", "qcom,sm8550"; +}; + -+&i2c0 { -+ clock-frequency = <400000>; -+ status = "okay"; ++&tlmm { ++ panel_pwr_active: panel-pwr-active-state { ++ pins = "gpio152", "gpio153"; ++ function = "gpio"; ++ drive-strength = <8>; ++ bias-disable; ++ output-high; ++ }; ++ ++ ts_reset_active: ts-reset-active-state { ++ pins = "gpio24"; ++ function = "gpio"; ++ drive-strength = <8>; ++ bias-pull-up; ++ }; ++ ++ ts_reset_suspend: ts-reset-suspend-state { ++ pins = "gpio24"; ++ function = "gpio"; ++ drive-strength = <2>; ++ bias-pull-down; ++ }; ++ ++ ts_int_active: ts-int-default-state { ++ pins = "gpio25"; ++ function = "gpio"; ++ bias-pull-up; ++ drive-strength = <8>; ++ }; ++ ++ ts_int_suspend: ts-int-sleep-state { ++ pins = "gpio25"; ++ function = "gpio"; ++ bias-pull-down; ++ drive-strength = <2>; ++ }; +}; + ++&i2c0 { ++ clock-frequency = <400000>; ++ status = "okay"; ++ ++}; ++ ++&i2c4 { ++ clock-frequency = <400000>; ++ status = "okay"; ++ touchscreen: touchscreen@38 { ++ compatible = "focaltech,ft5426"; ++ reg = <0x38>; ++ #address-cells = <1>; ++ #size-cells = <0>; ++ ++ interrupt-parent = <&tlmm>; ++ interrupts = <25 IRQ_TYPE_EDGE_FALLING>; ++ ++ reset-gpios = <&tlmm 24 GPIO_ACTIVE_LOW>; ++ ++ vcc-supply = <&vreg_l14b_3p2>; ++ iovcc-supply = <&vreg_l12b_1p8>; ++ ++ pinctrl-0 = <&ts_int_active &ts_reset_active>; ++ pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; ++ pinctrl-names = "default", "sleep"; ++ ++ touchscreen-size-x = <1080>; ++ touchscreen-size-y = <1920>; ++ }; ++}; ++ ++ +&display_panel { + compatible = "chipone,icna3512"; +