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

Commit 30b688a2 authored by Damir Didjusto's avatar Damir Didjusto
Browse files

ARM: dts: msm: Add AUXPCM information to msmsamarium



Add AUXPCM configuration and GPIOs to the device tree file.
Machine drivers reads the information to setup the AUXPCM
GPIOs and settings correctly on the msmsamarium.

Change-Id: I7d3d3e5fb99fef4b33166e7774f8220890f6bf1c
Signed-off-by: default avatarDamir Didjusto <damird@codeaurora.org>
parent 7f080cd4
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -66,6 +66,18 @@
			debounce-interval = <15>;
		};
	};

	sound {
		qcom,prim-auxpcm-gpio-clk  = <&msmgpio 65 0>;
		qcom,prim-auxpcm-gpio-sync = <&msmgpio 66 0>;
		qcom,prim-auxpcm-gpio-din  = <&msmgpio 67 0>;
		qcom,prim-auxpcm-gpio-dout = <&msmgpio 68 0>;
		qcom,prim-auxpcm-gpio-set = "prim-gpio-prim";
		qcom,sec-auxpcm-gpio-clk  = <&msmgpio 70 0>;
		qcom,sec-auxpcm-gpio-sync = <&msmgpio 72 0>;
		qcom,sec-auxpcm-gpio-din  = <&msmgpio 71 0>;
		qcom,sec-auxpcm-gpio-dout = <&msmgpio 73 0>;
	};
};

&i2c_2 {
+10 −0
Original line number Diff line number Diff line
@@ -101,6 +101,16 @@
                        "MIC BIAS3 External", "Digital Mic3",
                        "DMIC4", "MIC BIAS3 External",
                        "MIC BIAS3 External", "Digital Mic4";

		qcom,prim-auxpcm-gpio-clk  = <&msmgpio 65 0>;
		qcom,prim-auxpcm-gpio-sync = <&msmgpio 66 0>;
		qcom,prim-auxpcm-gpio-din  = <&msmgpio 67 0>;
		qcom,prim-auxpcm-gpio-dout = <&msmgpio 68 0>;
		qcom,prim-auxpcm-gpio-set = "prim-gpio-prim";
		qcom,sec-auxpcm-gpio-clk  = <&msmgpio 70 0>;
		qcom,sec-auxpcm-gpio-sync = <&msmgpio 72 0>;
		qcom,sec-auxpcm-gpio-din  = <&msmgpio 71 0>;
		qcom,sec-auxpcm-gpio-dout = <&msmgpio 73 0>;
	};
};

+48 −0
Original line number Diff line number Diff line
@@ -1651,6 +1651,54 @@
		compatible = "qcom,msm-pcm-hostless";
	};

	qcom,msm-pri-auxpcm-rx {
		compatible = "qcom,msm-auxpcm-dev-rx";
		qcom,msm-cpudai-auxpcm-mode = <0>, <0>;
		qcom,msm-cpudai-auxpcm-sync = <1>, <1>;
		qcom,msm-cpudai-auxpcm-frame = <5>, <4>;
		qcom,msm-cpudai-auxpcm-quant = <2>, <2>;
		qcom,msm-cpudai-auxpcm-slot = <1>, <1>;
		qcom,msm-cpudai-auxpcm-data = <0>, <0>;
		qcom,msm-cpudai-auxpcm-pcm-clk-rate = <2048000>, <2048000>;
		qcom,msm-auxpcm-interface = "primary";
	};

	qcom,msm-pri-auxpcm-tx {
		compatible = "qcom,msm-auxpcm-dev-tx";
		qcom,msm-cpudai-auxpcm-mode = <0>, <0>;
		qcom,msm-cpudai-auxpcm-sync = <1>, <1>;
		qcom,msm-cpudai-auxpcm-frame = <5>, <4>;
		qcom,msm-cpudai-auxpcm-quant = <2>, <2>;
		qcom,msm-cpudai-auxpcm-slot = <1>, <1>;
		qcom,msm-cpudai-auxpcm-data = <0>, <0>;
		qcom,msm-cpudai-auxpcm-pcm-clk-rate = <2048000>, <2048000>;
		qcom,msm-auxpcm-interface = "primary";
	};

	qcom,msm-sec-auxpcm-rx {
		compatible = "qcom,msm-auxpcm-dev-rx";
		qcom,msm-cpudai-auxpcm-mode = <0>, <0>;
		qcom,msm-cpudai-auxpcm-sync = <1>, <1>;
		qcom,msm-cpudai-auxpcm-frame = <5>, <4>;
		qcom,msm-cpudai-auxpcm-quant = <2>, <2>;
		qcom,msm-cpudai-auxpcm-slot = <1>, <1>;
		qcom,msm-cpudai-auxpcm-data = <0>, <0>;
		qcom,msm-cpudai-auxpcm-pcm-clk-rate = <2048000>, <2048000>;
		qcom,msm-auxpcm-interface = "secondary";
	};

	qcom,msm-sec-auxpcm-tx {
		compatible = "qcom,msm-auxpcm-dev-tx";
		qcom,msm-cpudai-auxpcm-mode = <0>, <0>;
		qcom,msm-cpudai-auxpcm-sync = <1>, <1>;
		qcom,msm-cpudai-auxpcm-frame = <5>, <4>;
		qcom,msm-cpudai-auxpcm-quant = <2>, <2>;
		qcom,msm-cpudai-auxpcm-slot = <1>, <1>;
		qcom,msm-cpudai-auxpcm-data = <0>, <0>;
		qcom,msm-cpudai-auxpcm-pcm-clk-rate = <2048000>, <2048000>;
		qcom,msm-auxpcm-interface = "secondary";
	};

	qcom,ocmem@fdd00000 {
		compatible = "qcom,msm-ocmem";
		reg = <0xfdd00000 0x2000>,