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

Commit d67267d1 authored by cyizhao's avatar cyizhao Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Enable home key for qrd sdm630



PM660 GPIO11 is used for home key on QRD sdm630 device.
Configure it to input/pull-up mode and add it to gpio-keys
device for key detection.

CRs-Fixed: 2008859
Change-Id: I3f673d925b2186069ac55ab7c9bf72fd241242c8
Signed-off-by: default avatarYingwei Zhao <cyizhao@codeaurora.org>
parent 5a092dc8
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -123,6 +123,18 @@
	};
};

&pm660_gpios {
	/* GPIO 11 for home key */
	gpio@ca00 {
		status = "ok";
		qcom,mode = <0>;
		qcom,pull = <0>;
		qcom,vin-sel = <0>;
		qcom,src-sel = <0>;
		qcom,out-strength = <1>;
	};
};

&soc {
	gpio_keys {
		compatible = "gpio-keys";
@@ -137,5 +149,15 @@
			gpio-key,wakeup;
			debounce-interval = <15>;
		};

		home {
			label = "home";
			gpios = <&pm660_gpios 11 0x1>;
			linux,input-type = <1>;
			linux,code = <102>;
			gpio-key,wakeup;
			debounce-interval = <15>;
		};

	};
};