Commit 97d7f2ff authored by Pali Rohár's avatar Pali Rohár Committed by Tony Lindgren

ARM: dts: n900: Use linux input defines instead hardcoded constants

This makes DTS structure more readable.
Signed-off-by: default avatarPali Rohár <pali.rohar@gmail.com>
Acked-By: default avatarSebastian Reichel <sre@kernel.org>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 92e963f5
...@@ -65,45 +65,45 @@ gpio_keys { ...@@ -65,45 +65,45 @@ gpio_keys {
camera_lens_cover { camera_lens_cover {
label = "Camera Lens Cover"; label = "Camera Lens Cover";
gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; /* 110 */ gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; /* 110 */
linux,input-type = <5>; /* EV_SW */ linux,input-type = <EV_SW>;
linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */ linux,code = <SW_CAMERA_LENS_COVER>;
wakeup-source; wakeup-source;
}; };
camera_focus { camera_focus {
label = "Camera Focus"; label = "Camera Focus";
gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */ gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */
linux,code = <0x210>; /* KEY_CAMERA_FOCUS */ linux,code = <KEY_CAMERA_FOCUS>;
wakeup-source; wakeup-source;
}; };
camera_capture { camera_capture {
label = "Camera Capture"; label = "Camera Capture";
gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */ gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */
linux,code = <0xd4>; /* KEY_CAMERA */ linux,code = <KEY_CAMERA>;
wakeup-source; wakeup-source;
}; };
lock_button { lock_button {
label = "Lock Button"; label = "Lock Button";
gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */ gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */
linux,code = <0x98>; /* KEY_SCREENLOCK */ linux,code = <KEY_SCREENLOCK>;
wakeup-source; wakeup-source;
}; };
keypad_slide { keypad_slide {
label = "Keypad Slide"; label = "Keypad Slide";
gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; /* 71 */ gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; /* 71 */
linux,input-type = <5>; /* EV_SW */ linux,input-type = <EV_SW>;
linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */ linux,code = <SW_KEYPAD_SLIDE>;
wakeup-source; wakeup-source;
}; };
proximity_sensor { proximity_sensor {
label = "Proximity Sensor"; label = "Proximity Sensor";
gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */ gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */
linux,input-type = <5>; /* EV_SW */ linux,input-type = <EV_SW>;
linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */ linux,code = <SW_FRONT_PROXIMITY>;
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment