Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp752581ybg; Thu, 19 Mar 2020 08:09:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvwJBqISiwHcflgbKrft5sjvBFuF8zVzhvOQBo2UHTYNpUDZrfyV0Kia7oAjNnVOxy7/B8y X-Received: by 2002:a9d:3d65:: with SMTP id a92mr2555139otc.326.1584630576774; Thu, 19 Mar 2020 08:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584630576; cv=none; d=google.com; s=arc-20160816; b=sY66YEvbxD4ueRAZjWO76CDHAFjrFJkLRqXfzIbTtXCn+nmSl6DAQ3OpRbxOryWRhp DBusuvG2dcpOmSPcG6e4UZ+mDL44w/QPI9077dtP16FQshczTs+jzDBwdNTO3tRIMlxK e0tKaZisixIX30fCoQOucCiWcmoZkWFoteYzNxaVcsjiNRGwD1Eyd8eUOKPJWJfn5X03 d23fUenJRnGBM68DUHL8ZDGy3mhXccnlwUB5yfMm6kvg7/0z7It5xNbpcmUgN3Vmf8X3 cGV+Z+Dq4dolMQKBU6OD4b4TYg3RknpE+S4g6tNagvB0n2MkFPnS6mkvqtw61HwhSq0F be7A== 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=gB78Sur87Qp2RYgDhUzBcqY5s5VnuFHhO7AfJmIBurphZNsz+6DmSUEEG3+p4qDGd0 npmgL0r5ju0xrlMIn/Bsz0M/yUYMOLfwjtQ2hLXsk7i+ES2Y5YttK/Ip0UQJ5DSVEWdX RnknYPzjRiF57mCzWMoeDxOTZIDDgz3Mfb5o8jrZdk+39+cZJsdXDDWGuFjKuVlQMTJL i/R4rpPQjHdI10R8INaTSA3brfppZtsCnmMhIIMIo7CyL4Bc0U/0rdXpdcEO8EWryIFa Pz9pK/UFMmznrVnBt+yLfM0ZAs/SstdB5E80d3DQTa6wlRA4DvQ6LeIUa2RID1EHQV5+ PMPw== 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 m4si1501258otk.132.2020.03.19.08.09.06; Thu, 19 Mar 2020 08:09:36 -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 S1727781AbgCSPIo (ORCPT + 99 others); Thu, 19 Mar 2020 11:08:44 -0400 Received: from esa4.mentor.iphmx.com ([68.232.137.252]:5928 "EHLO esa4.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726912AbgCSPIo (ORCPT ); Thu, 19 Mar 2020 11:08:44 -0400 IronPort-SDR: mX/mF8i9E4LParg3Cw+l34119zw9wzWI7U/RAfLBA3H0gcpX4tGtvHTowLGUxFVpqNyy2OvTXf AibtdvNaS8v1QkN1M0XdcxGJxm7pk9/+4jO2XKdElA/5XAnR2PzXHQlCPtHw9K5TfNFKAY6quB oOlTHZFW2kBE3Gesyg/oeTwOk0gqwSeQ8CDWKRZ8/p7A5DHIntvtYr795jEXrHzjwUZq1tFIrg 1chzlYkAv4JHYOFO7mSNrsj1rB5vQcfiGJ+hkydKsThXXsUGVko+llw0qL//EdcV2GKVn6/mbg /e0= X-IronPort-AV: E=Sophos;i="5.70,572,1574150400"; d="scan'208";a="46926777" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 19 Mar 2020 07:01:17 -0800 IronPort-SDR: 8cp5apIWSgCOeGSuyZn0SAWGtSTO2dfEkughUIyAl9Ip2uIsINXEY97MAdqgjsUNPbkiNXhRm4 sr3ekubsGnbh5xTPO3+lp0zPo6gVhVaT9tA4X2AYfZGBg2liiQxgbNVj6+Oi5klnbCpdayLP3q k8S7b0aCMiSEtNMtP2sDAs4w1R1KUY2N2VLkA01s+pCYPBWXkxp+TKxfepi1wapg7QTfszcL3d 1G1uRxuJ/wDWzbYCj/+9sgDOLDD6+9VkDGCehBGRQeU2EN1nLdZfYfVBbkJOKjMHGhft5OO/6+ j1c= From: Jiada Wang To: , , , , , CC: , , , , Subject: [PATCH v8 14/52] dt-bindings: input: atmel: add suspend mode support Date: Thu, 19 Mar 2020 07:59:38 -0700 Message-ID: <20200319150016.61398-15-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200319150016.61398-1-jiada_wang@mentor.com> References: <20200319150016.61398-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