From patchwork Sun Jan 10 17:46:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Dimitrov X-Patchwork-Id: 7997571 Return-Path: X-Original-To: patchwork-linux-omap@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 BB359BEEE5 for ; Sun, 10 Jan 2016 17:47:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 076372025B for ; Sun, 10 Jan 2016 17:47:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5D97520270 for ; Sun, 10 Jan 2016 17:47:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757333AbcAJRqv (ORCPT ); Sun, 10 Jan 2016 12:46:51 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:37416 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757267AbcAJRqt (ORCPT ); Sun, 10 Jan 2016 12:46:49 -0500 Received: by mail-wm0-f48.google.com with SMTP id f206so237685714wmf.0; Sun, 10 Jan 2016 09:46:49 -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; bh=BNSNKOn9fvdTp6d95U8gYwwlT55yRBgBo/XxHcvcGF0=; b=rcw3V7GYY0DyY4AykByHDMdjN1+D5RztpX+eYlmy7/Ff/19unnCYytL4h7MCxZlasA VfJ3ZNSWu1MVVRSJNskxyWI8BgPPMl2hEdA226dUxHs3KyhSIaI0l7qY5Ghwn3N5C3zE lS/9pvx/EFybTrcXtTaLr7ICj6cytw73gX5inSdO8Z70gTYyC1P3+mFu+eE1+1nJTvAn tkz8McTDNL+ZEJHl7bePTkYqgQg6E4Ra2hqcrG/cB51aWgkwPPjfKNcI390UJzSl65qT HGlqCJMZ/IcMuAPASVG3IeZ/wWhhQbQHOqyWA8zwsAC4TMmFXoccoiMvhX9xvjdqPN/O o/9Q== X-Received: by 10.28.16.78 with SMTP id 75mr9641163wmq.82.1452448008553; Sun, 10 Jan 2016 09:46:48 -0800 (PST) Received: from localhost.localdomain ([46.249.74.23]) by smtp.gmail.com with ESMTPSA id xx3sm57168076wjc.32.2016.01.10.09.46.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 10 Jan 2016 09:46:47 -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: Sun, 10 Jan 2016 19:46:30 +0200 Message-Id: <1452447990-22775-1-git-send-email-ivo.g.dimitrov.75@gmail.com> X-Mailer: git-send-email 1.9.1 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=unavailable 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 Acked-By: Sebastian Reichel --- 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 8ea924c..b58e8a0 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts @@ -68,6 +68,7 @@ linux,input-type = ; linux,code = ; gpio-key,wakeup; + linux,can-disable; }; camera_focus { @@ -75,6 +76,7 @@ gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */ linux,code = ; gpio-key,wakeup; + linux,can-disable; }; camera_capture { @@ -82,6 +84,7 @@ gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */ linux,code = ; gpio-key,wakeup; + linux,can-disable; }; lock_button { @@ -89,6 +92,7 @@ gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */ linux,code = ; gpio-key,wakeup; + linux,can-disable; }; keypad_slide { @@ -97,6 +101,7 @@ linux,input-type = ; linux,code = ; gpio-key,wakeup; + linux,can-disable; }; proximity_sensor { @@ -104,6 +109,7 @@ gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */ linux,input-type = ; linux,code = ; + linux,can-disable; }; };