Skip to content

Commit

Permalink
ARM: dts: omap3-n900: Allow gpio keys to be disabled
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Ivaylo Dimitrov authored and Tony Lindgren committed Feb 22, 2016
1 parent 69101b2 commit 05cf1e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/omap3-n900.dts
Original file line number Diff line number Diff line change
Expand Up @@ -68,27 +68,31 @@
linux,input-type = <5>; /* EV_SW */
linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */
wakeup-source;
linux,can-disable;
};

camera_focus {
label = "Camera Focus";
gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */
linux,code = <0x210>; /* KEY_CAMERA_FOCUS */
wakeup-source;
linux,can-disable;
};

camera_capture {
label = "Camera Capture";
gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */
linux,code = <0xd4>; /* KEY_CAMERA */
wakeup-source;
linux,can-disable;
};

lock_button {
label = "Lock Button";
gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */
linux,code = <0x98>; /* KEY_SCREENLOCK */
wakeup-source;
linux,can-disable;
};

keypad_slide {
Expand All @@ -97,13 +101,15 @@
linux,input-type = <5>; /* EV_SW */
linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */
wakeup-source;
linux,can-disable;
};

proximity_sensor {
label = "Proximity Sensor";
gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */
linux,input-type = <5>; /* EV_SW */
linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */
linux,can-disable;
};
};

Expand Down

0 comments on commit 05cf1e0

Please sign in to comment.