From patchwork Fri Feb 9 10:50:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Eichenberger X-Patchwork-Id: 13551039 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5A14CC4828F for ; Fri, 9 Feb 2024 10:50:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=cbwJ5joGoVxEER8xAflT4VqYZX9xAmVRCUk/dUIsGc0=; b=i5n3pVl8U6amfq LXyH5oZ8/49xNGkzd7ecA6nO9aBLEXELAFBWvCVtErA2hicDkfS1kuPnz2eDNDCXvQu2TqYGWRADZ vlkU3HD1NptCs2OnoTlu3t13xFfJvcjzd0qpYJtOkUT7n5qO4SFgwoGiC+ppgg72pot+FQGQjQgZE p3QCVrX+GfBqNz8GW58alDSOgiJnXqrw7nBSPBCp/1S1pQB4wtjwYVUFVqNHIbntmOkQDTQOwcEeB 1+3nn2x0LEbVi3SPtptlWfJf/s3saM5aGQ3rlBFbNR/ocQzxqSKLvpy23rAd1TY7Nlm2A8Pokecdb neweP5z+pj+BcxvBjtuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rYOSb-0000000GlI2-3sJn; Fri, 09 Feb 2024 10:50:21 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rYOSX-0000000GlFH-1zA2 for linux-arm-kernel@lists.infradead.org; Fri, 09 Feb 2024 10:50:18 +0000 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-511717cfa62so851119e87.3 for ; Fri, 09 Feb 2024 02:50:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707475814; x=1708080614; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=s6uYbxf7yYToxU6OmDz8coT5iHkSyLV83vl+tZgOKS0=; b=ZuGuZy7QFAkatxWv5eV/edfbHq3bXGzZQoa3khkE3m+GZQhojseUw81ZeAK4KSJ0pD QN1GA26pD1noOskL5JGaoO2QUnq7X6ZIFWZljMB8gJp5yKHD3VvHuT8cbzMME1bEdXWN g9Nf6+C7pbWAHhJU0X3oaD8kE08PukcBkczRvl+dJlKK2H80xmUMNklcVcOvVaA1S1it a8cPmf06PKHfWuQHYJAJrv9oGHRho5NzzJ0m98yTGRmLCYLVZJFHgRoil8SkPpMAsRD2 qgpFc9IFbyPu+9CAPMpPFQImxUDGryv8GQhR5zcjwEq3LTeF7Ry8u/bu6ncNlfKz9U+C 9w6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707475814; x=1708080614; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=s6uYbxf7yYToxU6OmDz8coT5iHkSyLV83vl+tZgOKS0=; b=RwWc+a/7zSYdM0EuAx6Y4YwoFpXBIfXDQgHVILdAF6dogkPcnMBEmCny4PAWdfAV94 WtcQi3elBEAVCZJEYOJPpRpz5r4kJ9cXrdpC4j/l3FV18rAfqV4QIRFsCuUoHtw/TU0l 3sRveI+934cMIyFBbxd/umxsvY9izTJsJTjMiM7y+ixh7PtpV7G/De2OiotDmiqjjF7X +pQ79rXNS7sboHys0bXSIgknhom5ikkoGhMCge6EhkF7WavIA9lt2XP/gqfihsGNNg0p xEdrMG+vod4PllHBUXyFfY6RSwuEqW6UtnVRRsO1UaGmbIAPBAU4GD8CqkbfgtAioCNT LbAg== X-Gm-Message-State: AOJu0Yw2BNKIIs/FmmirnoIx6qLCppQWjgOUOaNHBtaRdn4DuuqgePNz iVTOQl08BHaH+1n+Deup8tf9lPqVsHGIQHfkEdeMEjyNFPIghr9t X-Google-Smtp-Source: AGHT+IEpIumUNsf3xiDQPPvz/mreysnuOLMTL8jtpyugnii1nY9eDYj78HAqFUquXMdkJh6Uqam2SA== X-Received: by 2002:ac2:4568:0:b0:511:706d:72f2 with SMTP id k8-20020ac24568000000b00511706d72f2mr708108lfm.68.1707475813482; Fri, 09 Feb 2024 02:50:13 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUpNxTnu5n+LmuDXdn+i9OCGDckrfR6gbVuF5lYldSVYxaTEAprOvu3h9L16s0T201fQmaRC24aer8Ie5EpRN5blle3HrDylW7bp9CQlmTOKAQklaLgPR8/l8XSron3DKGB5tyjDGzNHk588ziuBXHsnB3iyjAgYSe1zIIJlxdLaUEPdeFwYrXJCVP2wJM//C95Fm8kKd/D6OIl5Stq7V8mG69VKzrTDzRoOLmO9WzothIMpjDohI8cooDbZvHz6ZDNF+tQZ9hN0WiFtJpyw41mntJrseO/usnYZiotir8Y70fyaQZyzlIdclYKEzAxhQhmF9b2wAefb2hmW2y7rFGOeWD/0KFLtDlx4zfhdUL63zop+kpgArG337C89FoKckhOC9PVrkJdOcfoG6CQ5I+nEhZkkCTKoz0aDZGHOCRO3z1l1fFRQwAONcB/pGNh49210fthq8Y+bRkNUt9Z9GXvXqZ5oM2ETLhXaF5u68RTaWZOXq2EQQIdYhb951kMYhs1NK7c Received: from eichest-laptop.toradex.int ([2a02:168:af72:0:765:2268:762e:2748]) by smtp.gmail.com with ESMTPSA id t18-20020a05600c199200b0040fc26183e8sm253627wmq.8.2024.02.09.02.50.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 02:50:13 -0800 (PST) From: Stefan Eichenberger To: nick@shmanahar.org, dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, claudiu.beznea@tuxon.dev, linus.walleij@linaro.org Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, francesco.dolcini@toradex.com Subject: [PATCH RESEND v3 0/2] Add a property to turn off the max touch controller in suspend mode Date: Fri, 9 Feb 2024 11:50:10 +0100 Message-Id: <20240209105012.22470-1-eichest@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240209_025017_565852_24922922 X-CRM114-Status: GOOD ( 12.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Our hardware has a shared regulator that powers various peripherals such as the display, touch, USB hub, etc. Since the Maxtouch controller doesn't currently allow it to be turned off, this regulator has to stay on in suspend mode. This increases the overall power consumption. In order to turn off the controller when the system goes into suspend mode, this series adds a device tree property to the maxtouch driver that allows the controller to be turned off completely and ensurs that it can resume from the power off state. Resend v3: - Previously I messed up the series because send-email crashed. This is a resend of the original series: https://lore.kernel.org/linux-input/20240209084543.14726-1-eichest@gmail.com/T/#t https://lore.kernel.org/linux-input/20240209084818.14925-1-eichest@gmail.com/T/#u Changes since v2: - Add Reviewed-by tags from Linus and Krzysztof to the dt-bindings patch Changes since v1: - Rename the property and change the description (Krzysztof, Linus, Dmitry, Conor) Stefan Eichenberger (2): dt-bindings: input: atmel,maxtouch: add poweroff-sleep property Input: atmel_mxt_ts - support poweroff in suspend .../bindings/input/atmel,maxtouch.yaml | 6 ++ drivers/input/touchscreen/atmel_mxt_ts.c | 72 ++++++++++++++----- 2 files changed, 61 insertions(+), 17 deletions(-)