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

Commit f70ff3d5 authored by Vijay Navnath Kamble's avatar Vijay Navnath Kamble
Browse files

ARM: msm: dts: enable gpio configuration of ti amplifier



On apq8053 hw variants gpio68 is used to power on external
ti amplifier. In current setup gpio68 is configured as part
of cdc_pdm_comp_lines which are not applicable for
apq8053 hw variants causing the gpio68 always pulled down
and not getting the ti amplifier powered on.
Configure gpio68 as part of cdc_quat_mi2s_gpios instead of
cdc_pdm_comp_lines.

Change-Id: Idfd2f693990af8ace554dea0e1dcba5d07e2e714
Signed-off-by: default avatarVijay Navnath Kamble <vkambl@codeaurora.org>
parent c443e7cd
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -13,6 +13,15 @@

#include "apq8053-lite-dragon.dtsi"

&soc {
	cdc_quat_mi2s_gpios: msm_cdc_pinctrl_quat {
		compatible = "qcom,msm-cdc-pinctrl";
		pinctrl-names = "aud_active", "aud_sleep";
		pinctrl-0 = <&sec_tlmm_lines_act>;
		pinctrl-1 = <&sec_tlmm_lines_sus>;
	};
};

&pm8953_l4 {
	status = "okay";
	regulator-always-on;
+27 −2
Original line number Diff line number Diff line
@@ -100,8 +100,8 @@
	cdc_quat_mi2s_gpios: msm_cdc_pinctrl_quat {
		compatible = "qcom,msm-cdc-pinctrl";
		pinctrl-names = "aud_active", "aud_sleep";
		pinctrl-0 = <&sec_tlmm_lines_act>;
		pinctrl-1 = <&sec_tlmm_lines_sus>;
		pinctrl-0 = <&sec_tlmm_lines_act &ext_amp_ctrl_active>;
		pinctrl-1 = <&sec_tlmm_lines_sus &ext_amp_ctrl_sleep>;
	};

	gpio_keys {
@@ -125,6 +125,31 @@
	};
};

&cdc_pdm_comp_lines_act {
	mux {
		pins = "gpio67";
		function = "cdc_pdm0";
	};

	config {
		pins = "gpio67";
		drive-strength = <8>;
	};
};

&cdc_pdm_comp_lines_sus {
	mux {
		pins = "gpio67";
		function = "cdc_pdm0";
	};

	config {
		pins = "gpio67";
		drive-strength = <2>;
		bias-disable;
	};
};

&firmware {
	android {
		vbmeta {
+28 −0
Original line number Diff line number Diff line
@@ -466,6 +466,34 @@
			};
		};

		ext_amp_ctrl {
			label = "ext_amp_ctrl";
			ext_amp_ctrl_active: ext_amp_ctrl_active {
				mux {
					pins = "gpio68";
					function = "gpio";
				};
				config {
					pins = "gpio68";
					drive-strength = <8>;   /* 8 MA */
					bias-pull-up;           /*  PULL UP */
					output-high;
				};
			};

			ext_amp_ctrl_sleep: ext_amp_ctrl_sleep {
				mux {
					pins = "gpio68";
					function = "gpio";
				};
				configs {
					pins = "gpio68";
					drive-strength = <2>;   /* 2 MA */
					bias-pull-down;         /* PULL DOWN */
				};
			};
		};

		cdc_dmic0_clk_act: cdc_dmic0_clk_act_default {
				mux {
						pins = "gpio89";