提交 05cf1e03 编写于 作者: I Ivaylo Dimitrov 提交者: Tony Lindgren

ARM: dts: omap3-n900: Allow gpio keys to be disabled

Add linux,can-disable; to all gpios exported from gpio-keys driver, so
userspace can disable them
Signed-off-by: NIvaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 69101b20
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
linux,input-type = <5>; /* EV_SW */ linux,input-type = <5>; /* EV_SW */
linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */ linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */
wakeup-source; wakeup-source;
linux,can-disable;
}; };
camera_focus { camera_focus {
...@@ -75,6 +76,7 @@ ...@@ -75,6 +76,7 @@
gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */ gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */
linux,code = <0x210>; /* KEY_CAMERA_FOCUS */ linux,code = <0x210>; /* KEY_CAMERA_FOCUS */
wakeup-source; wakeup-source;
linux,can-disable;
}; };
camera_capture { camera_capture {
...@@ -82,6 +84,7 @@ ...@@ -82,6 +84,7 @@
gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */ gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */
linux,code = <0xd4>; /* KEY_CAMERA */ linux,code = <0xd4>; /* KEY_CAMERA */
wakeup-source; wakeup-source;
linux,can-disable;
}; };
lock_button { lock_button {
...@@ -89,6 +92,7 @@ ...@@ -89,6 +92,7 @@
gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */ gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */
linux,code = <0x98>; /* KEY_SCREENLOCK */ linux,code = <0x98>; /* KEY_SCREENLOCK */
wakeup-source; wakeup-source;
linux,can-disable;
}; };
keypad_slide { keypad_slide {
...@@ -97,6 +101,7 @@ ...@@ -97,6 +101,7 @@
linux,input-type = <5>; /* EV_SW */ linux,input-type = <5>; /* EV_SW */
linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */ linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */
wakeup-source; wakeup-source;
linux,can-disable;
}; };
proximity_sensor { proximity_sensor {
...@@ -104,6 +109,7 @@ ...@@ -104,6 +109,7 @@
gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */ gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */
linux,input-type = <5>; /* EV_SW */ linux,input-type = <5>; /* EV_SW */
linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */ linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */
linux,can-disable;
}; };
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册