Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f66f247 authored by Sudeep Holla's avatar Sudeep Holla Committed by Heiko Stuebner
Browse files

ARM: 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: default avatarSudeep Holla <sudeep.holla@arm.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 29f12bba
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@
			linux,code = <116>;
			label = "GPIO Key Power";
			linux,input-type = <1>;
			gpio-key,wakeup = <1>;
			wakeup-source;
			debounce-interval = <100>;
		};
		button@1 {
@@ -94,7 +94,6 @@
			linux,code = <104>;
			label = "GPIO Key Vol-";
			linux,input-type = <1>;
			gpio-key,wakeup = <0>;
			debounce-interval = <100>;
		};
		/* VOL+ comes somehow thru the ADC */
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@
		#size-cells = <0>;

		button@0 {
			gpio-key,wakeup = <1>;
			wakeup-source;
			gpios = <&gpio6 2 GPIO_ACTIVE_LOW>;
			label = "GPIO Power";
			linux,code = <116>;
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@
			linux,code = <116>;
			label = "GPIO Key Power";
			linux,input-type = <1>;
			gpio-key,wakeup = <1>;
			wakeup-source;
			debounce-interval = <100>;
		};
	};
+1 −1
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@
			linux,code = <116>;
			label = "GPIO Key Power";
			linux,input-type = <1>;
			gpio-key,wakeup = <1>;
			wakeup-source;
			debounce-interval = <100>;
		};
	};
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@
		#size-cells = <0>;

		button@0 {
			gpio-key,wakeup = <1>;
			wakeup-source;
			gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
			label = "GPIO Power";
			linux,code = <116>;
Loading