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

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

ARM: dts: msm: Enable volume up key for qrd sdm660



GPIO7 is used for volume up key on qrd sdm660 device.
Configure it to input and pull-up and add gpio-keys device to
enable the key detection.

CRs-Fixed: 1108198
Change-Id: I9ef323088e478aa2fd35858d256edb041da6f385
Signed-off-by: default avatarcyizhao <cyizhao@codeaurora.org>
parent 21f6344c
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
@@ -104,6 +104,35 @@
&soc {
};

&pm660l_gpios {
	/* GPIO 7 for VOL_UP */
	gpio@c600 {
		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";
		input-name = "gpio-keys";
		status = "ok";

		vol_up {
			label = "volume_up";
			gpios = <&pm660l_gpios 7 0x1>;
			linux,input-type = <1>;
			linux,code = <115>;
			gpio-key,wakeup;
			debounce-interval = <15>;
		};
	};
};

/ {
	qrd_batterydata: qcom,battery-data {
		qcom,batt-id-range-pct = <15>;