From patchwork Wed Apr 17 09:05:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Eichenberger X-Patchwork-Id: 13633063 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 4E069C001CC for ; Wed, 17 Apr 2024 09:06:25 +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:References:In-Reply-To: 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: List-Owner; bh=B9p11KBxMSbj9qZmjAqhAWcvNO944su6I/hIS4/5ELI=; b=rK5ifbX3VR+W1a 4PVVqzGjHjQppn1Rsi1RSf7gYfobrEAE0heOCx8UIiI+o62EcW6cW3PMtlR0iuA24UtLoV+E20oPI MQr2EHJ/YqFY+1AYy456Y9PqCdrgr0WGaZ+qN+yw/lIwaye3IXy4C0ejHe8fUq4gfsDZjsAN+A6qK iGCpg/72wZhGppwJwmAyc64fGohouZluJBCztsiDloipDgrP7M4t+zqFFMbqe6Sl45uM213PERsBq 1Hh0Gn3n6NJJzoJoeo85L+dadQ7Noq0VgqJ4zt9cx+oWwQFVpa6nlgRDHZEBjzLuLGQqFbCEutw7K MfzZIMTPDeMoVxKNy0Yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rx1F3-0000000FKwP-272I; Wed, 17 Apr 2024 09:06:09 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rx1Eq-0000000FKoY-0ZqM for linux-arm-kernel@lists.infradead.org; Wed, 17 Apr 2024 09:06:02 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a51f9ad7684so356186566b.2 for ; Wed, 17 Apr 2024 02:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713344751; x=1713949551; darn=lists.infradead.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=SZwRK1DevWHs7TSy/8l1VCGmE7RT9MSmuvvOPNO04ZE=; b=mMnvaOXbgkDcB26uI9fShkb2ZGo9wZM4ei6S1oKsSSgW9C2SMEvZmZ79HKqojJuNia II7Z99Tfu1jG1Q5ELKa79Rv8IZoyatPkqEBvjgPqaWLvTsEvuXh4OajB2YT+rhzvSNsC 3+ZUDOuQPWos+7skyrAnsaKu0VC2/c1kmVMhzWkfib+aa5ejH6Celcw9NTd43R/uSxC6 uu5ujlj/SzHUPjdeeytxViRC/rdfCIZpj5VKCds0kAXlVbhXHIQ25jdWqIymsj9oJ7eq zyX1lZ+DE0uFMjBRgNbdIbKpCFHWqPx+BiqmKpXhbAke2i2eiEe4Wt1Yq9EJ4HkfJ+uS 57xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713344751; x=1713949551; 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=SZwRK1DevWHs7TSy/8l1VCGmE7RT9MSmuvvOPNO04ZE=; b=GXDfH9eDZnRs/NGHSDmhM3TSE+oYbbetbfwhAJ3gh6P/+1EheDS/ghP7mikCV7WK6d oNh25aJV2FbFvPN+0RVMRtWV+bbJHBK8wvNIfCBjhkFDPKMgZtZKtBnnSDjyn7Qwd6x8 0i5+1VDdsI0I+4Qdxk429rXbMjlOn68xsu+OkKYHuntt2RVDBPFieQhNuUDFgwfYw8Hc PN7sm9+KZULFwaElN6PU/8shQnIH/ai1Uv3TRmg9T2nE0Q9ngUDwLKcKvd9C6ILtUK9/ sejExCbU2UmFqKd51xBAaOySqMCzzzFYz8DKi1k7S3yvQuton19TTH2pYPbqF7KurOry mHzw== X-Forwarded-Encrypted: i=1; AJvYcCW6Phgs113xbM4NbZMo/mKMD8OQW/oX54bbfGe/oghda2S7IuS/WMZWVakJLSqONcvF8xjck8XYxbYbfkhxYlAqu/mi8MA9WHpHpF1SLAoDkzizE/E= X-Gm-Message-State: AOJu0Ywck3O+JsxKPnDNv1/nJsKThq3mIagwJuCgTCvJekZ5b3x45QCk q7f4O5GyduVgBRGCXn+R9vlP3O/PfwnI7mM19KP7QivM3wwDfuAR X-Google-Smtp-Source: AGHT+IGE2DnDV3rpp3b8Ce/rnKgMZfX7uxAsyjA9iUq+P1/TDU14340g92GIgBrYF0+l9pSZ9cbGAQ== X-Received: by 2002:a50:a68f:0:b0:56c:18b4:d2ab with SMTP id e15-20020a50a68f000000b0056c18b4d2abmr11801276edc.42.1713344751147; Wed, 17 Apr 2024 02:05:51 -0700 (PDT) Received: from eichest-laptop.corp.toradex.com (31-10-206-125.static.upc.ch. [31.10.206.125]) by smtp.gmail.com with ESMTPSA id x16-20020a170906135000b00a51a7832a7asm7897814ejb.199.2024.04.17.02.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 02:05:50 -0700 (PDT) From: Stefan Eichenberger To: nick@shmanahar.org, dmitry.torokhov@gmail.com, robh@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, Stefan Eichenberger , Krzysztof Kozlowski Subject: [PATCH v4 3/4] dt-bindings: input: atmel,maxtouch: add poweroff-sleep property Date: Wed, 17 Apr 2024 11:05:26 +0200 Message-Id: <20240417090527.15357-4-eichest@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240417090527.15357-1-eichest@gmail.com> References: <20240417090527.15357-1-eichest@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240417_020556_250775_E0EC5D45 X-CRM114-Status: GOOD ( 12.21 ) 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 From: Stefan Eichenberger 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 Reviewed-by: Linus Walleij Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/input/atmel,maxtouch.yaml | 6 ++++++ 1 file changed, 6 insertions(+) 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