From nobody Tue Nov 24 11:52:08 2026 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795324435; b=ecIN53RghCDqtSADnumah2WRd6aGpQwgHbri7cQx/tuaSSM58+kKrd4M1t3K4sJxOw0H 3wGgDY0wzvbH02ip1Xgq427PjID5Dagwz7SbT6FKNndRR9ZG68js10OSrCrG5luvR4uxD 9otk4rtlNW8bh1uJ90oNndpinQgzoeJm0Qjm09Qmky02V6JrQhmh05C8wERNfhQB1pqJ1 GAA0kPVkuE+Wxxbo/YmHzqH7wexUod5hFlwN5ZDXpcwb06IzQQJtu6lSTHuy3YcGQDhfH ALKXtzNfOhPjHvDdDRj8GyQ9u3cnIJZOe4ldEuWktO3wIqP6vSl1exVdwvSvFt/kVlg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795324435; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=x7fAWI0SeuRciQJeEO5O1AtHlb4bQ7PjYiV8HGkcy0k=; b=t0dytN8Wy7tmhzAzRIRRIny1nJ7ezu4t5GXqY37ug3S+x3edZJQw6GljTMTfz/JAzFE+ JlKPPYvFaFNHHWTd41Oc9E2DmgqQwIYoQILK3oo+z0s00snD3IKsH1inVY8VebXK/Wb14 aMVLTEaWx49CI4OmGXzWBcglURI2kOWPZYayaWS3iemDsmJSfWz3lPDQXBo60Iyvp+8bR P1fCp/80seRbnOvvANFBJBnIKYRuga4VspXl25lQRJeRjsVPkEtRMuojqokjGg/r2Uk/P l75lM7XiYhi4Iqfc0GiGI5Vh633YOTFhs7FG845cAP+WINL0t3PgKXpLo6cmuRPNcVA== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=D2ozEWXk; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40A81606A32C; Sun, 22 Nov 2026 05:13:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=D2ozEWXk Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795324435; b=D0QKwwfvqqKfD9SQUanhTkJ1VqYb5jg1JZK0R627yBMZAZFl7Z3vtvdleyj3IYlGmdDA hzyFj9++hrTtMRJLCUan/L4Fng3IVWhgVO1c8h6OnG/uiY5ixwoZJvJUfqOG5JmVVfLwH X8emjQmcg3s6Vt6xvPuqsfQU7W2xDkID9UPKbCXSn6xpp84JJZ3WUlWJ7iC2RblGHqvgk BLf6ujoLF80Md+ryT6+Dp9d4NCwI4Jrn2w4W+oTX53r6G9/PTfftjLM/1+mHH4/gk/ddT eviQQ4+yISusQt7Jcr479kAfSlae/7CeT4VEEFV4DjlWvhIWBtMxKE7BrXkcJeKH7mQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795324435; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=x7fAWI0SeuRciQJeEO5O1AtHlb4bQ7PjYiV8HGkcy0k=; b=ql0V+EsPYx+XWkzjIn0xMMZFEni+BsSe/AKa1pu3rx8FNi2lSmnp3/858zrtwK4sOPdB IOJoHsdJdnk7v9gXuGg0LP/euZepFDw7sjXhF2uav32rk8KBvhNstCm7fyEWMOh95I07R 4QL/QCpSDfZuFWVZFY9T/ZW5U9V7jyuL0nyfpMNzc5IUflzZPUrdeUgKqJk2n0z28xUNL e9RkNoK/GZ1nquhwKt9dYyKWGXjTzxMAMIMdmDZUbousmaMVY34qB6YjrQAV0BOk/K0UL aDkm9eutUlnPyR6KykEMvlGNbgGosHXdFQRxMtx9PHV3K3ZL5MAUAnRG/LZPfGoe5Nw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 6B40E1F000CF; Sun, 22 Nov 2026 05:13:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795324435; bh=x7fAWI0SeuRciQJeEO5O1AtHlb4bQ7PjYiV8HGkcy0k=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=D2ozEWXkZdDC8JL6ZBpgZ1Ldx4saOF75fswPb/HXYGzU8LgXGA2QJpGWJNEAI5Ct6 py8/JJVRtMx/uOYXp3Yazh31g8lnvqTM0RPv+m5CJ6DtNmh8GQakZQKjGlvA9tCicz CJVf9eCxvjBm6gL2MUkLfwBCaynITbXU8FkTuRznIGFHVGTpDNSRyZcaudkC/u0L/k z+aNDlQPka1672lAL2o/n1+tSz1UYdr08rSTHy4hZv6v5u4NNXflJ7eABiJ7wEzCIW Xmp6WzW8N4zxO1bHJcIC0Gp+FZew4rfZr7OcdVddOtpp0v6QQXWEg+SCalbH0DsHg0 2LUPt3Odx2mSQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id F04114BF55; Sun, 22 Nov 2026 05:13:53 +0000 (UTC) From: EMCP333 via B4 Relay Date: Sun, 22 Nov 2026 05:13:50 +0000 Subject: [PATCH 1/3] dt-bindings: input: syna,rmi4: Document wakeup-source X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261122-b4-rmi4-wakeup-v1-1-1b662be4a9d6@enser.io> References: <20261122-b4-rmi4-wakeup-v1-0-1b662be4a9d6@enser.io> In-Reply-To: <20261122-b4-rmi4-wakeup-v1-0-1b662be4a9d6@enser.io> To: Dmitry Torokhov , Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Jason A. Donenfeld" , Matthias Schiffer , Vincent Huang , Abel Vesa , Casey Connolly , linux-input@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, EMCP333 X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795324430; l=1368; i=emcp@enser.io; s=ultron; h=from:subject:message-id; bh=ibrZrS/G/KWUW6WvA1g5ly3Yt1Di9/yHqulMV+RT/tA=; b=OjgsAqKLRdguBshmfdwAa6AQdxl/df/CLVH/lThmy9HBz9+19CZ4x5uUYtVXcCeVCkZVGbGU+ z6sCwm9aNXMBWXJr34lcMsZcKtPDf3CzHXQbrwhr/Qurpm/ktoNkxdM X-Developer-Key: i=emcp@enser.io; a=ed25519; pk=5sG48Lul+Vn7OzXu3VZrCWk5uvEFPYMXYnAV0TZR/tY= X-Endpoint-Received: by B4 Relay for emcp@enser.io/ultron with auth_id=1598 X-Original-From: EMCP333 Reply-To: emcp@enser.io Content-Transfer-Encoding: quoted-printable From: EMCP333 The I2C core already turns a "wakeup-source" property into a wakeup-capable device: of_i2c_get_board_info() sets I2C_CLIENT_WAKE and i2c_device_probe() then calls device_init_wakeup() and dev_pm_set_wake_irq(). rmi_driver additionally arms the attention IRQ with enable_irq_wake() in rmi_disable_irq() when device_may_wakeup() is true. The binding does not list the property, so a board that sets it fails dtbs_check: sdm845-oneplus-fajita.dtb: synaptics-rmi4-i2c@20 (syna,rmi4-s3706b): Unevaluated properties are not allowed ('wakeup-source' was unexpected) Allow it. 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 --- Documentation/devicetree/bindings/input/syna,rmi4.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/input/syna,rmi4.yaml b/Docum= entation/devicetree/bindings/input/syna,rmi4.yaml index fb4804ac35..34bcc25135 100644 --- a/Documentation/devicetree/bindings/input/syna,rmi4.yaml +++ b/Documentation/devicetree/bindings/input/syna,rmi4.yaml @@ -57,6 +57,8 @@ properties: vdd-supply: true vio-supply: true =20 + wakeup-source: true + rmi4-f01@1: type: object additionalProperties: false --=20 2.47.3 From nobody Tue Nov 24 11:52:08 2026 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795324435; b=AOPQd5lJTD0XvmA9xCTGm1nTF5qbYFNxmXALpCr6zBYCsQ0qp1DO6C1Nvs+aO94jD2Rb oqOOTFXnQ6AvReEMPR5NcH5+FX0GKrh2iWpAZx8ayepBUEPb/FfIPvvMEnuTvuYQwA4id aspK0wzsDmb+xcyH2yEOQNtIroCVr36OwbeXBaDSGJEBI9HXGefKAoQBGwObQpiZ9VLUd hH7ftJGJaN1GHCOmt4VZVRrScnfJCupkVVexQ3lUtWCpHgSAISz2HYVZjOZcp9btItq/V eMW8il4yozR21oPcwIfuEaIqu/+qsYvxaesOhrJNzTvk6SbRsjHn0DVhFSmp5jgCXQA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795324435; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=/0MfodTOWvcCRRBLklKRkyiB27uJC+hG0tdB+pPZKJQ=; b=S+s5oVYTLW0E3kCvQdtFkAX9lVNafaZ3w0K2EiZ2oMR0VQB1Eotz8jryDbvQQYbr4KAQ Qqg3lwBqvwbVHfBC/ylNZI+3mc3ya3Ka9l1JEac8+p6JZ28xiqHWFyRdd0vpz+oOUT780 bbmRQsyEL7jfuQF/aRvLzimtroyZG8KeHrJXaOxjOK8oHI8GyHWbIuqHAgn6UDDe5YTfI d8QUB7C7RG5aEPU97K6aZXn+T7roOtsPJXBP1AecUPxuasqpkAGMpgrVo8tfbpsh0y3Zj XLRbBMzOYZMmBVgb+OMInaVOY68uwBc6hbEPFgblO9h3EhlNxmrOd4GOiCv0sD/njqw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="oEeFWs/t"; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A43CB606A338; Sun, 22 Nov 2026 05:13:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=oEeFWs/t Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795324435; b=oG3R+TKzEouybw/QaIrMA1gL/XvWctvcOs/W0YYFoO+KKVgaWyzmeSOmIukY/vIwKIKz 0/Q4738qRPrH38g30lUvglsR+wernqxpeFG1DvwJULeNM3t8AFmsldoQGQ/QBYWWx8PET CSL8CLQhvS/JVHLTt3bXXeMLrswV6KIV/pTEkpmhU5/JvY3GLWRk+SonnSDU2dd0JLbRY uu8KSN7NkfPbqHTUO8H2R6GY4ZbuHZNS4EcGx+y/ZGGxNytz6lRlcjfV8YN3c7pxWSc20 hsAFv2Wj6COJ3jQr/ndy2B+FDPCZz1OdJJNNvtHo7GZaKwm3W1sILkQ/+/e6UPnLZxA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795324435; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=/0MfodTOWvcCRRBLklKRkyiB27uJC+hG0tdB+pPZKJQ=; b=v68nK7I+CHFPhnDYtMYfEfs7OR7+UB1YxFjauGIiDt0ai36WN1Zl83FYFZXRCzPVM/zV fguAjPl1ydqkZMjTYBwCvC7btc84rk/hltJlv8Hn0XKEdcbjRwvnb+NGkpZbgUtrp8eZm nExSxLk5u0iON6qvLSRHnQt5tnb1x2WDb6cjDED+wNDIQjDoIM/EM0zhPUvJxCawdv+oJ xuV3Ezz4JAmgUS3wYbpIfVOaIDHuRuvgKdFGx9dXjJWhPH4/Ls5iIxl+QZ2rWSUd4nb9h qBHka+Z9yQCfAydTZiD/9hKphAfokOGudXeKgqT1bcr55wKLJ6ODerpOb4H0kJXPRTw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 854881F000E6; Sun, 22 Nov 2026 05:13:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795324435; bh=/0MfodTOWvcCRRBLklKRkyiB27uJC+hG0tdB+pPZKJQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=oEeFWs/tC1pKmVl0jT0a8Kunt1q+enDfOujZu6EO6b6mAiS1Zh8zP6Da7444PDzrA ffqPTXrNWeC9VgJ8aFeQZ+Bj+dxMAu9Z4p+LgQM2mn5W3f2VhZLFe8vKl+1mNNMmfo SsT5h9+oVYOv4OuMUcZbLJdCvXFeb2k8Z6GAhCHt08E528FBZXDhYlCtMOhhVLCT2D rhtKbV/SZLuzf/jTXv283X8nF4NGcOYvzbxnF/3c/k0jHXg3Tndz6QdncR4ZtRjOq1 Q8aVsOjIb5Kq4HfaBRoeYa7slP952804VHpFvD8pnCLwIwObg3Q5VzE6EJGeL0APjz 866WXbKUIwb/w== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 169F54BF59; Sun, 22 Nov 2026 05:13:54 +0000 (UTC) From: EMCP333 via B4 Relay Date: Sun, 22 Nov 2026 05:13:51 +0000 Subject: [PATCH 2/3] Input: synaptics-rmi4 - keep an I2C device that may wake the system powered X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261122-b4-rmi4-wakeup-v1-2-1b662be4a9d6@enser.io> References: <20261122-b4-rmi4-wakeup-v1-0-1b662be4a9d6@enser.io> In-Reply-To: <20261122-b4-rmi4-wakeup-v1-0-1b662be4a9d6@enser.io> To: Dmitry Torokhov , Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Jason A. Donenfeld" , Matthias Schiffer , Vincent Huang , Abel Vesa , Casey Connolly , linux-input@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, EMCP333 X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795324430; l=2971; i=emcp@enser.io; s=ultron; h=from:subject:message-id; bh=fDiPq/3r00nNm505fcLFxoFfTTgnQj9aL2qnPW//aiY=; b=WMSeGpwj6CI4Ce+yTljfHteDbAQCrDI7K/Sw6bk1eLeytA/E5e1Og22BqTMx09kKkI4lREWko YX2rRQNMYXCDdQb8qMeHZhLnhpOp9H/HpHsgeY3PjZKkg2VR0LeTzGX X-Developer-Key: i=emcp@enser.io; a=ed25519; pk=5sG48Lul+Vn7OzXu3VZrCWk5uvEFPYMXYnAV0TZR/tY= X-Endpoint-Received: by B4 Relay for emcp@enser.io/ultron with auth_id=1598 X-Original-From: EMCP333 Reply-To: emcp@enser.io Content-Transfer-Encoding: quoted-printable From: EMCP333 rmi_i2c_suspend() arms the attention interrupt for wakeup through rmi_driver_suspend(..., true) and then disables the vdd and vio supplies. Unpowered, the controller cannot report a touch, so the wakeup it has just armed can never come from the user. Where the attention line is pulled up from the switched I/O supply, cutting that supply also pulls the line low, and that falling edge ends the suspend by itself. On a OnePlus 6T (S3706B, attention on a falling-edge GPIO, vio from a GPIO-controlled fixed regulator) with the touchscreen marked as a wakeup source, every s2idle ended within 3 to 4 seconds with nobody touching the phone, with one attention interrupt per suspend. Keep the supplies on in system suspend when the device may wake the system, as edt-ft5x06 does, and skip the matching re-enable and startup delay on resume. A device that may not wake is powered down as before. Tested on a OnePlus 6T on v7.4-rc3 with 'wakeup-source' on the touchscreen node. With wakeup enabled and nothing touching the phone, "rtcwake -m freeze -s 30" slept the full 30 seconds with no attention interrupt (2 of 2), and a double-tap woke it (2 of 2, 120 second RTC fallback). With wakeup disabled the supplies are cut as before and it slept until the RTC (2 of 2). 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 --- drivers/input/rmi4/rmi_i2c.c | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/drivers/input/rmi4/rmi_i2c.c b/drivers/input/rmi4/rmi_i2c.c index b0b36ddb27..315d203056 100644 --- a/drivers/input/rmi4/rmi_i2c.c +++ b/drivers/input/rmi4/rmi_i2c.c @@ -296,8 +296,14 @@ static int rmi_i2c_suspend(struct device *dev) if (ret) dev_warn(dev, "Failed to resume device: %d\n", ret); =20 - regulator_bulk_disable(ARRAY_SIZE(rmi_i2c->supplies), - rmi_i2c->supplies); + /* + * A device that may wake the system has to stay powered: cutting its + * supplies drops the attention line, which is a wake event of its own, + * and leaves the controller unable to report a touch. + */ + if (!device_may_wakeup(dev)) + regulator_bulk_disable(ARRAY_SIZE(rmi_i2c->supplies), + rmi_i2c->supplies); =20 return ret; } @@ -308,12 +314,14 @@ static int rmi_i2c_resume(struct device *dev) struct rmi_i2c_xport *rmi_i2c =3D i2c_get_clientdata(client); int ret; =20 - ret =3D regulator_bulk_enable(ARRAY_SIZE(rmi_i2c->supplies), - rmi_i2c->supplies); - if (ret) - return ret; + if (!device_may_wakeup(dev)) { + ret =3D regulator_bulk_enable(ARRAY_SIZE(rmi_i2c->supplies), + rmi_i2c->supplies); + if (ret) + return ret; =20 - msleep(rmi_i2c->startup_delay); + msleep(rmi_i2c->startup_delay); + } =20 ret =3D rmi_driver_resume(rmi_i2c->xport.rmi_dev, true); if (ret) --=20 2.47.3 From nobody Tue Nov 24 11:52:08 2026 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795324436; b=yi9fjYiNvn5fNy/Hiv11XmtIflHDVGRn0B+MY/WspHCbOU0EETY8RkZOfHL9OnI1/Tqv ooA4YiDF757j6C08XoCRJA5PYUw6YnQFDONLpYENtyQNcqlCsBhmkguwpPo63jxPJmnaS oJ3GQui+J3krEnJ9F4AGsrpHkf8Mta632kLtpG031HhP4NQU+/PyGt7FlxzmcMmYvs0+0 UXwW4f9XafKbFaRHqj2N0juNRYXzRgF8ShC7ZijCmpZKEUntLGENbmku/DuZZo1LgKxKw oeb2ecbtvlc2DuwXRhVtTu3cjrGSeHcxTUWUlBwf0vSAkYzkcab0TDJ3qYKsGzKjYew== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795324436; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=/QrJTXR+9tGdWyJeoCL5ze/rHmBkcQAMi7mOI8oYCYI=; b=JRdqp0IkMTifhIH5l5UgvmqSOUYtLU/qq+4VAv8XJLbX3osQktIfvXEFvrwPIUfhnlwI OvLBjkMmyXI4XC3lyUc2NccMqTh5GP02V9IPdjYrdlfRIkMzqIZt3FOtYrrRHawW5eROd oY6QHz6e0IXYYHGHawSc7Z6/2NyxAQq3Y7uqg/o7Zm5u3X7LGSC0cS3MWc9PIqZ+AokJu 3ou42K5m2eC/cQ2PCinbVCrdpzq4qMFyS5nWwys26qZuaTUkylVB3YP4dnX5GJ8Fnr677 312R3Gqi6qrndV88H3BFYOQOJ3DjmkrdY23mdwDXltxoCJXdmz7E6SFtN+W+cTu9Wrw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=RGAdWzJH; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23609606A682; Sun, 22 Nov 2026 05:13:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=RGAdWzJH Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795324436; b=jgW6V82QJKvVsEe+gecp+TfojTTgpg1CLRQSbQhqh3mfClhyY7cBpiapvlQmNLd6o2iE Esxre8m1vdI0rksgwpYMj5TUXAByDmxoYH9T4FQRAX3EVNwtvcXZUFe9zdtDMa17g9hk+ exG0wevMUa9jkh2YoW+y7PeYeZ7E93jhZG+LKGtdPCvbk8fujZykd7AYPoyrsrcPqGMh/ Wnr+CSEsRZzvqa+whOZGWPoqs1YsZAvJ+DAlNXPCo/koy2bIFMjQ6Lh5zzL229x6DVtAC SVEPiuQ/uV3BKYxnvF3SezHujhyjlZT7TbwKgddQZ3IMVW6Zm02k3gONbwKsLgDUing== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795324436; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=/QrJTXR+9tGdWyJeoCL5ze/rHmBkcQAMi7mOI8oYCYI=; b=BZWkpMeg4kdA/PDGJ9BFjxE2cgd/mqZGEL6Ln7K+SyfqvzUiDg610A9fW+oSe7GzOCWC QTolTK9YgQk59Hz30hPPy2AHqI3zWxqf9TjuJ4/P88wtoonFAfu50JhhrgBCtdSHIovgS IL+0GtiPePF4p/6LWJEnakgAVJlmAFoIk5DvfgKe6WY1XFIZMRStRE7uL7JN8dGg08kz0 WEVIlAq6zTL5rQjCNx2h99smRIhzg3zg48ZbDk6xEiRIxtZ7AZOzRTRefd+xwNK2zypVt O8WOhly1tbMCVJQsRR3V5bdV2KHnCQcPhsdHojg0CvK4GKWQCqx+PVktSYMooHUI8bA== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id A0B301F000E0; Sun, 22 Nov 2026 05:13:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795324436; bh=/QrJTXR+9tGdWyJeoCL5ze/rHmBkcQAMi7mOI8oYCYI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=RGAdWzJH7f7noEDdtliIQfd4XUVEFu+XjLnWRCGUp0Qx70MmBTgpAdKLU/e0Ez2JR 9DpOZnoT/iC244Aq+E+pMYBmoL5s5zG4GUmPleq6Lfl3BrQq5RQ9JBn756oUMmDvcN iT+Rpabt9I0VHbDxYjcgzHKDW1eGUFEBp7Olkx8900De7XBLwJA2EjsKtVKv7ec62x +hIKyCZqpV80OYxOcYnA1gcJbtIleKN1Ru+SJ6fNRWdGoCKiD8AeYr4AkwuJfA4c+o hMZmZrCpMC4lghDGVVeweoM75h4sZS8ogIDjHgYe2FFPA0tKoWL0tIgShmX/LVCjgc Tl7ueKnnOmCbA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 319644BF5C; Sun, 22 Nov 2026 05:13:54 +0000 (UTC) From: EMCP333 via B4 Relay Date: Sun, 22 Nov 2026 05:13:52 +0000 Subject: [PATCH 3/3] arm64: dts: qcom: sdm845-oneplus: Mark the touchscreen as a wakeup source X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261122-b4-rmi4-wakeup-v1-3-1b662be4a9d6@enser.io> References: <20261122-b4-rmi4-wakeup-v1-0-1b662be4a9d6@enser.io> In-Reply-To: <20261122-b4-rmi4-wakeup-v1-0-1b662be4a9d6@enser.io> To: Dmitry Torokhov , Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Jason A. Donenfeld" , Matthias Schiffer , Vincent Huang , Abel Vesa , Casey Connolly , linux-input@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, EMCP333 X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795324430; l=1595; i=emcp@enser.io; s=ultron; h=from:subject:message-id; bh=BkQi/aNaLB67MHOxqLW5Gip80XqiKJZrg366Q7Ri004=; b=J53g3RH6mgQUU1cTTdsIFH+7zNmEtVWORHfkzsm+AxjYIaboThSB1k48F2OE4wyxbZ24qVK+w f03KZuq8B+SBnLvJsXW19NtdD1zXyMLsXmg4sNMiuJF9abQalhPkjjS X-Developer-Key: i=emcp@enser.io; a=ed25519; pk=5sG48Lul+Vn7OzXu3VZrCWk5uvEFPYMXYnAV0TZR/tY= X-Endpoint-Received: by B4 Relay for emcp@enser.io/ultron with auth_id=1598 X-Original-From: EMCP333 Reply-To: emcp@enser.io Content-Transfer-Encoding: quoted-printable From: EMCP333 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 --- 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/arm= 64/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 { =20 syna,reset-delay-ms =3D <200>; syna,startup-delay-ms =3D <200>; + wakeup-source; =20 rmi4-f01@1 { reg =3D <0x01>; --=20 2.47.3