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

Commit 3f18ef03 authored by Sivasri Kumar Vanka's avatar Sivasri Kumar Vanka
Browse files

ARM: dts: msm: add device tree entry for sound drivers



Add device tree entries for sound drivers to enable audio on
mdm9607 platform.

Change-Id: I69b64cb20e48c89dddc5dfcc507c0d83aabec6e0
Signed-off-by: default avatarSivasri Kumar Vanka <sivasri@codeaurora.org>
parent 21a50b61
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -287,6 +287,21 @@
			};
		};

		wcd9xxx_intr {
			wcd_intr_default: wcd_intr_default{
				mux {
					pins = "gpio75";
					function = "gpio";
				};
				config {
					pins = "gpio75";
					drive-strength = <2>; /* 2 mA */
					bias-pull-down; /* pull down */
					input-enable;
				};
			};
		};

		codec_reset {
			codec_reset_active: codec_reset_active {
				mux {
@@ -403,6 +418,7 @@
					pins = "gpio21";
					drive-strength = <8>;   /* 8 MA */
					bias-disable;	        /* No PULL */
					input-enable;
				};
			};

+34 −15
Original line number Diff line number Diff line
@@ -428,11 +428,7 @@
			compatible = "qcom,wcd9xxx-i2c";
			reg = <0x0d>;

			qcom,cdc-reset-gpio = <&tlmm_pinmux 26 0>;
			pinctrl-names = "default", "idle";
			pinctrl-0 = <&codec_reset_active>;
			pinctrl-1 = <&codec_reset_sleep>;

			qcom,wcd-rst-gpio-node = <&wcd_rst_gpio>;
			qcom,cdc-micbias1-ext-cap;

			interrupt-parent = <&wcd9xxx_intc>;
@@ -906,12 +902,22 @@
	thermal_zones: thermal-zones {};

	wcd9xxx_intc: wcd9xxx-irq {
		status = "ok";
		compatible = "qcom,wcd9xxx-irq";
		interrupt-controller;
		#interrupt-cells = <1>;
		interrupt-parent = <&tlmm_pinmux>;
		qcom,gpio-connect = <&tlmm_pinmux 75 0>;
		interrupt-names = "cdc-int";
		pinctrl-names = "default";
		pinctrl-0 = <&wcd_intr_default>;
	};

	wcd_rst_gpio: msm_cdc_pinctrl@26 {
		compatible = "qcom,msm-cdc-pinctrl";
		qcom,cdc-rst-n-gpio = <&tlmm_pinmux 26 0>;
		pinctrl-names = "aud_active", "aud_sleep";
		pinctrl-0 = <&codec_reset_active>;
		pinctrl-1 = <&codec_reset_sleep>;
	};

	sound-9330 {
@@ -936,6 +942,7 @@
			"DMIC3", "MIC BIAS3 External",
			"MIC BIAS3 External", "Digital Mic3";

		qcom,prim_mi2s_aux_master = <&prim_master>;
		qcom,codec-mclk-clk-freq = <12288000>;
		qcom,mi2s-interface-mode = "pri_mi2s_master", "sec_mi2s_master";
		qcom,auxpcm-interface-mode = "pri_pcm_master", "sec_pcm_master";
@@ -1081,6 +1088,11 @@
		compatible = "qcom,msm-pcm-hostless";
	};

	audio_apr: qcom,msm-audio-apr {
		compatible = "qcom,msm-audio-apr";
		qcom,subsys-name = "apr_modem";
	};

	host_pcm: qcom,msm-voice-host-pcm {
		compatible = "qcom,msm-voice-host-pcm";
	};
@@ -1197,7 +1209,17 @@
			qcom,msm-dai-q6-mi2s-dev-id = <0>;
			qcom,msm-mi2s-rx-lines = <2>;
			qcom,msm-mi2s-tx-lines = <1>;
			pinctrl-names = "default", "idle";
		};
		mi2s_sec: qcom,msm-dai-q6-mi2s-sec {
			compatible = "qcom,msm-dai-q6-mi2s";
			qcom,msm-dai-q6-mi2s-dev-id = <1>;
			qcom,msm-mi2s-rx-lines = <2>;
			qcom,msm-mi2s-tx-lines = <1>;
		};
	};
	prim_master: prim_master_pinctrl {
		compatible = "qcom,msm-cdc-pinctrl";
		pinctrl-names = "aud_active", "aud_sleep";
		pinctrl-0 = <&pri_mi2s_ws_active
				&pri_mi2s_sck_active
				&pri_mi2s_dout_active
@@ -1207,13 +1229,6 @@
				&pri_mi2s_dout_sleep
				&pri_mi2s_din_sleep>;
	};
		mi2s_sec: qcom,msm-dai-q6-mi2s-sec {
			compatible = "qcom,msm-dai-q6-mi2s";
			qcom,msm-dai-q6-mi2s-dev-id = <1>;
			qcom,msm-mi2s-rx-lines = <2>;
			qcom,msm-mi2s-tx-lines = <1>;
		};
	};

	qcom,msm-thermal {
		compatible = "qcom,msm-thermal";
@@ -1349,6 +1364,7 @@
			qcom,smd-edge = <0>;
			qcom,ipc = <&apcs 0 12>;
			qcom,remote-pid = <1>;
			mbox-names = "mpss_smem";
			interrupts = <GIC_SPI 25 IRQ_TYPE_EDGE_RISING>;
			label = "mpss";
			qcom,smd-channels = "IPCRTR";
@@ -1357,6 +1373,9 @@
				qcom,net-id = <1>;
				qcom,low-latency;
			};
			qcom,apr_tal_rpmsg {
				qcom,glink-channels = "apr_audio_svc";
			};
		};

		rpm {