From patchwork Mon Jul 15 15:31:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Eichenberger X-Patchwork-Id: 13733613 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 2C0F6C3DA4B for ; Mon, 15 Jul 2024 15:34:39 +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=lL8P6vbe0agVTPwdABu+8qLd8S acAnpvrVlSlAiWadMBop5cYt68LgxDaUqx0awydZmGaII1RbXRqcJaqsSSoiVv6cLPVufsIWqt3h2 nrLCoWvkHAJWYKept0cCoHMDQnS7u9e5hVVYi75nMARWuCUFy9VlVfouFDMNGIOphBI98wwk+lMMw 3EVByWWCKcvod+ATwI81MLIWgG2c+dd/btUkv8YsQX8G+wzaQoSrk4GIo9c58FUJ9Yb1sHenYcgLA FM3zN5Fr1sgdmd+faxpZ7hseclGJj9grKjXaGKXkG2+wT2J+Dn9u54dmzwExM0V0jeOCIQZ8nmejU 6Gj2jXmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTNif-00000007aZN-1AcR; Mon, 15 Jul 2024 15:34:29 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTNhs-00000007aFN-3UWw for linux-arm-kernel@lists.infradead.org; Mon, 15 Jul 2024 15:33:42 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4266dc7591fso30517355e9.0 for ; Mon, 15 Jul 2024 08:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721057619; x=1721662419; 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=HWoz2JGfA4HBwydB1lz3HFIfuzpdCY+HhxC5zg3GD2aNJrCdT72j3DQlE6z9ozOztS 51YPf1XHKqGoDoVHF3eDwGfzQ9n00iytIc64pKEZA9BOZAUdTcsElIc0z9uUnR/QAIPa nDS93wvbaKj9gAh6bRK9DoOQ6+z8WrQifidG8GC6J9irxrueVmNpBrcjUPVYBT/7Qn6a MsEkirmX0nbzj2wsIyE07xFuqi8qlYatLDp6JThsdjinqeM8Stc4WgkHczi63bAuEFNL +X+g+mZluVZ4qIZJh2WxWfNU6tDeeYXvP6KFpA+VtHiCaI/LGCJtCKAz8n6xTRL9l4kU b6kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721057619; x=1721662419; 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=SjhR+pOHuDAOSJgg9hNl1iVCL8GtMq+DydXNCbbkXEUuL7qDM4Qi8gZoO1UVMGlnCw kFGZ3MLzHBLvF+qnolDfUc9LAdcrzjQPsvq/XI0xxNwsf2cjnUtiJe6+IPYUEln+mW7T n2coW0ESXRyqyMKKWnSrFPaEqJc4Su9CYKNfnlcje8CVH17/RLZJt0MMC+qVUkluKI0p SMvIzIdtMs4iuiV7LMLln/kPetheyCLSSJB1K3iEsr9W3WI/vVIo0NMKfwomuOWe7ZHS B7vXBBmJJj2937k+zissdFnpW/YbA+4TDNpKPFLaEgof1dUlqgudVzwSZMFIQjh0xYaB Ns4w== X-Forwarded-Encrypted: i=1; AJvYcCXdKKE8u9EuzxCMRM4xLB/mPb72nGoe/hVIG1xyKGkynMW+zFy8htVlBel9OZF94EpVGNXI5SYQix0/+U/CXNvzS6NWp91GLoaZZBRYDhqzJjeP7l4= X-Gm-Message-State: AOJu0YzgFHeBDLoxVv7XmFZXuRv2kzuZh5Jn6GudHo6u9iZ42JY/Hhjk IhXisOBVOfTFl5OLo1aYb9/1NT+zYm2vQynuJcghyNuyMzYLAJCz X-Google-Smtp-Source: AGHT+IFiyTZE/+oE0xkUmOA7iwowc7q5KaPBKgyHBKRziOql6qdP2VyoHmCNFAkNIJeEzlryIGaF3w== X-Received: by 2002:adf:e5c9:0:b0:367:9639:66d3 with SMTP id ffacd0b85a97d-36824081d99mr79678f8f.5.1721057619043; Mon, 15 Jul 2024 08:33:39 -0700 (PDT) Received: from eichest-laptop.lan ([2a02:168:af72:0:564b:c18:f4fc:19ad]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3680dafbf4bsm6720866f8f.73.2024.07.15.08.33.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jul 2024 08:33:38 -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 v6 2/3] dt-bindings: input: atmel,maxtouch: add poweroff-sleep property Date: Mon, 15 Jul 2024 17:31:22 +0200 Message-ID: <20240715153330.91979-3-eichest@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240715153330.91979-1-eichest@gmail.com> References: <20240715153330.91979-1-eichest@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240715_083340_899376_FC47BA2E X-CRM114-Status: GOOD ( 13.14 ) 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