From: ivo.g.dimitrov.75@gmail.com (Ivaylo Dimitrov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: dts: omap3-n900: Allow gpio keys to be disabled
Date: Mon, 22 Feb 2016 16:42:59 +0200 [thread overview]
Message-ID: <1456152179-12558-1-git-send-email-ivo.g.dimitrov.75@gmail.com> (raw)
In-Reply-To: <20160212215326.GD19432@atomide.com>
Add linux,can-disable; to all gpios exported from gpio-keys driver, so
userspace can disable them
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
---
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;
};
};
--
1.9.1
next prev parent reply other threads:[~2016-02-22 14:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-10 17:46 [PATCH] ARM: dts: omap3-n900: Allow gpio keys to be disabled Ivaylo Dimitrov
2016-01-21 7:58 ` Ivaylo Dimitrov
2016-01-27 23:47 ` Sebastian Reichel
2016-02-12 21:53 ` Tony Lindgren
2016-02-21 17:49 ` Ivaylo Dimitrov
2016-02-21 19:18 ` Sebastian Reichel
2016-02-22 14:42 ` Ivaylo Dimitrov [this message]
2016-02-22 17:57 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1456152179-12558-1-git-send-email-ivo.g.dimitrov.75@gmail.com \
--to=ivo.g.dimitrov.75@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).