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

Commit 59eea8d0 authored by Shantanu Jain's avatar Shantanu Jain
Browse files

ARM: dts: msm: enable camera gpio-key for SDM670 MTP/CDP



Enable camera gpio-key for SDM670 MTP/CDP devices. It needs
gpio_91 as camera_snashot and gpio_92 as camera_focus keys.

Change-Id: I81c688ced1d84754530b572fa13e2d607481291a
Signed-off-by: default avatarShantanu Jain <shjain@codeaurora.org>
parent a134670c
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -98,3 +98,34 @@
&pm660_charger {
	qcom,batteryless-platform;
};

&soc {
	gpio_keys {
		compatible = "gpio-keys";
		label = "gpio-keys";

		pinctrl-names = "default";
		pinctrl-0 = <&key_cam_snapshot_default
			     &key_cam_focus_default>;

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

		cam_focus {
			label = "cam_focus";
			gpios = <&tlmm 92 0>;
			linux,input-type = <1>;
			linux,code = <528>;
			gpio-key,wakeup;
			debounce-interval = <15>;
			linux,can-disable;
		};
	};
};
+31 −0
Original line number Diff line number Diff line
@@ -107,3 +107,34 @@
&pm660_fg {
	qcom,battery-data = <&mtp_batterydata>;
};

&soc {
	gpio_keys {
		compatible = "gpio-keys";
		label = "gpio-keys";

		pinctrl-names = "default";
		pinctrl-0 = <&key_cam_snapshot_default
			     &key_cam_focus_default>;

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

		cam_focus {
			label = "cam_focus";
			gpios = <&tlmm 92 0>;
			linux,input-type = <1>;
			linux,code = <528>;
			gpio-key,wakeup;
			debounce-interval = <15>;
			linux,can-disable;
		};
	};
};
+22 −0
Original line number Diff line number Diff line
@@ -1451,5 +1451,27 @@
				};
			};
		};

		/* Pinctrl setting for CAMERA GPIO key */
		key_cam_snapshot {
			key_cam_snapshot_default: key_cam_snapshot_default {
				pins = "gpio91";
				function = "normal";
				input-enable;
				bias-pull-up;
				power-source = <0>;
			};
		};

		key_cam_focus {
			key_cam_focus_default: key_cam_focus_default {
				pins = "gpio92";
				function = "normal";
				input-enable;
				bias-pull-up;
				power-source = <0>;
			};
		};

	};
};