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

Commit d0e0c4bc authored by Dhanalakshmi Siddani's avatar Dhanalakshmi Siddani Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Add support for external codec on apq8009



Add support to enable wcd9326 codec on apq8009.

CRs-Fixed: 2273335
Change-Id: I09243621d20ddefe39a0ab66a86d2e5405d5723b
Signed-off-by: default avatarDhanalakshmi Siddani <dsiddani@codeaurora.org>
parent ea7861da
Loading
Loading
Loading
Loading
+39 −7
Original line number Diff line number Diff line
@@ -17,9 +17,14 @@
#include "msm8909-pm8916-mtp.dtsi"
#include "apq8009-audio-external_codec.dtsi"

&audio_codec_mtp {
	status = "disabled";
};

&soc {
	ext-codec {
		qcom,msm-mbhc-hphl-swh = <0>;
	sound-9335 {
		qcom,model = "apq8009-tashalite-snd-card-tdm";
		qcom,tdm-i2s-switch-enable = <&msm_gpio 88 0>;
		qcom,audio-routing =
			"AIF4 VI", "MCLK",
			"RX_BIAS", "MCLK",
@@ -38,16 +43,32 @@
			"SpkrRight IN", "SPK2 OUT";
	};

	sound-9335 {
		status = "disabled";
	};

	i2c@78b8000 {
		wcd9xxx_codec@d {
		  status = "disabled";
			qcom,wcd9xxx-mic-tristate;
			qcom,cdc-reset-gpio = <&msm_gpio 23 0>;

			cdc-vdd-buck-supply = <&wcd_vdd_buck_1p8>;
			qcom,cdc-vdd-buck-voltage = <0 0>;
			qcom,cdc-vdd-buck-current = <250000>;

			cdc-buck-sido-supply = <&wcd_vdd_buck_1p8>;
			qcom,cdc-buck-sido-voltage = <0 0>;
			qcom,cdc-buck-sido-current = <250000>;
		};
	};

	wcd_vdd_buck_1p8: wcd_vdd_buck_1p8 {
		compatible = "regulator-fixed";
		regulator-name = "wcd_vdd_buck_1p8";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		status = "ok";
		enable-active-high;
		gpio = <&pm8916_gpios 4 0>;
		vin-supply = <&pm8916_s4>;
	};

	vph_pwr_vreg: vph_pwr_vreg {
		compatible = "regulator-fixed";
		status = "ok";
@@ -185,6 +206,17 @@
	};
};

&pm8916_gpios {
	gpio@c300 {
		qcom,mode = <1>;        /* DIGITAL OUT */
		qcom,pull = <1>;        /* No Pull */
		qcom,vin-sel = <2>;     /* 1.8 */
		qcom,src-sel = <0>;     /* CONSTANT */
		qcom,master-en = <1>;   /* ENABLE GPIO */
		status = "okay";
	};
};

&pm8916_bms {
	status = "ok";
	qcom,disable-bms;