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

Commit c6b89314 authored by Stephen Oglesby's avatar Stephen Oglesby Committed by Kyle Yan
Browse files

ASoC: msmcobalt: Create pinctrl entries for ground/mic swap GPIO



The GPIO to control the gound/mic swap switch is now on the Apps
processor. Create new entirees in pinctrl device tree to enable
headsets with swapped ground/mic poles.

CRs-fixed: 1019254
Change-Id: Ie57950e0fb979807ef95cf21046c97617e286ed0
Signed-off-by: default avatarStephen Oglesby <soglesby@codeaurora.org>
parent bbcb7758
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@

		qcom,msm-mbhc-hphl-swh = <0>;
		qcom,msm-mbhc-gnd-swh = <0>;
		qcom,us-euro-gpios = <&wcd_us_euro_gpio>;
		qcom,tasha-mclk-clk-freq = <9600000>;
		asoc-platform = <&pcm0>, <&pcm1>, <&pcm2>, <&voip>, <&voice>,
				<&loopback>, <&compress>, <&hostless>,
@@ -110,6 +111,13 @@
		compatible = "qcom,msm-cpe-lsm";
	};

	wcd_us_euro_gpio: msm_cdc_pinctrl@75 {
		compatible = "qcom,msm-cdc-pinctrl";
		pinctrl-names = "aud_active", "aud_sleep";
		pinctrl-0 = <&wcd_gnd_mic_swap_active>;
		pinctrl-1 = <&wcd_gnd_mic_swap_idle>;
	};

	wcd9xxx_intc: wcd9xxx-irq {
		status = "ok";
		compatible = "qcom,wcd9xxx-irq";
+28 −0
Original line number Diff line number Diff line
@@ -587,6 +587,34 @@
			};
		};

		wcd_gnd_mic_swap {
			wcd_gnd_mic_swap_idle: wcd_gnd_mic_swap_idle {
				mux {
					pins = "gpio75";
					function = "gpio";
				};
				config {
					pins = "gpio75";
					drive-strength = <2>;
					bias-pull-down;
					output-low;
				};
			};
			wcd_gnd_mic_swap_active: wcd_gnd_mic_swap_active {
				mux {
					pins = "gpio75";
					function = "gpio";
				};
				config {
					pins = "gpio75";
					drive-strength = <2>;
					bias-disable;
					output-high;
				};
			};
		};


		cdc_reset_ctrl {
			cdc_reset_sleep: cdc_reset_sleep {
				mux {