[PATCH 3/3] arm64: dts: qcom: sdm845-oneplus: Mark the touchscreen as a wakeup source

From: EMCP333 via B4 Relay

Date: Sun Nov 22 2026 - 00:14:07 EST


From: EMCP333 <emcp@xxxxxxxx>

Without "wakeup-source" the Synaptics touchscreen on the OnePlus 6 and 6T
has no power/wakeup attribute and its attention IRQ is not armed across
system suspend, so a touch (for example double-tap-to-wake) cannot wake
the SoC from s2idle.

Mark it as a wakeup source. The I2C core registers it as a wakeup-capable
device and arms its IRQ for wake.

This needs "Input: synaptics-rmi4 - keep an I2C device that may wake the
system powered". Without it rmi_i2c cuts the touchscreen supplies in
suspend, the attention line falls and every s2idle ends within seconds.

Tested on a OnePlus 6T on v7.4-rc3 with that change:
/sys/bus/i2c/devices/12-0020/power/wakeup reads "enabled". With nothing
touching the phone, "rtcwake -m freeze -s 30" slept the full 30 seconds,
and a double-tap woke it with a 60 second RTC fallback.

The code and this changelog were prepared with the help of an AI coding
assistant. The submitter has reviewed both and takes responsibility for
them.

Signed-off-by: EMCP333 <emcp@xxxxxxxx>
---
arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
index 1df09da3c4..187bd6f45e 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
@@ -533,6 +533,7 @@ synaptics-rmi4-i2c@20 {

syna,reset-delay-ms = <200>;
syna,startup-delay-ms = <200>;
+ wakeup-source;

rmi4-f01@1 {
reg = <0x01>;

--
2.47.3