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: 20151 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp765346dyd; Fri, 9 Feb 2024 02:50:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4T4bicORv6yZiJPH7WvRypEvykoBN1WSP1Bi8LWQhoVR7Zfoc5dOW687//TOE0O0o1slt X-Received: by 2002:a0c:ca0b:0:b0:68c:9b53:8eb6 with SMTP id c11-20020a0cca0b000000b0068c9b538eb6mr1211858qvk.43.1707475852319; Fri, 09 Feb 2024 02:50:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707475852; cv=pass; d=google.com; s=arc-20160816; b=Lh+KjBZxj7n7UkP7jWzKSpPrsicwUQ8Hx64GDMnJ1WwXylqqJuf9pm01kTjHdkFv1R 93qpyJnawZkkV19UmoiN+Gw8SuLPPlD3TEmNzsgqdlJQZVDqpzpuH5M3yVzVLNG4PpzZ AkW2AKkbpXbN9bTC3HDYc6nMneskRnass+EqnGSWKY+FoHZYOfxvtIxVO5jJf2SEX554 ZiArf7JpCAL92xmJGl/wHSa4bG85h2MfsWT47+JC05uj0ouKOs9AIN4dbf0vEkAtWX++ JnDg2C3WGwrxYInzRLkuqGSwGc8T3s1Wlmu+fSVc4jyAkoMupGtO50u2APlJbCLT7A1o 8ztA== ARC-Message-Signature: i=2; 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=s6uYbxf7yYToxU6OmDz8coT5iHkSyLV83vl+tZgOKS0=; fh=5HuKch+JiI+/BLt4Fd/8VQugWtvPigpBoXrgItCBnjc=; b=WB7KqpMN8kZK/XHtDZtKIzNpME6H+Ctitc+ueVywSgy98a89zMEyUerdcQmnkJOPFm byx8WQTGKIgmkajCIoccD7jSnRp4wT5GGI5KGFeQp5mr2SWZL/wlzPEL+9FK1Qxs2h0y oj8H8Ovua97jJ6rfjSQuSobO+xXSR79Zke2Zk9nQ0mlCKMqMO/Aqp4u7w0WNkQZuF/M5 Nxv7d6OFs8tk1YHLq8hu/MvxdSLvgom9xc/y5kiLpS/ftXSyrvQhCSKH/BsOOiHYmYnl Wc4059M4H/fcqJAlKjcxGXBJ0lhvNDGgi4Bpme1HzOL39L7VMUDIPran/1KBYCSQ7ZZM Qr0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RB+ND9Pp; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-59245-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59245-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCXbErwUShBJBLJscZQ/Tn6jcSXIhNhr72CQs88pITpnGQB1RM7Je4Rm3ZqEqi8Okfnm844k+NFwKc4JXZBLu1oF/hrYjQ== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jr15-20020a0562142a8f00b0068c8cfa2d1esi1635135qvb.132.2024.02.09.02.50.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 02:50:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59245-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RB+ND9Pp; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-59245-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59245-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1E13B1C20E02 for ; Fri, 9 Feb 2024 10:50:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E3912C6BA; Fri, 9 Feb 2024 10:50:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RB+ND9Pp" Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 CC26725601; Fri, 9 Feb 2024 10:50:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707475817; cv=none; b=MSWJDziKB7j7fBtp9z5dn+rw8xlIWK0RoAucvbqcXqXntFoGUV+fWy8Arvz9hoSi/sH46ln4ePfom4DKajaiH4tEnqq4YU8YJ7iQ2YcefoJPy4bLmsONebY83uqDYSPVwnJo/Mitnkab3iNX5UyyYtWGlrH88+CWOJVOzkymjYo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707475817; c=relaxed/simple; bh=bINds3wnwjsfuZArQrwolY39Op4Zultj31lCbJh0k+w=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=U1i6MIjSEzVb73pT+3n0OwE89tCjkSQvD6tk+frPe/+jRwkLgF8x3NAAt99xQI0LNHPIsqdyhTBeRMoinFxwDf0qjyxgwkgtbFj3M1KnBj6w4eW7NQFaQtBL/rGRo5SQoFqfupn/2V75p04pfUeua1xWUV+3ipL8pBkjxOVhM0M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RB+ND9Pp; arc=none smtp.client-ip=209.85.167.44 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-lf1-f44.google.com with SMTP id 2adb3069b0e04-51168572090so1375985e87.0; 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=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=s6uYbxf7yYToxU6OmDz8coT5iHkSyLV83vl+tZgOKS0=; b=RB+ND9Pp4XGpI2WX7zE6kaazLToPakCvXUu5eWSBtsL8nw6VXEmKBjVHVA0Er4HL/c fmwSqrLNDBUHzk+STQUjX5kFzljLn5O5P9yK8oC/cg8414klbOwWxWcxoScVnXuybKOQ L6xU6HzzHP+D94fDmUBGM0cd4GOTD+rWFJtyXMT1WK43Zvm5gp7F6TJpUIL4bpQbOZod rViKo0mzPvjleboPZiIWWcOkiLBCCoZ78RzEyC2DDkKYgR7OMcJLrGs/ylmGj55nTsbV nCMSxU7A5gjCAm2xuFNt4DIwtoFsgCf6/hdMYnEfK2kGj2eSyzM9TOtpXZuL4Gj+3NQT hcSg== 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=UG9bAbWdAONdh4+dS0t7kigMfGN2HuRXQT8/eiBHSo80MbsZ+0Pb18uI4Swg8JR2dH K6TGHzYm5kN6257o+SzoURdhWZmz/O5D1MQ/qcBNWughhw9bD5fpHVf85YpSGXyqck0/ A5cHAlOLviEda/hQSU7ewFGq359oD/nTqrUCa6UMktpidpj+pipOF3okUEdeLhHnjB33 dvMsJpbqmmi4vJLVZzjEhVjrTJBNtuqCWf/a22soJAaJLBhHv0tQZ6qUZDNfVD01uTSx SmmmUNApE5Usw7MNacCwM3HInMr7AR/MXi2HITO6G+YRFNiYqK/+CCQvj6YrQahe2enS 44gg== X-Gm-Message-State: AOJu0YwYj9lhVT/9r+PzPXz7Fjry/KDTIc8D7FugyoY6qbBj35qZW4Gd QmSGp/958lHMKSXYtOAwK9hy/35CXct1qMGfN+1iT2JMktO8/zkT 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790411034270050137 X-GMAIL-MSGID: 1790418199665822247 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(-)