diff options
author | Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> | 2016-02-22 09:42:59 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-02-22 12:56:45 -0500 |
commit | 05cf1e030b7860f2e8b729d8197c5992ce12977e (patch) | |
tree | 5725a72c08726c564bbb3fed4913508198c0f3f3 /arch/arm/boot | |
parent | 69101b203590adb9a39ecad7b6789cca5eed2638 (diff) |
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: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r-- | arch/arm/boot/dts/omap3-n900.dts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 20603f3f9bd0..2ae38dfea61e 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts | |||
@@ -68,6 +68,7 @@ | |||
68 | linux,input-type = <5>; /* EV_SW */ | 68 | linux,input-type = <5>; /* EV_SW */ |
69 | linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */ | 69 | linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */ |
70 | wakeup-source; | 70 | wakeup-source; |
71 | linux,can-disable; | ||
71 | }; | 72 | }; |
72 | 73 | ||
73 | camera_focus { | 74 | camera_focus { |
@@ -75,6 +76,7 @@ | |||
75 | gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */ | 76 | gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */ |
76 | linux,code = <0x210>; /* KEY_CAMERA_FOCUS */ | 77 | linux,code = <0x210>; /* KEY_CAMERA_FOCUS */ |
77 | wakeup-source; | 78 | wakeup-source; |
79 | linux,can-disable; | ||
78 | }; | 80 | }; |
79 | 81 | ||
80 | camera_capture { | 82 | camera_capture { |
@@ -82,6 +84,7 @@ | |||
82 | gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */ | 84 | gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */ |
83 | linux,code = <0xd4>; /* KEY_CAMERA */ | 85 | linux,code = <0xd4>; /* KEY_CAMERA */ |
84 | wakeup-source; | 86 | wakeup-source; |
87 | linux,can-disable; | ||
85 | }; | 88 | }; |
86 | 89 | ||
87 | lock_button { | 90 | lock_button { |
@@ -89,6 +92,7 @@ | |||
89 | gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */ | 92 | gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */ |
90 | linux,code = <0x98>; /* KEY_SCREENLOCK */ | 93 | linux,code = <0x98>; /* KEY_SCREENLOCK */ |
91 | wakeup-source; | 94 | wakeup-source; |
95 | linux,can-disable; | ||
92 | }; | 96 | }; |
93 | 97 | ||
94 | keypad_slide { | 98 | keypad_slide { |
@@ -97,6 +101,7 @@ | |||
97 | linux,input-type = <5>; /* EV_SW */ | 101 | linux,input-type = <5>; /* EV_SW */ |
98 | linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */ | 102 | linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */ |
99 | wakeup-source; | 103 | wakeup-source; |
104 | linux,can-disable; | ||
100 | }; | 105 | }; |
101 | 106 | ||
102 | proximity_sensor { | 107 | proximity_sensor { |
@@ -104,6 +109,7 @@ | |||
104 | gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */ | 109 | gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */ |
105 | linux,input-type = <5>; /* EV_SW */ | 110 | linux,input-type = <5>; /* EV_SW */ |
106 | linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */ | 111 | linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */ |
112 | linux,can-disable; | ||
107 | }; | 113 | }; |
108 | }; | 114 | }; |
109 | 115 | ||