Received: by 10.223.185.116 with SMTP id b49csp95415wrg; Sat, 10 Feb 2018 03:12:38 -0800 (PST) X-Google-Smtp-Source: AH8x224W7X5/tFQV/3P4/fJ9DbrkYnxZWtDSqGre8VUue19z0BIBrxzsWHo8HRAA2tZOrjIAFwQi X-Received: by 2002:a17:902:930c:: with SMTP id bc12-v6mr5391007plb.328.1518261158400; Sat, 10 Feb 2018 03:12:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518261158; cv=none; d=google.com; s=arc-20160816; b=v0sBvhyPUe3CjO3pwEipMrMT5ipfDLsEi9GMcEBEC6dh94SK1PxtLM2vGleFLKg+PF oa406L+UlP/BsHl8pi2TT/3LcI458vF0aqOMvkhxt4uWI6jmIHZzE4znpt11qRY4aEkH 8IsrsYGmKGk/TzNLU3r+QkxVshTRHEqog90hLT+8IGnnu5Sd+zVxlkbg2mWDe7boqbFI M4Eh7D6E/4ufE4Iwm99NFakJLcmV7RA21cc0YEyZxPP0zj3hCvPs3l0CN4enQyihdBKq jDnsSGGj4AU3M34UIksbc+0f+ATJvv5wvAxLZ7IKd9ynmsOJU/m09qe+Fpdel25sRVDg K7Bg== 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=5gSAtlceE0JvWqtCLUw1LCr98z7YeoVQsyetZunZJQI=; b=zQXAG14lK+ou3kby1ZqtfjI5A5X3fsWMqYzDmj+R7ITZxCS8beJzlG79w83a+IOGlD sRxVUflVB0/RVIEv/J6woHkkBzliu/m5xZ4ssT+DjVm9+cV2+CVOrYFByccFSkpXosb9 CJahgSs3fKWLNHOI0Jj17EIsC1n0eAaymTqU3ryNDo2IJrl/rGMRQI/ZH/gowEmV9v/P 7Dd4rGn6YyaUiu9Z8L25ylCkyFDzy9ZUww01Y7pfwdjldMkV3pFG+Nn2l81zQ0Rnz4Fa NGU3INa3SxvJApsSDRZrhnZRpTnxmKI3/CrfzKSPu/iZrAfUWGr0bbTzjLe+P9mRBg9v hJkw== 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 u13si2619167pgc.609.2018.02.10.03.12.24; Sat, 10 Feb 2018 03:12:38 -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 S1752157AbeBJLKy (ORCPT + 99 others); Sat, 10 Feb 2018 06:10:54 -0500 Received: from regular1.263xmail.com ([211.150.99.131]:33230 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbeBJLKw (ORCPT ); Sat, 10 Feb 2018 06:10:52 -0500 Received: from jeffy.chen?rock-chips.com (unknown [192.168.167.177]) by regular1.263xmail.com (Postfix) with ESMTP id BAD2D5D52; Sat, 10 Feb 2018 19:10: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 2253336E; Sat, 10 Feb 2018 19:10:09 +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: <6ce516f6756b90aef038eb45eb3eb607> 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 12489XADNHN; Sat, 10 Feb 2018 19:10:48 +0800 (CST) From: Jeffy Chen To: linux-kernel@vger.kernel.org Cc: briannorris@google.com, 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 v2 2/3] Input: gpio-keys - allow setting wakeup event action in DT Date: Sat, 10 Feb 2018 19:09:06 +0800 Message-Id: <20180210110907.5504-3-jeffy.chen@rock-chips.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180210110907.5504-1-jeffy.chen@rock-chips.com> References: <20180210110907.5504-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. Signed-off-by: Jeffy Chen --- 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