From patchwork Mon Jul 8 07:15:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Eichenberger X-Patchwork-Id: 13726244 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 99668C3271E for ; Mon, 8 Jul 2024 07:17:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=AFhWGLjXxrpIBhuvDdpT6ZAZC88NAS6103pgQHGSnqI=; b=aNlE4txqJZOsU+41LbXggCHU5j P5jE5eNhH0qWSYkw47ZSGKHDxwA8VJFNKgKNRVHcrf7c4kCkuC2dtwmaium+kcyRZAPdloYxX1vsm ZOme4qB+AcRBXvyBkUjA0N0IqVjRHmYXvYRmUCz3qujCAqJCgEiub6vB3KNsBquylFFvGqK+zo5UN BSdeRT8FGyaMk1jfubVAl90tIwi5/sdEVZMsl27oqabo4Wuz9oRJmvFE4t7DKqGPPYBncEMyvTyd5 LqNWqaCO5lZnvtGMuyhsk1Q7B8Z1Itd6UeNx2QrJZaVT0BefpqbbEA/ua/UNw+yBSs7vXCpREuutP Fqsom5/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQicK-000000030Rb-2OWe; Mon, 08 Jul 2024 07:16:56 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQibb-000000030BC-3Iz4 for linux-arm-kernel@lists.infradead.org; Mon, 08 Jul 2024 07:16:12 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-52ea7d2a039so2546877e87.3 for ; Mon, 08 Jul 2024 00:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720422970; x=1721027770; 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=AFhWGLjXxrpIBhuvDdpT6ZAZC88NAS6103pgQHGSnqI=; b=Gbay2GlnFayBdTL6kYzzFDrgMlxfuNkcDk4cPfLLGyeA4F6KyofL3yBOUyn9SzdI3+ L9KfUJlKF8ufNs+GasKu5AhggaGZs6914jLhed45IWQ/ETWyOBv8BAdmDnfsatTNcZQM vV8FWVcrlWThOvWV6mgidi1JnlZwu5btEUBvMaHln45aWw/RiTtYGW7lp3rxKbh9bOmj pJUWIrHnHUhfyuOpPGQA+6ancsOSIkQfePWbrPLDFeepffUMbTORWknlOViQpClyi6Pm r5QaxXKMpeq1BZWTHcwo4hqJD3uGY0v5wLdJWoh2eVCH9nXx8i6mCx2k3JzLPePk44qt dwdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720422970; x=1721027770; 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=AFhWGLjXxrpIBhuvDdpT6ZAZC88NAS6103pgQHGSnqI=; b=YYNG2srBoQGIG23fcJsTSjNP7mjLcRzCEX4lka3mLYZsDIcXszqGuyeEwGF/SmsW4H KHDlENToxcyg0Ywl0UMZDd7/v++gXSFYRBAmqhfq8UICVJ8m3Tw/7pQ07+eSr3g4i3aD 8sekXu8vorpVyf6+BSk6OSqc+g0YTKE3PwHgHXrRIlKd58wEU3MfDvNX8HlHmgGuUDZU mhUbhtRxaSBAj+tTcPkdwoYKdPXGVoEHeZJ8u+IlnJUW+xRDatLW0hfUmrsIdIa7XG// RDhTfFtpG8wYp+O/+OrB4TXCjmjL1EUNI8IP/6BXyNq5m11y5MlvCbKJVH0iL3iG9u13 duYg== X-Forwarded-Encrypted: i=1; AJvYcCWPcioGNvGVvrkRJUjtKCJvhwnHeA3W4KZBpk07fH49pZdnWcjGPve4EQ/e+kTHqzmZsXIaA3gQ6nGucqd1WmKENqIEIF3TfeSK9LO7YWp0SuPqXDU= X-Gm-Message-State: AOJu0YwEhg4UbPmOHQrnjXmaV4lcsVYOo1aYF8boFzsri2WXk+1FRJKC fLuiLIK/MHcrRrnJBD6xb5EU9+p+Wql2ks8vMe9oMohxz2wuDymA X-Google-Smtp-Source: AGHT+IHcUMix5VO0zk46X4Nnwk0P0vgPnVPmSZzcgZqI6KRivT5tw5aOfPyuvEsFnIqmFpIZxb0+Ug== X-Received: by 2002:ac2:5a50:0:b0:52c:dbc6:8eb0 with SMTP id 2adb3069b0e04-52ea0632ac0mr8398974e87.21.1720422969742; Mon, 08 Jul 2024 00:16:09 -0700 (PDT) Received: from eichest-laptop.toradex.int ([2a02:168:af72:0:a786:d603:1c55:ced1]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3679dd5ea09sm9994564f8f.65.2024.07.08.00.16.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jul 2024 00:16:09 -0700 (PDT) From: Stefan Eichenberger To: nick@shmanahar.org, dmitry.torokhov@gmail.com, robh@kernel.org, krzk+dt@kernel.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, joao.goncalves@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 , Krzysztof Kozlowski Subject: [PATCH v5 3/4] dt-bindings: input: atmel,maxtouch: add poweroff-sleep property Date: Mon, 8 Jul 2024 09:15:50 +0200 Message-ID: <20240708071601.7571-4-eichest@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240708071601.7571-1-eichest@gmail.com> References: <20240708071601.7571-1-eichest@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_001611_850904_C6819B9D X-CRM114-Status: GOOD ( 13.27 ) 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 Reviewed-by: Joao Paulo Goncalves --- 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 c40799355ed75..8de5f539b30e3 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