From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 92AB7FBE5; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hHvi5Wy8" Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a22deb95d21so203445266b.3; 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:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0XSn0qtrctsj5NofJhols7aiVK9MkKubyEzCV4SaRbE=; b=hHvi5Wy8kXHz5OwyaSAVTVQBFIyIN74Y/xQLA1vdt0O7nnW/RRhoHioAqPwza/LTSJ 7ZqXmTFmmAb2tgBop4RwuN0GCNzjaXs8cceips6S2f0rrEKmhLYh4u1aTg4uOA1PGwLL wFa6zwqC/tadVHRV5tLh5plL9a4GpGdoqgjBS6zBwD3WqVWFEuYUOHKXZ5PAIVHac7oX +qS/OQYd+teXSkA4ygiGEp9pkp9C7dbITTcObkqgJ0mRuA1oXbyOoShaJQqpGknstdDL FY2Km2ku7vMrVoiAPqMqOsVgr/Lp3qlODXlVxwZLeE/XUP5WU271sEwaGIASa/Ay2Gf7 4Z4g== 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:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0XSn0qtrctsj5NofJhols7aiVK9MkKubyEzCV4SaRbE=; b=cwA+4atnj2nnlw5y9LW9SRu41FyNnpETBK0boJWp9yUIK99qi/IYJP2sqzviSb/6Pi BjBGsboenx+/Qhu068JQcxrFo4Aqg6jXvnlURilM6AlXVEobBmyEHSOQqe22uEoF+09E nJssaT8cKA1V1BU1UeIs9T7hAA4ST8J7IPPSOZJmtxLOtraNZkROxC22wL8lkfEcpHVw kw02Wr0XpB7xMY6phnhhZrOswjyX5D83QVwUr3PUpFuUt3UqxqF8gprbx5Cl7myG3Xdr q6seP6MGL66tUPaCjTDB3qFivCusBokdoArmgqGS9sbPPmo69pM9sK3c3OJUGbRfyEIx WlFw== X-Gm-Message-State: AOJu0YwA6GSHqfyd3/SJVPXOgQA/1TPSY1md496X/GYY15VlrwoqPwJn R4vctjKEMn3sYvDCJB4ZfsE= X-Google-Smtp-Source: AGHT+IH1WtUh4lLDLXG5IiblI45G3p6EXiy1nYiInTnkW1SJPSDVOYTwlRUoP94KmI9gaBCJDsAvhg== X-Received: by 2002:a17:906:198d:b0:a26:975b:a18d with SMTP id g13-20020a170906198d00b00a26975ba18dmr521736ejd.148.1703238786352; Fri, 22 Dec 2023 01:53:06 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 01:53:06 -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, 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 Subject: [PATCH v2 0/2] Add a property to turn off the max touch controller in suspend mode Date: Fri, 22 Dec 2023 10:52:56 +0100 Message-Id: <20231222095258.33369-1-eichest@gmail.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Stefan Eichenberger 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. 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(-) -- 2.40.1 From mboxrd@z Thu Jan 1 00:00:00 1970 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 64BF2C4706C for ; Fri, 22 Dec 2023 09:53:42 +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: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:In-Reply-To:References: List-Owner; bh=/vPmrIFdACP6Ew4AyCCqD9UDhPDkB0qefELEJpdTYF8=; b=nOoDQIz12qhRja Hol4CsLon9T+HqB87giUiml5vc6g/ScQoQvPrshs2efT08hGsS5v1OJSsNiO03/eR+HKG1oXy6Axs Eb70OIj4jnu+Dpe4gVS4XyEDgOBKWpz4vdbEp0LCR8pCZ4GL5A1ZZ0eNJgMOVCY6ZKyuhjP/T7I7v c+jSAz1AYQWPfP1Kc064S7ARapduG/ykdshY769x48Q1l5c7Hx2wIjUc2aLpv+5v0pFSD1tOA5fzV T8L1dDW2m5viicehSycuYCa9ryfHyfAU4lbRfBznmhvJBjC/tfNZn6WP5lfjcK8An+TlJnb1fhvyM 49Uv9I4gJ/xn6J6+cCpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rGcDS-005Tmx-0C; Fri, 22 Dec 2023 09:53:14 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rGcDO-005Tlz-3A for linux-arm-kernel@lists.infradead.org; Fri, 22 Dec 2023 09:53:12 +0000 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a1915034144so205330266b.0 for ; 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=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0XSn0qtrctsj5NofJhols7aiVK9MkKubyEzCV4SaRbE=; b=k+97usEUCyCbbhl/x0zL634en086JEW+wCN8OIaZEXMf1MCve6GgaNCU/5Yq8reibj 7Mt9HL+gPr+6+dU1SWj8SDtyfCP6j98zjicVM1RcLNxpEnS6yFfzEC0YHkjCCIxbqmEZ vT/sJ9yd8YLKW25KPB/jHG7zyr+wKXrUfRoYQOw/yBEazx60rOPYPDdHHalUhocUwvYp zI+g4GZCRK51R6zKWljAdNJ8IXODjR08HkogzavGFrilmthDODRPThdLCSdDArTjuT0e N8xrXhdBeHGrlz0f6og1SsvuywaflEoSNU9ftZROr0eIeELVfdj4dmb/ocxwk421tl3g VIzg== 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:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0XSn0qtrctsj5NofJhols7aiVK9MkKubyEzCV4SaRbE=; b=gVLl7fStlw8miYa1meH1bgyajV3Qd9AWYT9Vg+EdshSL8vY5GfUOymozt4rwsyDMJx 3hNGry8ZXqPMGJ7b9d+7+Df68ZZCFSLzYzosbzrh2zUujes8I4O+CzL3xm6gAFbleHEx jVZAgOrRhgvNgG4lJpB3PCyaN6fzK2Da/WmNSDVNe5cXms8+hTzzbqpQsAQO7LxRAwwe 8ZiHCd5a5shqToucC4zurVT98Qfr51WQNS44flwwYAHDYdYCGbPTr/gO2HeUKdz4Mfsk l5TAVEtUQQCxkUDZnXMpjaIH8CZAshkKCQPCFwhwli7c7bzT1KjuNhzC3wiCz7vx5JR6 eN2w== X-Gm-Message-State: AOJu0Yw+SmPHMTedPcADQCTGZ7VYzbYNGrZSGxfP/9TqwI04W5O0/cF6 q/kgUI9qKkxL0bNLLckUXU8= X-Google-Smtp-Source: AGHT+IH1WtUh4lLDLXG5IiblI45G3p6EXiy1nYiInTnkW1SJPSDVOYTwlRUoP94KmI9gaBCJDsAvhg== X-Received: by 2002:a17:906:198d:b0:a26:975b:a18d with SMTP id g13-20020a170906198d00b00a26975ba18dmr521736ejd.148.1703238786352; Fri, 22 Dec 2023 01:53:06 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 01:53:06 -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, 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 Subject: [PATCH v2 0/2] Add a property to turn off the max touch controller in suspend mode Date: Fri, 22 Dec 2023 10:52:56 +0100 Message-Id: <20231222095258.33369-1-eichest@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231222_015311_043425_EE33E579 X-CRM114-Status: GOOD ( 11.57 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Stefan Eichenberger 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. 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(-) -- 2.40.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel