Message ID | 20231222095258.33369-2-eichest@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-9566-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp951130dyi; Fri, 22 Dec 2023 01:53:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IFie+1QDDgnWJhC3qvRfx0PZtrLrIHS03CK/C0P05pi2FT2n87UjfqIocPL2iZ6urNFWWwz X-Received: by 2002:a50:9b1a:0:b0:554:5e42:c906 with SMTP id o26-20020a509b1a000000b005545e42c906mr129917edi.118.1703238835872; Fri, 22 Dec 2023 01:53:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703238835; cv=none; d=google.com; s=arc-20160816; b=Sms/cOM82DZCj8/C6mRyiV7CfZ9Jf8cRvE9nKbzsGhOyFs7SFuyvTrkkTmDKn9X1Iy b2y2NtLOkeWr2FiWT7h6Ws4v5KpAUEoG0en9DEy4AlRIIdrj8Rgw4d2D8JzN6GsvPEPt aWhhnRGq0szo3X0mGG9bASZQ3hAkM9/3SVtFEJ+gpvAKIQcxIHxK2u8cgNwECSYC4loe GzWjoSff3waHsEU4VhqZHGe5MzoTJPVaEuLvUiJMpxKDVpb7ZMB+qRAzZmuHpIIfvfOX 5lpDdMw+xdaExhuZim8IkoztowiGrhRfQrsQ2/Z7E98U7Geleyi76T3JZhjZaLB4Ca+7 RhqA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=pv5du8nTtlBmNN8G6GAX4FSGesWSwqNtRVmismLP6Po=; fh=fjdepwvWWoH7Ds9UApuJtWfjL4a//G7gZ7oi8Lo0/NU=; b=cVFd12ZckbhtNSfxyJ8nID4PHewAXuDXy+kVAZz1icfgkNG4is+uaBJ7XvZnhkmARW 8euXJELSz4fgcpReJEtDb+ySciyQ8lDdIw3SYDW691bCZWrQJdRaLZqoayfoU1JY9BDn 1XnOPl1sFRxN9RepS3jekiTQiO0VLeW0GcmBbbuSLvaEhsYWLecVZl4bfK/shfEhHGI/ cffCin/kO3DJUYmef4wBXhcdsWYzB9OmcHHK7SYDnX1tqYmUJ91NCyqhOP5QKn+ZpSwr GI19YBn4JgG0gOXByca5qizNh9auj9AAY7t3fh0sk4WKg4/0W87NrFbrT6e98cs97bhE kSnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=J1iKoKl6; spf=pass (google.com: domain of linux-kernel+bounces-9566-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9566-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dd21-20020a056402313500b0055462485d20si184026edb.264.2023.12.22.01.53.55 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 01:53:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9566-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=J1iKoKl6; spf=pass (google.com: domain of linux-kernel+bounces-9566-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9566-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7C4FC1F23572 for <ouuuleilei@gmail.com>; Fri, 22 Dec 2023 09:53:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD22216428; Fri, 22 Dec 2023 09:53:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="J1iKoKl6" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 E0416FBE8; 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-f49.google.com with SMTP id a640c23a62f3a-a2698cff486so201163166b.0; 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:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pv5du8nTtlBmNN8G6GAX4FSGesWSwqNtRVmismLP6Po=; b=J1iKoKl6hNf6+2g9+T1pPFWTLjejdNKPUrT1B2anX+OnZ3lqMr67kvZOeu+zd5jXif Wltnwu1kTwMtMlLncs6sZHLXMvifz+3wGckWIRNUnb8voer7am72AG9kYwt/9K9pcwGq y6vdax5XV/s9NjzCPun7SteWGCa8twt1fMkg4jqjgvgWq44f4y3quRvl7+JCQH2BRDX+ LfbNAl6EupEUH1qKQSW8kklaBhuchIYoj/i6hnEfCL/JSD6+VJMVYmUqHCHrCTknDAOq AsAnLhY/WNSqLoiJKNjnCeSjmXSuJCFucJwwY7qFo7WuGWIxBn7kkieCjh+WJTI6axWB vBlg== 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:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pv5du8nTtlBmNN8G6GAX4FSGesWSwqNtRVmismLP6Po=; b=YnPmVGsR48zTRmfQEzmRH93Econy/igdYu99xEq1aizsAC1kKbAWk24TxS9OGaLpTo b3wESsvabD2bVMRecusJKWioGRXE4ONvkTDjvvkQMUTC5z/66b5qUQm+gjyMzHdNITJj lgRraYrx7m2evW18Zzi3kqQXZMDeDDyFz+D4g+q9UTEAzkGYAdvAycdbMx/Tfz9h8yCR XeuuUIQ4NlBq2P+PjnI/9lLHDcWCDQmvIVx9eb6bx0ca2+B+Vl6AWGGmA5z4RPbqgpqk YErfEJqkG8LADAQdMOSCL5Pu3Gp1mJV8iT8xJbD2hZocOgXB+KC1M1ON3seS34oO33+B 32kA== X-Gm-Message-State: AOJu0YwHakCTZmB71CJc2b1SuQxMi3nKU3eqYSDgGJj46l8MEHiKBHLG 7Zno4HHrGLw3tEoygF6bCMI= X-Received: by 2002:a17:907:9842:b0:a26:97a1:48f1 with SMTP id jj2-20020a170907984200b00a2697a148f1mr267161ejc.81.1703238787003; Fri, 22 Dec 2023 01:53:07 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 01:53:06 -0800 (PST) From: Stefan Eichenberger <eichest@gmail.com> 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 <stefan.eichenberger@toradex.com> Subject: [PATCH v2 1/2] dt-bindings: input: atmel,maxtouch: add poweroff-sleep property Date: Fri, 22 Dec 2023 10:52:57 +0100 Message-Id: <20231222095258.33369-2-eichest@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231222095258.33369-1-eichest@gmail.com> References: <20231222095258.33369-1-eichest@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785975365632359343 X-GMAIL-MSGID: 1785975365632359343 |
Series |
Add a property to turn off the max touch controller in suspend mode
|
|
Commit Message
Stefan Eichenberger
Dec. 22, 2023, 9:52 a.m. UTC
From: Stefan Eichenberger <stefan.eichenberger@toradex.com> Add a new property to indicate that the device should power off rather than use deep sleep. Deep sleep is a feature of the controller that expects the controller to remain powered in suspend. However, if a display shares its regulator with the touch controller, we may want to do a power off so that the display and touch controller do not use any power. Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com> --- Documentation/devicetree/bindings/input/atmel,maxtouch.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Comments
On Fri, Dec 22, 2023 at 10:53 AM Stefan Eichenberger <eichest@gmail.com> wrote: > From: Stefan Eichenberger <stefan.eichenberger@toradex.com> > > Add a new property to indicate that the device should power off rather > than use deep sleep. Deep sleep is a feature of the controller that > expects the controller to remain powered in suspend. However, if a > display shares its regulator with the touch controller, we may want to > do a power off so that the display and touch controller do not use any > power. > > Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com> This LGTM: Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Yours, Linus Walleij
On 22/12/2023 10:52, Stefan Eichenberger wrote: > From: Stefan Eichenberger <stefan.eichenberger@toradex.com> > > Add a new property to indicate that the device should power off rather > than use deep sleep. Deep sleep is a feature of the controller that > expects the controller to remain powered in suspend. However, if a > display shares its regulator with the touch controller, we may want to > do a power off so that the display and touch controller do not use any > power. > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml b/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml index c40799355ed7..8de5f539b30e 100644 --- a/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml +++ b/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml @@ -87,6 +87,12 @@ properties: - 2 # ATMEL_MXT_WAKEUP_GPIO default: 0 + atmel,poweroff-sleep: + description: | + Instead of using the deep sleep feature of the maXTouch controller, + poweroff the regulators. + type: boolean + wakeup-source: type: boolean