arm64: dts: rockchip: 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 and in one instance a
value "0" is assigned probably assuming it won't be enabled as a wakeup
source. Since the presence of the boolean property indicates it is
enabled, value of "0" have no value.

This patch replaces the legacy "gpio-key,wakeup" with the unified
"wakeup-source" property which inturn fixes the above mentioned issue.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
This commit is contained in:
Sudeep Holla 2016-02-08 21:55:12 +00:00 committed by Heiko Stuebner
parent 90191625ec
commit e6f49b118f
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ keys: gpio-keys {
pinctrl-0 = <&pwr_key>;
button@0 {
gpio-key,wakeup = <1>;
wakeup-source;
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
label = "GPIO Power";
linux,code = <116>;

View File

@ -71,7 +71,7 @@ keys: gpio-keys {
pinctrl-0 = <&pwr_key>;
button@0 {
gpio-key,wakeup = <1>;
wakeup-source;
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
label = "GPIO Power";
linux,code = <116>;