Received: by 10.223.185.116 with SMTP id b49csp3517747wrg; Mon, 5 Mar 2018 23:54:20 -0800 (PST) X-Google-Smtp-Source: AG47ELt94Hpew1n6INasJAoyU+6gOA++0ErquoM/fLzgMqtU/JzcErZg/ObyjvmIIsJYlfTW2/0E X-Received: by 2002:a17:902:724a:: with SMTP id c10-v6mr15799073pll.98.1520322860651; Mon, 05 Mar 2018 23:54:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520322860; cv=none; d=google.com; s=arc-20160816; b=ljlzVqlQw3Wmj0sBCOpWeFPLM/0HSSqr05N7KyJIe2EEUx4Ik36X5vHTLFAQKENA4S sgAkDxzJzdVXXYF4S0r8C5Apdu3/EOXdVz/YZCbp8t73B3tfjR0FPAszxP6PXDs/9wL4 N2HpwjdVrxzmdoiYmFDsfPJAj/MI7rCrBDP3IAMwWVviXgJv2HLsR3qxrLucxytjWhst molybvwnpj4vcwZNNbhQikH31c+MhQcAyBEwtBuN4fP4fdWEa/E96TzvkqoOqlp5FLud CIKdtbRg50Dyq2dOU4rdsM2bebxzMh3yXQ7jD0D0EwjIK9wom1K+qVrZb4LWOy+ps9We 5LSA== 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=yU1cZ98qiyhZVuZDBr7RwQJ22dyE+vWl+aWps/vBonQ=; b=KqJGWA5b9QgBy//U9tFBJ7nzqL7l3dN1fA0/U0ZOlxcSTF4xUPQIxzmn07l2d9QVxV 8pW4zJDAyvL1eGAfVbImrhOVoSMelOIoXzoaql31ftz/sdOxtjZPDEzoteRsF3AHDD0q Seh41Ko/nErZ/HhqEgJD7o7Xb8Ys7Sz/pKxdG2M5b+owpKfCqT9X7YZpFzyEhNaCNa5Q RH7X9wwvq6JsTMTuoZCm6cbg8gQ+nmNF+u+xaM6NCwOn0yeWW3dtIHsEcrDG3WtOi+fJ emWq95EygM/UKeLBGeuK0f3uE6N2WYuTN9jwyYWDXY9teRcl44OJ7VnTxvqElRcZ0eXx wsyw== 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 y1si9552544pgs.208.2018.03.05.23.54.06; Mon, 05 Mar 2018 23:54:20 -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 S1753257AbeCFHvx (ORCPT + 99 others); Tue, 6 Mar 2018 02:51:53 -0500 Received: from regular1.263xmail.com ([211.150.99.141]:58372 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750933AbeCFHvw (ORCPT ); Tue, 6 Mar 2018 02:51:52 -0500 Received: from jeffy.chen?rock-chips.com (unknown [192.168.167.175]) by regular1.263xmail.com (Postfix) with ESMTP id 56442B0; Tue, 6 Mar 2018 15:51:44 +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 F11383B0; Tue, 6 Mar 2018 15:51:35 +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 8988A6ZUS8; Tue, 06 Mar 2018 15:51:43 +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 , Matthias Kaehlcke , devicetree@vger.kernel.org, Arnd Bergmann , Emil Renner Berthing , Brian Norris , linux-rockchip@lists.infradead.org, Rob Herring , linux-arm-kernel@lists.infradead.org, Will Deacon , Mark Rutland , Catalin Marinas Subject: [PATCH v4 3/3] arm64: dts: rockchip: kevin: Avoid wakeup when inserting the pen Date: Tue, 6 Mar 2018 15:51:23 +0800 Message-Id: <20180306075123.20989-2-jeffy.chen@rock-chips.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180306075123.20989-1-jeffy.chen@rock-chips.com> References: <20180306074418.8879-2-jeffy.chen@rock-chips.com> <20180306075123.20989-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 Add wakeup event action for Pen Insert gpio key, to avoid wakeup when inserting the pen. Signed-off-by: Jeffy Chen Tested-by: Enric Balletbo i Serra --- Changes in v4: Include dt-binding gpio-keys.h Changes in v3: None Changes in v2: Specify wakeup event action instead of irq trigger type as Brian suggested. arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts b/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts index 191a6bcb1704..89126dbe5d91 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts @@ -44,6 +44,7 @@ /dts-v1/; #include "rk3399-gru.dtsi" +#include #include /* @@ -134,6 +135,8 @@ gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; linux,code = ; linux,input-type = ; + /* Wakeup only when ejecting */ + wakeup-event-action = ; wakeup-source; }; }; -- 2.11.0