From patchwork Mon Feb 22 14:42:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Dimitrov X-Patchwork-Id: 8378651 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 50A62C0553 for ; Mon, 22 Feb 2016 15:10:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7391420453 for ; Mon, 22 Feb 2016 15:10:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A66E1204A0 for ; Mon, 22 Feb 2016 15:10:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aXs6A-0006qq-1S; Mon, 22 Feb 2016 15:08:30 +0000 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aXrhy-0003L4-OC for linux-arm-kernel@lists.infradead.org; Mon, 22 Feb 2016 14:43:32 +0000 Received: by mail-wm0-x22c.google.com with SMTP id a4so165909291wme.1 for ; Mon, 22 Feb 2016 06:43:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Eq3bdIQhWV7vwxUkq2xuFO6LzR7X2zdyu1DPHwjvGj4=; b=KdGBRHEnrll+8uQkJIBp/m0eZCLbvc2gTNxBAlbehUwq83QIWgeNe2NQQWeIe3wSlY 9gXg9pY7FzU5XtaWvCMDF1Jj9sDZrh/OQEVn6s9ld1MKc5804XlWMqj5AkpgIiGMPHHS ieYi73OWO5xqVMmqm35viiKWVme/KyUAq+/+psjUAK5Yo3ENAJ/srNES2OAuqFfncr1D r/Pynh1Gn6apAAU4m0Tn/BEqvIaQmBWaTrQAYrRIaBWvhQ6ghPXNUuUjXFTNfeSVD9Rf 2rebG5ltMOHY5a/c6K2i8uN4k4gPD6sh8phz45STjvzSbT1W9r9a0XcfsBjZrKIh1nmz 6LAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Eq3bdIQhWV7vwxUkq2xuFO6LzR7X2zdyu1DPHwjvGj4=; b=EUml//uTuzTETPD4HgZvwbflXZ2bkZcMU/DhjeqKiteI9uVD1YgRjJ0akrDWKKmB5V q9mIGroIwG+vHor9Eqv+k9r9etcyFGUAyoI1moWA5LSGaRTo40zb/jPkc5RvKzlD2TQF BbhSjPnEBkxoRV2xWhdCpEIBkjToVVrmLgTglcIYrJsPcDF0N4NRNVbL9SakZnzUATTY RF+8YaBdDi/z4sL9Kd9zOy52qpCzDnUk52CF3q2ZJx8xvw1KxYLoc4PbFGrb8v7oPErL 45FO7gmHSHwYa3F0SAjaVI4GJigsinf+KXpVDIzTgtLab8V1mppYoLWHeHtgvjUQ72uP G6AQ== X-Gm-Message-State: AG10YOSbE3VXGFuXT19Lu7NF8lIojh5qgpn5NzuwJBlsuGbollWxzt78OqRvI+ECF7RbBg== X-Received: by 10.194.103.104 with SMTP id fv8mr32586549wjb.64.1456152189122; Mon, 22 Feb 2016 06:43:09 -0800 (PST) Received: from localhost.localdomain ([31.41.23.250]) by smtp.gmail.com with ESMTPSA id k4sm21516470wmc.12.2016.02.22.06.43.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Feb 2016 06:43:08 -0800 (PST) From: Ivaylo Dimitrov To: tony@atomide.com Subject: [PATCH] ARM: dts: omap3-n900: Allow gpio keys to be disabled Date: Mon, 22 Feb 2016 16:42:59 +0200 Message-Id: <1456152179-12558-1-git-send-email-ivo.g.dimitrov.75@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <20160212215326.GD19432@atomide.com> References: <20160212215326.GD19432@atomide.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160222_064331_111408_8806D98C X-CRM114-Status: UNSURE ( 8.97 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Ivaylo Dimitrov , linux@arm.linux.org.uk, pawel.moll@arm.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, bcousson@baylibre.com, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add linux,can-disable; to all gpios exported from gpio-keys driver, so userspace can disable them Signed-off-by: Ivaylo Dimitrov --- arch/arm/boot/dts/omap3-n900.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 74d8f7eb..f01a151 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts @@ -68,6 +68,7 @@ linux,input-type = <5>; /* EV_SW */ linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */ wakeup-source; + linux,can-disable; }; camera_focus { @@ -75,6 +76,7 @@ gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */ linux,code = <0x210>; /* KEY_CAMERA_FOCUS */ wakeup-source; + linux,can-disable; }; camera_capture { @@ -82,6 +84,7 @@ gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */ linux,code = <0xd4>; /* KEY_CAMERA */ wakeup-source; + linux,can-disable; }; lock_button { @@ -89,6 +92,7 @@ gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */ linux,code = <0x98>; /* KEY_SCREENLOCK */ wakeup-source; + linux,can-disable; }; keypad_slide { @@ -97,6 +101,7 @@ linux,input-type = <5>; /* EV_SW */ linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */ wakeup-source; + linux,can-disable; }; proximity_sensor { @@ -104,6 +109,7 @@ gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */ linux,input-type = <5>; /* EV_SW */ linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */ + linux,can-disable; }; };