From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 364B2C04E69 for ; Mon, 24 Jul 2023 01:20:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230228AbjGXBUv (ORCPT ); Sun, 23 Jul 2023 21:20:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbjGXBUk (ORCPT ); Sun, 23 Jul 2023 21:20:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1188E7C; Sun, 23 Jul 2023 18:20:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5292B60F14; Mon, 24 Jul 2023 01:18:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B801C433CB; Mon, 24 Jul 2023 01:18:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690161521; bh=Vmb6qvn2Tjsqbdf0p1XNotjE0c6EKznreOk29UAg0So=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dEztTZjN94lp+WA3BvrD+MWAHdVQc6M3rEDZ6RAdaD+8tx+k1McSlXXRsmRfdB8ig /B/y441ilEAcuw7IY6KiQJ4H6Ec7D+drfZffxGbPmqMu1rK0tvWyfHC7OJLXyZoSOW TEi+CxARJMJHr/fCo5m4Kf+Ll4XTWViYXg7r8pH37cwcTjyKF5gwO6MjHmDuuBFQJj ceWorVaU28eQCzn8wXSmhHL8CbCQp1M5o1E2898/vJe3g+UbJUk1NY4X6bA4+uIekW P6h6hoX8h1l1o2s3g+JPaetNiYY75b1rNqn7DvFHEKu7mrWameZKNtyqRSe0yPYkzf MaET1OlhQ224w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Fei Shao , Jeff LaBundy , Douglas Anderson , Matthias Brugger , Rob Herring , Jiri Kosina , Sasha Levin , dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH AUTOSEL 6.4 34/58] dt-bindings: input: goodix: Add "goodix,no-reset-during-suspend" property Date: Sun, 23 Jul 2023 21:13:02 -0400 Message-Id: <20230724011338.2298062-34-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230724011338.2298062-1-sashal@kernel.org> References: <20230724011338.2298062-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.4.5 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fei Shao [ Upstream commit 359ed24a0dd3802e703ec8071dc3b6ed446de5f0 ] We observed that on Chromebook device Steelix, if Goodix GT7375P touchscreen is powered in suspend (because, for example, it connects to an always-on regulator) and with the reset GPIO asserted, it will introduce about 14mW power leakage. To address that, we add this property to skip reset during suspend. If it's set, the driver will stop asserting the reset GPIO during power-down. Refer to the comments in the driver for details. Signed-off-by: Fei Shao Suggested-by: Jeff LaBundy Reviewed-by: Douglas Anderson Reviewed-by: Matthias Brugger Reviewed-by: Jeff LaBundy Acked-by: Rob Herring Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- .../devicetree/bindings/input/goodix,gt7375p.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/input/goodix,gt7375p.yaml b/Documentation/devicetree/bindings/input/goodix,gt7375p.yaml index ce18d7dadae23..1edad1da1196d 100644 --- a/Documentation/devicetree/bindings/input/goodix,gt7375p.yaml +++ b/Documentation/devicetree/bindings/input/goodix,gt7375p.yaml @@ -43,6 +43,15 @@ properties: itself as long as it allows the main board to make signals compatible with what the touchscreen is expecting for its IO rails. + goodix,no-reset-during-suspend: + description: + Set this to true to enforce the driver to not assert the reset GPIO + during suspend. + Due to potential touchscreen hardware flaw, back-powering could happen in + suspend if the power supply is on and with active-low reset GPIO asserted. + This property is used to avoid the back-powering issue. + type: boolean + required: - compatible - reg -- 2.39.2