Received: by 10.223.185.116 with SMTP id b49csp6000032wrg; Wed, 7 Mar 2018 23:34:15 -0800 (PST) X-Google-Smtp-Source: AG47ELvj/j3FlPwAyc9YIIVzWB2wbdksw+tof0JByMqtvNjvMnKX+HzXwSnEGItmAO7IOMeyifJt X-Received: by 2002:a17:902:6881:: with SMTP id i1-v6mr7524984plk.259.1520494455236; Wed, 07 Mar 2018 23:34:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520494455; cv=none; d=google.com; s=arc-20160816; b=PE6HCoORpJ3l97up3bqoBztus0vQ/BFwAYXpYX4EUNL71w+gsRcAvwGKx4tj/CazQM QpmiWEXJRU5U7tVAMsvMAVezQbOCdYPR+NA2zfFkfXZZ3jhLBwCehcp+0HAT1z+RiICb a52jJh1VV8s233wJI6e287kc9JFkjEcMCOW7fzEKVb/7cEb1VxM+bK+acU6I6y2WNKt4 yDLEH/AnIYcLXaxUUl3SEB/zAgKvRVDypZvTUSd/9//CeFhfBZrIfgTqDC1/GNQCT5Cc fMLq0jVU7VuJv0T3C65qXijiuIw7GLaYl4isrPLH3qowmo5+7nxcgXNmeKUlF2iTc7k2 sPXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=B/i/xnG+mBZYKllN8Lx37Jrgu5oiUnEp0N0rLmhizZs=; b=NqjQH4gWiWOO6aQiU6FbGUI5qkKP5YvajUBGHgiusWKrCZYzNGgZ1aafLr1cCcLzVm AkFYB2cTQiIGH7uXLBZq8NGAX1NPy6xTuDoBntXA7EtTGm4JLHhfHcYUdaQ6WPMXNV6l cuzqf2/wFkQ3U8k2x6UlkxFWQnE7+bXQhsJWBjuOySozrcYfzlAogXcjNIt9E9W6EvsW ddqEzB5+Nd8cm35+yTHfA81kvTVRu3s/9skDOTyRHWvnLLU7RAxpigkXt18x3BF3hhO8 dqVwThzLmv5udFqWCqkiM2RjWwHqeUZF5trmEXTTQ/tXOOudeDnPEIPyi8HK/v1QHOrx vjCA== 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 l25si12819703pgc.127.2018.03.07.23.34.00; Wed, 07 Mar 2018 23:34:15 -0800 (PST) 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 S964869AbeCHHcz (ORCPT + 99 others); Thu, 8 Mar 2018 02:32:55 -0500 Received: from regular1.263xmail.com ([211.150.99.140]:44065 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934960AbeCHHcw (ORCPT ); Thu, 8 Mar 2018 02:32:52 -0500 Received: from jeffy.chen?rock-chips.com (unknown [192.168.167.13]) by regular1.263xmail.com (Postfix) with ESMTP id B92564B5D; Thu, 8 Mar 2018 15:32:47 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from localhost (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id E01483D0; Thu, 8 Mar 2018 15:32:43 +0800 (CST) X-RL-SENDER: jeffy.chen@rock-chips.com X-FST-TO: linux-kernel@vger.kernel.org X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: jeffy.chen@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-SENDER: cjf@rock-chips.com X-DNS-TYPE: 0 Received: from localhost (unknown [103.29.142.67]) by smtp.263.net (Postfix) whith ESMTP id 17336GXVA5N; Thu, 08 Mar 2018 15:32:48 +0800 (CST) From: Jeffy Chen To: linux-kernel@vger.kernel.org Cc: briannorris@google.com, heiko@sntech.de, dtor@google.com, dianders@google.com, Jeffy Chen , devicetree@vger.kernel.org, Rob Herring , Dmitry Torokhov , linux-input@vger.kernel.org, Mark Rutland Subject: [PATCH v5 2/3] Input: gpio-keys - allow setting wakeup event action in DT Date: Thu, 8 Mar 2018 15:32:12 +0800 Message-Id: <20180308073213.8419-3-jeffy.chen@rock-chips.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180308073213.8419-1-jeffy.chen@rock-chips.com> References: <20180308073213.8419-1-jeffy.chen@rock-chips.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow specifying event actions to trigger wakeup when using the gpio-keys input device as a wakeup source. Reviewed-by: Rob Herring Signed-off-by: Jeffy Chen --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: Specify wakeup event action instead of irq trigger type as Brian suggested. Documentation/devicetree/bindings/input/gpio-keys.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/input/gpio-keys.txt b/Documentation/devicetree/bindings/input/gpio-keys.txt index a94940481e55..996ce84352cb 100644 --- a/Documentation/devicetree/bindings/input/gpio-keys.txt +++ b/Documentation/devicetree/bindings/input/gpio-keys.txt @@ -26,6 +26,14 @@ Optional subnode-properties: If not specified defaults to 5. - wakeup-source: Boolean, button can wake-up the system. (Legacy property supported: "gpio-key,wakeup") + - wakeup-event-action: Specifies whether the key should wake the + system when asserted, when deasserted, or both. This property is + only valid for keys that wake up the system (e.g., when the + "wakeup-source" property is also provided). + Supported values are defined in linux-event-codes.h: + EV_ACT_ASSERTED - asserted + EV_ACT_DEASSERTED - deasserted + EV_ACT_ANY - both asserted and deasserted - linux,can-disable: Boolean, indicates that button is connected to dedicated (not shared) interrupt which can be disabled to suppress events from the button. -- 2.11.0