From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 563B71171B for ; Mon, 21 Aug 2023 20:00:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2175C433C9; Mon, 21 Aug 2023 20:00:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1692648049; bh=I+raB3N1ZOvtlX2HGUjEngj12muty9u18VOFwAZxVR4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EH8KHf+g8bVeHY3sq6c/EQOBLetDUTVvSMXjhfBt1NDFSeMVjguLXTgFkz6j2fJnf f7kFa0JBrSmXC4pGM7hqCj2ihO9PrjbI+bLdR6p4soHeHCKeEJsw0M8ifrhZKJ5YmU vr9lNqrT+YTjub5mhuca56bXv8NI8gufNagVyKDE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Fei Shao , Jeff LaBundy , Douglas Anderson , Matthias Brugger , Rob Herring , Jiri Kosina , Sasha Levin Subject: [PATCH 6.4 029/234] dt-bindings: input: goodix: Add "goodix,no-reset-during-suspend" property Date: Mon, 21 Aug 2023 21:39:52 +0200 Message-ID: <20230821194130.029134869@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230821194128.754601642@linuxfoundation.org> References: <20230821194128.754601642@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.40.1