Commit a6b17868 authored by Sudeep Holla's avatar Sudeep Holla Committed by Olof Johansson

ARM: dts: spear: replace gpio-key,wakeup with wakeup-source property

Keyboard driver for GPIO buttons(gpio-keys) checks for the legacy
"gpio-key,wakeup" boolean property to enable gpio buttons as wakeup
source.

Few dts files assign value "1" to gpio-key,wakeup which is incorrect.
Since the presence of the boolean property indicates it is enabled,
value of "0" or "1" have no significance.

This patch replaces the legacy "gpio-key,wakeup" with the unified
"wakeup-source" property which inturn fixes the above mentioned issue.
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 53a7aa0b
...@@ -161,7 +161,7 @@ button@1 { ...@@ -161,7 +161,7 @@ button@1 {
linux,code = <0x100>; linux,code = <0x100>;
gpios = <&gpio0 7 0x4>; gpios = <&gpio0 7 0x4>;
debounce-interval = <20>; debounce-interval = <20>;
gpio-key,wakeup = <1>; wakeup-source;
}; };
}; };
......
...@@ -223,7 +223,7 @@ button@1 { ...@@ -223,7 +223,7 @@ button@1 {
linux,code = <0x100>; linux,code = <0x100>;
gpios = <&gpio1 1 0x4>; gpios = <&gpio1 1 0x4>;
debounce-interval = <20>; debounce-interval = <20>;
gpio-key,wakeup = <1>; wakeup-source;
}; };
}; };
......
...@@ -141,7 +141,7 @@ button@1 { ...@@ -141,7 +141,7 @@ button@1 {
linux,code = <0x100>; linux,code = <0x100>;
gpios = <&stmpegpio 3 0x4>; gpios = <&stmpegpio 3 0x4>;
debounce-interval = <20>; debounce-interval = <20>;
gpio-key,wakeup = <1>; wakeup-source;
}; };
button@2 { button@2 {
...@@ -149,7 +149,7 @@ button@2 { ...@@ -149,7 +149,7 @@ button@2 {
linux,code = <0x200>; linux,code = <0x200>;
gpios = <&stmpegpio 2 0x4>; gpios = <&stmpegpio 2 0x4>;
debounce-interval = <20>; debounce-interval = <20>;
gpio-key,wakeup = <1>; wakeup-source;
}; };
}; };
......
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