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

Commit 168a7486 authored by Shantanu Jain's avatar Shantanu Jain
Browse files

ARM: dts: msm: enable gpio keys for MSM8937 MTP



Enable gpio based keys device node for MSM8937. The supported
keys are VOLUME UP, CAMERA SNAPSHOT, CAMERA FOCUS.

Change-Id: Ib16fed49646f70153ab902f7b70da9902a6caa3b
Signed-off-by: default avatarShantanu Jain <shjain@codeaurora.org>
parent 513494c8
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
@@ -114,3 +114,41 @@
	qcom,panel-roi-alignment = <2 2 4 2 1080 2>;
};

&soc {
	gpio_keys {
		compatible = "gpio-keys";
		input-name = "gpio-keys";
		pinctrl-names = "default";
		pinctrl-0 = <&gpio_key_active>;

		camera_focus {
			label = "camera_focus";
			gpios = <&tlmm 128 0x1>;
			linux,input-type = <1>;
			linux,code = <0x210>;
			debounce-interval = <15>;
			linux,can-disable;
			gpio-key,wakeup;
		};

		camera_snapshot {
			label = "camera_snapshot";
			gpios = <&tlmm 127 0x1>;
			linux,input-type = <1>;
			linux,code = <0x2fe>;
			debounce-interval = <15>;
			linux,can-disable;
			gpio-key,wakeup;
		};

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