ARM: dts: omap3-n900: Allow gpio keys to be disabled
authorIvaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Mon, 22 Feb 2016 14:42:59 +0000 (16:42 +0200)
committerTony Lindgren <tony@atomide.com>
Mon, 22 Feb 2016 17:56:45 +0000 (09:56 -0800)
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>
arch/arm/boot/dts/omap3-n900.dts

index 20603f3f9bd07e273523398bca74256a3fd67150..2ae38dfea61eb1db2ce17507ba334f1756927181 100644 (file)
@@ -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 {
                        linux,input-type = <5>; /* EV_SW */
                        linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */
                        wakeup-source;
+                       linux,can-disable;
                };
 
                proximity_sensor {
                        gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */
                        linux,input-type = <5>; /* EV_SW */
                        linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */
+                       linux,can-disable;
                };
        };