Received: by 10.223.185.116 with SMTP id b49csp3516838wrg; Mon, 5 Mar 2018 23:52:57 -0800 (PST) X-Google-Smtp-Source: AG47ELtgHPwlunMWEobRk3c3/F7jHnMttCJvxUnxcatQRrxiXkU7PcuVSEaVzgaenTI85OzB+yXo X-Received: by 10.99.179.14 with SMTP id i14mr14374289pgf.45.1520322777267; Mon, 05 Mar 2018 23:52:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520322777; cv=none; d=google.com; s=arc-20160816; b=SoT0aALUgG2jJyPylX+fc3F1IooAch1uN4+2SW6FNGmaElcwNrsKm8Pdlmg3KFZb1T UtQIy7jW8kaw9ReV/oZYPJjGeuMG11/xEptQkKf7fX8AFJ/JCX6ZJhF4vTsP3vHeEqT2 vabn0y0LY6XMvvdlkuORq9RspY+5SwQdX6IL9X0nDWUL1DvxJHvjDn/fUNianzFPCGjb hiI70EkDoopftEa5K9+tyR2N1/UYl+cccyQ9vCb+bU/b//lnCudDvQJhPnUVjUOJ5MV4 O7IHz9XUlQAe1okw2ADCJ6PH2SoFWaQRbCkcOBkaYpGzf9ZQOIJMNYcnF6besW1vUWvm T66w== 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=55Wi+zEhTPvGqOuaNlvNgEOqZXjshisMfddvheAZHkQ=; b=mYAe+wW9owlptH9DubF+AEik8tyFCpvMteaheI5bFNz6aDBw6SpjZ/NyMfl0E2jsNY EHb5l31aEdSNupQI+AaRiGLCSpR1Oh01h0p1PtjHxpnUk+YZ+QZnFWowSVRDc940OTc6 Pa411j/wi8/b3MToTHc6YQebwZ8ogthVD9cLThIesV6DzsdSBjRktqis+XX+lGlZFLTU q3Ed8q79Z82GFKwsKuiV32QRlauK6xdQOsz/tPMgXiHvRVqwe6FG1GUix96LBZfBjKg/ KW2Aq6AcGiln3O/wyVKdbwSOE9OOOyu5Evaa/DTnHjorGb1ERj8VnH2lMxxLNUX5UvfU n0Zg== 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 73si11621459pfr.363.2018.03.05.23.52.42; Mon, 05 Mar 2018 23:52:57 -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 S1753206AbeCFHvk (ORCPT + 99 others); Tue, 6 Mar 2018 02:51:40 -0500 Received: from regular1.263xmail.com ([211.150.99.131]:56467 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750801AbeCFHvi (ORCPT ); Tue, 6 Mar 2018 02:51:38 -0500 Received: from jeffy.chen?rock-chips.com (unknown [192.168.167.84]) by regular1.263xmail.com (Postfix) with ESMTP id 1784062F2; Tue, 6 Mar 2018 15:51:32 +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 1969E366; Tue, 6 Mar 2018 15:51:26 +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 266658Q12H6; Tue, 06 Mar 2018 15:51:32 +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 v4 2/3] Input: gpio-keys - allow setting wakeup event action in DT Date: Tue, 6 Mar 2018 15:51:22 +0800 Message-Id: <20180306075123.20989-1-jeffy.chen@rock-chips.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180306074418.8879-2-jeffy.chen@rock-chips.com> References: <20180306074418.8879-2-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 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