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

Commit 3e91b8bf authored by Sachin Mohan Gadag's avatar Sachin Mohan Gadag
Browse files

RM: dts: msm: add support for gpio based jack detection on qcs610



Add gpio based detection support for linein and
lineout jack types.

Change-Id: Ic854ad3065aeb176ccab0144f343f4e716738ef7
Signed-off-by: default avatarSurendar Karka <skarka@codeaurora.org>
Signed-off-by: default avatarSachin Mohan Gadag <sgadag@codeaurora.org>
parent 7ad88647
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
/* Copyright (c) 2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -66,6 +66,13 @@
	qcom,wsa-max-devs = <1>;
	qcom,wsa-devs = <&wsa881x_0211>, <&wsa881x_0213>;
	qcom,wsa-aux-dev-prefix = "SpkrLeft", "SpkrLeft";
	qcom,linein-det-swh = <1>;
	qcom,lineout-det-swh = <1>;
	qcom,linein-det-gpio = <&tlmm 1 0>;
	qcom,lineout-det-gpio = <&tlmm 60 0>;
	pinctrl-names = "default";
	pinctrl-0 = <&jack_det_linein_default
		     &jack_det_lineout_default>;
};

&pm6150_charger {
+30 −1
Original line number Diff line number Diff line
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1146,6 +1146,35 @@
			};
		};


		gpio_jack_det_line_in {
			jack_det_linein_default: jack_det_linein_default {
				mux {
					pins = "gpio1";
					function = "gpio";
				};
				config {
					pins = "gpio1";
					bias-pull-up; /* pull up */
					input-enable;
				};
			};
		};

		gpio_jack_det_line_out {
			jack_det_lineout_default: jack_det_lineout_default {
				mux {
					pins = "gpio60";
					function = "gpio";
				};
				config {
					pins = "gpio60";
					bias-pull-up; /* pull up */
					input-enable;
				};
			};
		};

		ter_i2s_sck_ws {
			ter_i2s_sck_sleep: ter_i2s_sck_sleep {
				mux {