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

Commit 22980fb5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: dts: msm: Modify gpio-keys config for APQ8009" into msm-3.18

parents 1d5092a9 a6b5635e
Loading
Loading
Loading
Loading
+63 −0
Original line number Diff line number Diff line
@@ -110,9 +110,72 @@
			output-high;
		};
	};

	button_active: button_active {
		mux {
			pins = "gpio87", "gpio90", "gpio99";
			function = "gpio";
		};

		config {
			pins = "gpio87", "gpio90", "gpio99";
			drive-strength = <2>;
			bias-pull-up;
		};
	};

	button_suspend: button_suspend {
		mux {
			pins = "gpio87", "gpio90", "gpio99";
			function = "gpio";
		};

		config {
			pins = "gpio87", "gpio90", "gpio99";
			drive-strength = <2>;
			bias-pull-up;
		};
	};
};

&soc {
	/delete-node/ gpio_keys;

	gpio_keys {
		compatible = "gpio-keys";
		input-name = "gpio-keys";
		pinctrl-names = "tlmm_gpio_key_active", "tlmm_gpio_key_suspend";
		pinctrl-0 = <&button_active>;
		pinctrl-1 = <&button_suspend>;

		action {
			label = "action";
			gpios = <&msm_gpio 87 0x1>;
			linux,input-type = <1>;
			linux,code = <315>;
			gpio-key,wakeup;
			debounce-interval = <15>;
		};

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

		mute {
			label = "mute";
			gpios = <&msm_gpio 99 0x1>;
			linux,input-type = <1>;
			linux,code = <248>;
			gpio-key,wakeup;
			debounce-interval = <15>;
		};
	};

	sound-9335 {
		qcom,model = "apq8009-tashalite-snd-card-tdm";
		qcom,tdm-i2s-switch-enable = <&msm_gpio 88 0>;