From patchwork Fri Feb 9 08:45:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Eichenberger X-Patchwork-Id: 13550966 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 5369CC4828F for ; Fri, 9 Feb 2024 08:46:07 +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=ebggRpu+FIx4na7UAmpkioq/bdFY5ffBX5BNisW1+Oo=; b=BdyVrDBZs9NWy5 0pGiOLCMdIusRcuS3+gHnBsdrxT17lPf7zwSB9D4Xcb1A4OlQf1pRE0qDtwLgzazoSLLTyTbv7Ii8 WUWrn0WhydhgwitaqkxgpzpxlyyRM8rNKb42UoSgy1SgBJGLUY7iy+NBkmeoeVuTvDkTjlXOwKNp/ +QYfFqgG54VBSzYB0nNT5+j4FAnytPnv7bWdVOVlCdbz+2SXtjOogTNkbbvw8EgaWI2aNlXDRnNjj yCBfa9l1HN0UY9KVe75tvjvqu2bL8cWM8s+ZEQ91tDMP93TpnXVl3nWz/ZYs7/uki3i/UlEzzRKuW QcuhChVU/xqCRKwIgH+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rYMW7-0000000GU07-0jqy; Fri, 09 Feb 2024 08:45:51 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rYMW4-0000000GTzb-3nB8 for linux-arm-kernel@lists.infradead.org; Fri, 09 Feb 2024 08:45:50 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40f033c2e30so5901265e9.0 for ; Fri, 09 Feb 2024 00:45:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707468345; x=1708073145; 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=+hRIU+85gP4cVkUoawCy1lqfH+fhaaCqPKNQ9eBaY3s=; b=XmiVJb1Ze5Gngekv77PEs+gHKsVErFUevmFJvBrADppMzC8VClIrkIYkHTcqHyPngV KMchLyY2BKWtZ53okV3A4W0pTOoGXVAkPUUMmBPDUoO5Q7PEyxYsvqFx9Wu+DcR2bD25 6cnMftEA5OaxlvQaLmqs2Sq67gORPZlcGMBMf7oOMfsJcIAOQNZrTcw5zpnNUr6evaL1 d2jHXD9OQJN8hwvKc0dYyTE+6SylW7cJEEdjZi8CF99EAjIL3KxgHkT4QGgaVhf8d1V8 zn0I6MjRniTQc7qoGJRV0ji9QHDE6u5fWkSgjM+5vvkS2h8Dz3LZ+KLPJAXBQuz6GV9d 1gVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707468345; x=1708073145; 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=+hRIU+85gP4cVkUoawCy1lqfH+fhaaCqPKNQ9eBaY3s=; b=MPOjs1PTV/yQ5fT4mHSgERIbtttfc5bMEOcv/GTsVgLceXkiH3qop2Frls7KYlXWxV OE7s560ta4UqdEMVYvo96rAVGqyb4aWZsyvjBiLewjlbuLtuo01AIVPSx4aYjDiUTfD8 zITIV8VAyLDC5069ABkvaboB5Tc1QCd5+Ip8CaO68PIGBcz7vwz6oiRFrzQOwPucskv5 D727Y4cQznqGMI5cwrSoBx/Wp67IlvKdDnwRCgXXfIHJOWoxIjvUt02aUL6COWc8bseJ h11XJ95Q82YnCr+7Sf/EGoRx1wjhxIu6L6hLttEBGpeF7OXN6UizmeB1ocn2YjYc8DPi MRgA== X-Gm-Message-State: AOJu0YzxylIXxRHVpFwoW7XslKDDMx2Cc8OgTjomjKte6A3WDq9N5qfj QReTidkIWul2kmI44bSZPnUHJQWlca0O9PcuBBLRkE6CA1rYMV4S X-Google-Smtp-Source: AGHT+IGjAoTCace9M2xfUFRKDENlez707RCvfNNhkCplEVi9nb/vpkY2hMs3t2o6h0ftxnt5Bf+Gow== X-Received: by 2002:a05:600c:5026:b0:40e:ac4f:7156 with SMTP id n38-20020a05600c502600b0040eac4f7156mr774790wmr.5.1707468345071; Fri, 09 Feb 2024 00:45:45 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWQZpDUFLN6ZON+d1wtj1vX0nLILDZmIEMfMaohn45K0NNNXFq3yepTYA+Oz2OUuDe7vaUy0YvD9FQzsxNLHuohswNxjwPaLOKGhasroZPi4zPwBa9B73fBxTCJlpBhblUuGosa6oBCkulOyP+S9N/RA3J47GPgiXzpI5w56Eq1Y4fYRtK/iRbB9q9X6jPWoDVpHcrqGMQF1nG4MgEekrGoKhzm6OlMHFwjSeFb9+rJcc+hjnoxhQCknYpjNwgKcP7zYopifUqxwpLkF7tDmFZNhfT6+tP/VksC8LaZV7KerQF7kvTrWB5iGI1o+u0WMsvcyo2WVHSjFiEqidShrx4J64xluFqj1gwd4B4w/MeQLDYXL1pK9yNEDuRspkAH5eZSaambqbnOyafL13IixZqyQ4n4pLXfYfOvzAnhB46Kh5toXCye17HsTbObK9tolysOepdWeDzxmSqXzD2jdKU0iTQ+Q5+I4UhYwqx+7WaX5f1+OG5ZZTv79k195+yCZej1WIzU Received: from eichest-laptop.toradex.int ([2a02:168:af72:0:765:2268:762e:2748]) by smtp.gmail.com with ESMTPSA id y6-20020adfee06000000b0033b3cf1ff09sm1236689wrn.29.2024.02.09.00.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 00:45:44 -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 v3 0/2] Add a property to turn off the max touch controller in suspend mode Date: Fri, 9 Feb 2024 09:45:41 +0100 Message-Id: <20240209084543.14726-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_004548_967571_9B8C9728 X-CRM114-Status: GOOD ( 12.22 ) 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. 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(-)