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

Commit 389d2770 authored by zhaochen's avatar zhaochen Committed by Ying Nie
Browse files

ARM: dts: msm: Enable GPIO based keys on Spyro



Add the GPIO-key support for VOL_UP, FUNCTION1 and 2

Change-Id: Ie4ff88785759041e5719a3f33653717e3be741b3
Signed-off-by: default avatarzhaochen <zhaochen@codeaurora.org>
parent f6a874a4
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
@@ -15,6 +15,32 @@
#include "sdm429w-pm660.dtsi"
#include "sdm429w-camera-sensor-spyro.dtsi"

&gpio_key_active {
	mux {
		pins = "gpio91", "gpio127", "gpio128", "gpio35", "gpio126";
		function = "gpio";
	};

	config {
		pins = "gpio91", "gpio127", "gpio128", "gpio35", "gpio126";
		drive-strength = <2>;
		bias-pull-up;
	};
};

&gpio_key_suspend {
	mux {
		pins = "gpio91", "gpio127", "gpio128", "gpio35", "gpio126";
		function = "gpio";
	};

	config {
		pins = "gpio91", "gpio127", "gpio128", "gpio35", "gpio126";
		drive-strength = <2>;
		bias-pull-up;
	};
};

&cdc_pdm_lines_act {
	mux {
		pins = "gpio68", "gpio73", "gpio74";
@@ -48,6 +74,32 @@
	status = "disabled";
};

&vol_up {
	gpios = <&tlmm 35 0x1>;
};

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

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

&soc {
	/delete-node/ qcom,spm@b1d2000;
	qcom,spm@b1d2000 {
+2 −2
Original line number Diff line number Diff line
@@ -130,13 +130,13 @@
};

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

		vol_up {
		vol_up: vol_up {
			label = "volume_up";
			gpios = <&tlmm 91 0x1>;
			linux,input-type = <1>;