Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp688075rdb; Fri, 22 Dec 2023 01:53:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IHdqUeshZX+1tYINXMNZSNE7/054kESZ+SQKM5hQtuEI1uCJXizNxFFsHFItALknWfjVBr1 X-Received: by 2002:a05:6359:2d98:b0:173:33e:ec29 with SMTP id rn24-20020a0563592d9800b00173033eec29mr858063rwb.25.1703238810303; Fri, 22 Dec 2023 01:53:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703238810; cv=none; d=google.com; s=arc-20160816; b=fXdT5FAge4Ad6Fg7KtjiFROmgdcMjoWUwjGpUBTd44ZdJVWlm3Jf6qLyEiristsALR /kIbHJBIkZO2EXcp+3n9mASKLWZVqx5VFakY9YcxbOFh8cbYShUlfqtIwXYbqkefOVN7 pTvnkcDQmA0i+QikanyqO/tyeziaBhQHuCKLMHOeCeAVFphwFK8VBya4z8XzlNqkJnwN 1mp1ebgp7tQU8EZ/bZnaLnoCNw7tnMwbopVa4LwDYA5gsDgdOd1FZNVo10LdSblf/Ycx Schvfzu7tVvI0jDJrE0jLntrzb2qkWsS0eDj4BVbPWUzA8Vcj5WumpLfEl95GMLIFjJ9 rmsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=0XSn0qtrctsj5NofJhols7aiVK9MkKubyEzCV4SaRbE=; fh=fjdepwvWWoH7Ds9UApuJtWfjL4a//G7gZ7oi8Lo0/NU=; b=A3GByPr4Xhr6Am1oFjVksdML8fsPUKjLL1/pG3J5jmMZDBmH/rkPzufkA7yevcKAvm xW38WWqfzcWk8239+ymqlMqhXmuAgeOjz9+yhHIVJlCranSn8tXC0ryC6PxtYttj9aKs JjVM1bADQW/t1uwiT7LrLn1Cz+owU/5sIavwR9wKoXqUVsOOFpTazTbsxsttiAiuRh3v jXRMs9Y6AywS63HluqrKpIhHqxh7bc7I94rn8MjBrGxCvqz1ed6llEnoDrNVWYDkC4Ef Xga+sL85n8PN6rRB794j1K3T7kr/m8sivaryZHB/VorHpi+u8O/aUp07/1ITJzQhv9wq YapA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hHvi5Wy8; spf=pass (google.com: domain of linux-kernel+bounces-9565-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9565-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id n9-20020a170903110900b001d3f2e3abcasi3061383plh.511.2023.12.22.01.53.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 01:53:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9565-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hHvi5Wy8; spf=pass (google.com: domain of linux-kernel+bounces-9565-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9565-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5C3BBB21D53 for ; Fri, 22 Dec 2023 09:53:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C050311189; Fri, 22 Dec 2023 09:53:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hHvi5Wy8" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92AB7FBE5; Fri, 22 Dec 2023 09:53:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a22deb95d21so203445266b.3; Fri, 22 Dec 2023 01:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703238787; x=1703843587; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0XSn0qtrctsj5NofJhols7aiVK9MkKubyEzCV4SaRbE=; b=hHvi5Wy8kXHz5OwyaSAVTVQBFIyIN74Y/xQLA1vdt0O7nnW/RRhoHioAqPwza/LTSJ 7ZqXmTFmmAb2tgBop4RwuN0GCNzjaXs8cceips6S2f0rrEKmhLYh4u1aTg4uOA1PGwLL wFa6zwqC/tadVHRV5tLh5plL9a4GpGdoqgjBS6zBwD3WqVWFEuYUOHKXZ5PAIVHac7oX +qS/OQYd+teXSkA4ygiGEp9pkp9C7dbITTcObkqgJ0mRuA1oXbyOoShaJQqpGknstdDL FY2Km2ku7vMrVoiAPqMqOsVgr/Lp3qlODXlVxwZLeE/XUP5WU271sEwaGIASa/Ay2Gf7 4Z4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703238787; x=1703843587; 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=0XSn0qtrctsj5NofJhols7aiVK9MkKubyEzCV4SaRbE=; b=cwA+4atnj2nnlw5y9LW9SRu41FyNnpETBK0boJWp9yUIK99qi/IYJP2sqzviSb/6Pi BjBGsboenx+/Qhu068JQcxrFo4Aqg6jXvnlURilM6AlXVEobBmyEHSOQqe22uEoF+09E nJssaT8cKA1V1BU1UeIs9T7hAA4ST8J7IPPSOZJmtxLOtraNZkROxC22wL8lkfEcpHVw kw02Wr0XpB7xMY6phnhhZrOswjyX5D83QVwUr3PUpFuUt3UqxqF8gprbx5Cl7myG3Xdr q6seP6MGL66tUPaCjTDB3qFivCusBokdoArmgqGS9sbPPmo69pM9sK3c3OJUGbRfyEIx WlFw== X-Gm-Message-State: AOJu0YwA6GSHqfyd3/SJVPXOgQA/1TPSY1md496X/GYY15VlrwoqPwJn R4vctjKEMn3sYvDCJB4ZfsE= X-Received: by 2002:a17:906:198d:b0:a26:975b:a18d with SMTP id g13-20020a170906198d00b00a26975ba18dmr521736ejd.148.1703238786352; Fri, 22 Dec 2023 01:53:06 -0800 (PST) Received: from eichest-laptop.lan ([2a02:168:af72:0:f05b:3f84:67d1:580]) by smtp.gmail.com with ESMTPSA id su24-20020a17090703d800b00a26ab41d0f7sm1311838ejb.26.2023.12.22.01.53.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 01:53:06 -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, francesco.dolcini@toradex.com Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Eichenberger Subject: [PATCH v2 0/2] Add a property to turn off the max touch controller in suspend mode Date: Fri, 22 Dec 2023 10:52:56 +0100 Message-Id: <20231222095258.33369-1-eichest@gmail.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Stefan Eichenberger 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 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(-) -- 2.40.1