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

Commit 5a866c18 authored by Laxminath Kasam's avatar Laxminath Kasam
Browse files

ARM: dts: msm: add sound node for msmtitanium



Changes to add internal codec sound nodes. Also add tasha
and diangu codec nodes on msmtitanium for cdp and mtp.

Change-Id: I79f92150d971e27db215ff820038721d1e0461a0
Signed-off-by: default avatarLaxminath Kasam <lkasam@codeaurora.org>
parent 366f43b1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@

#include "msmtitanium-pinctrl.dtsi"
#include "msmtitanium-camera-sensor-cdp.dtsi"
#include "msmtitanium-audio-cdp.dtsi"

&spi_3 { /* BLSP1 QUP3 */
	spi-max-frequency = <8000000>;
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@

#include "msmtitanium-pinctrl.dtsi"
#include "msmtitanium-camera-sensor-mtp.dtsi"
#include "msmtitanium-audio-mtp.dtsi"

&spi_3 { /* BLSP1 QUP3 */
	spi-max-frequency = <16000000>;
+170 −0
Original line number Diff line number Diff line
@@ -725,6 +725,176 @@
			};
		};

		cdc-pdm-2-lines {
			cdc_pdm_lines_2_act: pdm_lines_2_on {
				mux {
					pins = "gpio70", "gpio71", "gpio72";
					function = "cdc_pdm0";
				};

				config {
					pins = "gpio70", "gpio71", "gpio72";
					drive-strength = <8>;
				};
			};

			cdc_pdm_lines_2_sus: pdm_lines_2_off {
				mux {
					pins = "gpio70", "gpio71", "gpio72";
					function = "cdc_pdm0";
				};

				config {
					pins = "gpio70", "gpio71", "gpio72";
					drive-strength = <2>;
					bias-disable;
				};
			};
		};

		cdc-pdm-lines {
			cdc_pdm_lines_act: pdm_lines_on {
				mux {
					pins = "gpio69", "gpio73", "gpio74";
					function = "cdc_pdm0";
				};

				config {
					pins = "gpio69", "gpio73", "gpio74";
					drive-strength = <8>;
				};
			};
			cdc_pdm_lines_sus: pdm_lines_off {
				mux {
					pins = "gpio69", "gpio73", "gpio74";
					function = "cdc_pdm0";
				};

				config {
					pins = "gpio69", "gpio73", "gpio74";
					drive-strength = <2>;
					bias-disable;
				};
			};
		};

		cross-conn-det {
			cross_conn_det_act: lines_on {
				mux {
					pins = "gpio63";
					function = "gpio";
				};

				config {
					pins = "gpio63";
					drive-strength = <8>;
					output-low;
					bias-pull-down;
				};
			};

			cross_conn_det_sus: lines_off {
				mux {
					pins = "gpio63";
					function = "gpio";
				};

				config {
					pins = "gpio63";
					drive-strength = <2>;
					bias-pull-down;
				};
			};
		};

		/* WSA VI sense */
		wsa-vi {
			wsa_vi_on: wsa_vi_on {
				mux {
					pins = "gpio94", "gpio95";
					function = "wsa_io";
				};

				config {
					pins = "gpio94", "gpio95";
					drive-strength = <8>; /* 8 MA */
					bias-disable; /* NO pull */
				};
			};

			wsa_vi_off: wsa_vi_off {
				mux {
					pins = "gpio94", "gpio95";
					function = "wsa_io";
				};

				config {
					pins = "gpio94", "gpio95";
					drive-strength = <2>; /* 2 MA */
					bias-pull-down;
				};
			};
		};

		/* WSA Reset */
		wsa_reset {
			wsa_reset_on: wsa_reset_on {
				mux {
					pins = "gpio96";
					function = "gpio";
				};

				config {
					pins = "gpio96";
					drive-strength = <2>; /* 2 MA */
					output-high;
				};
			};

			wsa_reset_off: wsa_reset_off {
				mux {
					pins = "gpio96";
					function = "gpio";
				};

				config {
					pins = "gpio96";
					drive-strength = <2>; /* 2 MA */
					output-low;
				};
			};
		};

		/* WSA CLK */
		wsa_clk {
			wsa_clk_on: wsa_clk_on {
				mux {
					pins = "gpio25";
					function = "pri_mi2s_mclk_a";
				};

				config {
					pins = "gpio25";
					drive-strength = <8>; /* 8 MA */
					output-high;
				};
			};

			wsa_clk_off: wsa_clk_off {
				mux {
					pins = "gpio25";
					function = "pri_mi2s_mclk_a";
				};

				config {
					pins = "gpio25";
					drive-strength = <2>; /* 2 MA */
					output-low;
					bias-pull-down;
				};
			};
		};

		spi3 {
			spi3_default: spi3_default {
				/* active state */
+8 −0
Original line number Diff line number Diff line
@@ -417,4 +417,12 @@
		regulator-min-microvolt = <1>;
		regulator-max-microvolt = <7>;
	};

	eldo2_titanium: eldo2 {
		compatible = "regulator-fixed";
		regulator-name = "eldo2_titanium";
		startup-delay-us = <0>;
		enable-active-high;
		gpio = <&tlmm 50 0>;
	};
};
+2 −0
Original line number Diff line number Diff line
@@ -1893,6 +1893,8 @@
#include "msm-pmtitanium.dtsi"
#include "msmtitanium-regulator.dtsi"
#include "msm-pmi8950.dtsi"
#include "msm-audio.dtsi"
#include "msmtitanium-audio.dtsi"
#include "msm-gdsc-8916.dtsi"
#include "msmtitanium-camera.dtsi"