Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp624844ybb; Wed, 25 Mar 2020 06:36:39 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv44Iowkj3bDwU6OdvT+DQuBq8aYeq+hdQNHRFNG0IF6K8Se0Qcm+HcojTvWKDA6+IvWMIi X-Received: by 2002:aca:55ce:: with SMTP id j197mr2399997oib.84.1585143399105; Wed, 25 Mar 2020 06:36:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585143399; cv=none; d=google.com; s=arc-20160816; b=utY/eAk7K62P+RzYmaxc11i+Bswy787DX1NhM6nIb85CLdJh/+QFJcIeY2zlPOvbh1 0IV7p+Ue9uw8ZtmesNCICrVPGdNHutsEaq0fFBLtDh1LB8xXh1e5Kw3PEY7K+Sqq1el2 9F6WLYKZJnEcQvrlYf4SavVJ4NF30s9yUyiJopNXENsYH87vfP8A2lFB+TXnclw0Y3ES TKJQEs7DOsyvzpYKz7SaS1IU02rciAQizE2jAxljan0mjGf7U15LQ337YuLNbzKi+F5r BOiuSHkqQ0Lh/eW1azZ98vUytFfumILMa/fCHTQuPPX5QjNtjLrRww81KPEtWSSjqMTj wBLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=RrB5G7MRV5b6ewSXJrnmIn83oJN77qX3WLyPylufE1g=; b=e2X2g0K4IvyBopyr7EKKF7YCRYHu/wht1eLp8pvh5ajWQDF666RJ/xKhYow0qbio8+ kuBUI+GRxGPEqu8QoCaWeksbX1UT7tjk/534dU0ybb31eEW46G4QlkITzw2aGu+4Y9+8 rxmtX6FMGdU0eNvh32Nj/kuat2SOC77VWo3r9iVq0vWB/I+HhAPUQKnjIK+UUaAQS4Ho aMrFq0BAaZgm7CS3z+MtEQa3B7SunIHyRb6yNnSgBK+2tdtvTg/V0cBIknS3Zhe8T1q9 gfdQFbJ7A8zzKajq9RXTZpKTQfKFedREN9WDFksCziOTb7ONH8VW4fQRL2meeOWRa4c+ 5gzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t132si10993747oih.173.2020.03.25.06.36.26; Wed, 25 Mar 2020 06:36:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727704AbgCYNej (ORCPT + 99 others); Wed, 25 Mar 2020 09:34:39 -0400 Received: from esa2.mentor.iphmx.com ([68.232.141.98]:13527 "EHLO esa2.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727684AbgCYNeh (ORCPT ); Wed, 25 Mar 2020 09:34:37 -0400 IronPort-SDR: 7nni9Zo7tnukpIXzvDEi+pU8gYrdwiDjEPIbG+gIqbfu6jJNbjE7QJq5AYfSu1+a3MB4IH65q9 eS5bqnfM3duUozuu6fGkPrqmzF6U1CROsoRY3dsvCGo5T7lSfFAbaRi4V8tBn/i2JCTvIwkarV uWGeUL7RSrE76qXkw54QMpY8GMfwj/UaNrBKjJMwV7RnzL/REbTNXrQ5MZOc1IzOzFSY/zrVq/ h3QiBevk/wZYuAdQqEtwz0Z7xscye/29WYRFR9f0LussT0xfAR1DoXnKagvwKhxWlaMpcQwGbR U9I= X-IronPort-AV: E=Sophos;i="5.72,304,1580803200"; d="scan'208";a="47010605" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 25 Mar 2020 05:34:37 -0800 IronPort-SDR: cOL0SCIZN/83MrGMSeQXFfuBJ07pjr11Z+8TrlZ6C5Yr37oHxem4FGdgMAa3fWQmUUQmfpOZo5 0euTDGfedr34YY3PEhpkxST8/jy9K0RBmkExxFY3KH1nTY0PcuhyL29a+fdmpMX+kjhCuytBkX z4L4LvZKL1yUBr9F0ZxVzQJzF+tsZZj30OeHjcMkwluXvULbydOEwP55O+5mH0yYghF+wHushr NhEN1hiB5x1K+JERI1Tk8rltps8QRn5WChXg+CmnmdlhomqaHBEbi4E9nTHy1yjf7afd/zQSDM 6AQ= From: Jiada Wang To: , , , , , CC: , , , , Subject: [PATCH v9 14/55] dt-bindings: input: atmel: add suspend mode support Date: Wed, 25 Mar 2020 06:32:53 -0700 Message-ID: <20200325133334.19346-15-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200325133334.19346-1-jiada_wang@mentor.com> References: <20200325133334.19346-1-jiada_wang@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add suspend mode support for atmel touchscreen driver Signed-off-by: Jiada Wang --- .../bindings/input/atmel,maxtouch.txt | 6 +++++ MAINTAINERS | 1 + include/dt-bindings/input/atmel_mxt_ts.h | 23 +++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 include/dt-bindings/input/atmel_mxt_ts.h diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt b/Documentation/devicetree/bindings/input/atmel,maxtouch.txt index c88919480d37..e28139ce3cae 100644 --- a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt +++ b/Documentation/devicetree/bindings/input/atmel,maxtouch.txt @@ -31,6 +31,12 @@ Optional properties for main touchpad device: - reset-gpios: GPIO specifier for the touchscreen's reset pin (active low) +- atmel,suspend-mode: Select method used to suspend: + MXT_SUSPEND_DEEP_SLEEP - use T7 to suspend the device into deep sleep + MXT_SUSPEND_T9_CTRL - use T9.CTRL to turn off touch processing + MXT_SUSPEND_REGULATOR - use regulators to power down device during suspend + Definitions are in . + Example: touch@4b { diff --git a/MAINTAINERS b/MAINTAINERS index e48ab79879ac..350ae664e6f0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2873,6 +2873,7 @@ T: git git://github.com/ndyer/linux.git S: Maintained F: Documentation/devicetree/bindings/input/atmel,maxtouch.txt F: drivers/input/touchscreen/atmel_mxt_ts.c +F: include/dt-bindings/input/atmel_mxt_ts.h ATMEL WIRELESS DRIVER M: Simon Kelley diff --git a/include/dt-bindings/input/atmel_mxt_ts.h b/include/dt-bindings/input/atmel_mxt_ts.h new file mode 100644 index 000000000000..41ed0f8111aa --- /dev/null +++ b/include/dt-bindings/input/atmel_mxt_ts.h @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Atmel maXTouch Touchscreen driver + * + * Copyright (C) 2015 Atmel Corporation + * Author: Nick Dyer + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + */ + +#ifndef __DT_BINDINGS_ATMEL_MXT_TS_H +#define __DT_BINDINGS_ATMEL_MXT_TS_H + +enum mxt_suspend_mode { + MXT_SUSPEND_DEEP_SLEEP = 0, + MXT_SUSPEND_T9_CTRL = 1, + MXT_SUSPEND_REGULATOR = 2, +}; + +#endif /* __DT_BINDINGS_ATMEL_MXT_TS_H */ -- 2.17.1