Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1368528ybj; Thu, 7 May 2020 23:01:57 -0700 (PDT) X-Google-Smtp-Source: APiQypIceyri8nnXuHZO++8MEy2ZxSyqwb12UIXSVmIK15+0YNOUZUcAyUppVzUIAYJ0Z9gZrRs6 X-Received: by 2002:aa7:dd53:: with SMTP id o19mr782719edw.180.1588917717031; Thu, 07 May 2020 23:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588917717; cv=none; d=google.com; s=arc-20160816; b=ImfW9dSdHvnEKkVUbZgLcH/n6bE9tE0zEAA8Z/wN0a/FYnDNy0jh4DPTevOYaZvb7t THtk1ZzWTFI9GuAXZ4wwL8BaFNdfZlQVOYX/zvggU5ml2n3y4EFxaJoiAwxUx0HsVYuX 42BH8QEwRwXkn1gjqqukM7FIfV0Rg//66EzaadQWUaMtRXQjDLErKsZnewwSxIcBm43w lfGl/D9x/2R1a1S3WQJP5TWQSBQ0kJKBnVOUUnVT+3o86EjY45qVl3rJ1c5q5d7Z9XmH hf6qY15MkFwNSQ8TVQLtBW3DJucddYTr2VP74QAxibnzZbITWJng63bztQRtpJFyEddV TuBw== 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=Os9rYI6UnwRdd4iZ3vMPpHnHl8djA9im9cCqtjxM1BE=; b=psdYkqc+uQHY3KKhSaQIa5q6tO91mIQEayS1jZIhu6z8VZ/IUwDSn/6VhY9sGYdMNi W/22ZLUHuBZfm7aSSAa8tP0QCvtrm2FuCQVwkarOHD088LLTWxTvoRtnC8hI7nbpYo21 VWgGgbKv4exlTTXJtrLnyJL7FBBnZreYM2KELxJ/KHJN+Wfdvtlg1P6fKjkBptikj5iP W0Gn70/UmHAMkAsno6xFs5aenPxbIyNjwKvrUNfaMh+LzazNPtF6kr3vdYi/eUUNrU0b ec2bB52aP7cUC5sH6ttT8dhnn5fm1OrGkV88H+u18OIWXjaUhcLtIq/vURy2QB6HK+7D +U4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p11si381021edm.108.2020.05.07.23.01.34; Thu, 07 May 2020 23:01:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727822AbgEHF5z (ORCPT + 99 others); Fri, 8 May 2020 01:57:55 -0400 Received: from esa4.mentor.iphmx.com ([68.232.137.252]:45878 "EHLO esa4.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727811AbgEHF5w (ORCPT ); Fri, 8 May 2020 01:57:52 -0400 IronPort-SDR: 6gKsVrYAqmqZfcYGnVANbvlxzXfwGApc8dokK7QofuGszbU6duZbgVCfJFoVaki35TST0YEkxv qp9+bcMteq9sIfc0+lYq4n/LRmbVia+PvINVeu55zEF9ekigMOQG+z5fgeMrSTlSErl6LmAP+O q9MbzNVxDsIsrOT3YEYWSj4gYIxLET5REwps/isL9HlSI6yeN8aZttKzo3NHPeugWPiUSVi+HU c3/mhDQUZYANRnPcYhmTQWHZS6LA1ocn0Qzb4109JuarCD/aC/Nr8lsbequ9zTGmuyz2VCLddn 4GY= X-IronPort-AV: E=Sophos;i="5.73,366,1583222400"; d="scan'208";a="48710578" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 07 May 2020 21:57:51 -0800 IronPort-SDR: nMn5ajkd0YAzSbu30xJC/8o9YRgUcKe8DpabIqAFBA6I4DQhgeq4p6btfGS5J+GtZIWntCdslj +WjeAL+dOuckzEynOKCW10TM1eKdG5iTlAtNAy3Ot/UbKBI/5XmAznEyR8wAPXDnfEAfP2L8di 3d7x3DxJrHGxxjHodsocjgLVX77CCVTDuLQEEKd6x/Bx45syqWvOG67zGqdJSsv5ue2eseu4pq SYw6ezgsRFHmdUd7/0Gan7WSuGCzIu7ECVifWX4JHYZmKdiiBh0IdTvOao1heB9m6Nbda6vy5U Rzg= From: Jiada Wang To: , , , , CC: , , , , Subject: [PATCH v11 13/56] dt-bindings: input: atmel: add suspend mode support Date: Thu, 7 May 2020 22:56:13 -0700 Message-ID: <20200508055656.96389-14-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200508055656.96389-1-jiada_wang@mentor.com> References: <20200508055656.96389-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 | 9 ++++++++ MAINTAINERS | 1 + include/dt-bindings/input/atmel_mxt_ts.h | 23 +++++++++++++++++++ 3 files changed, 33 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..530312fc7a99 100644 --- a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt +++ b/Documentation/devicetree/bindings/input/atmel,maxtouch.txt @@ -31,6 +31,15 @@ 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 . + +- vdd: vdd: phandle to Power supply regulator +- avdd: phandle to Analog Power supply regulator + 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