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: 8377991 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 920879F1D4 for ; Mon, 22 Feb 2016 14:43:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B095C2047D for ; Mon, 22 Feb 2016 14:43:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DD581203A9 for ; Mon, 22 Feb 2016 14:43:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751049AbcBVOnM (ORCPT ); Mon, 22 Feb 2016 09:43:12 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:34547 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750733AbcBVOnK (ORCPT ); Mon, 22 Feb 2016 09:43:10 -0500 Received: by mail-wm0-f53.google.com with SMTP id b205so158626416wmb.1; Mon, 22 Feb 2016 06:43:09 -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=JeuIUNgseEPuDA992hNs/EHXDIz3LpDUlpvO1/5mbw7ES4mnVMbNyhZ3z04lgwtj/N ShMoApNkHA0usYkTrSR7lUShQ+DAnPAijC8rSrhBLOcDMYUwERA0Kbm91SwWJuUoAXsq RYpmTGXl4twVbh/xEFhL5TwPJHxdehMheCZxLcGA/ty+sGHYdupk15CBjX1BL7SpZY3d 8YCZ5+BHVCKnfWcUO2VUqfDOtSRTdZOllw1rSr5Jo13QtWHAFxZuVsIOwfwm+xHVwDwk BU0mxPFvNzr4kCOyN5NNgFvjqnO5DRBIjxazTaAMnnIhM9gDRlNjhxtvt4prLOMjS6t7 8vTA== X-Gm-Message-State: AG10YOQwcghYqywy0sd32VYWF4ljJ1vecU79g/FYC28xzOMX/vXgyD8Q4tIaDSVvjmP5kA== 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 Cc: bcousson@baylibre.com, robh+dt@kernel.org, pawel.moll@arm.com, linux@arm.linux.org.uk, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ivaylo Dimitrov 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> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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; }; };