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

Commit efba4be1 authored by Rohit Kumar's avatar Rohit Kumar Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Add overlay support for external codec on sdm670



Reorganize device tree to support overlay for external codec on
sdm670. Move non-SoC and external codec  specific device tree
nodes to overlay device tree file.

Change-Id: I8eee59e4bc951ffef6c33ffdc6461e0c3c3bd196
Signed-off-by: default avatarRohit Kumar <rohitkr@codeaurora.org>
parent cb1d7db3
Loading
Loading
Loading
Loading
+96 −0
Original line number Diff line number Diff line
/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */
#include "sdm670-audio-overlay.dtsi"

&pmic_analog_codec {
	status = "disabled";
};

&msm_sdw_codec {
	status = "disabled";
};

&cdc_pdm_gpios {
	status = "disabled";
};

&cdc_comp_gpios {
	status = "disabled";
};

&cdc_dmic_gpios {
	status = "disabled";
};

&cdc_sdw_gpios {
	status = "disabled";
};

&wsa_spkr_en1 {
	status = "disabled";
};

&wsa_spkr_en2 {
	status = "disabled";
};

&qupv3_se8_spi {
	status = "okay";
};

&soc {
	wcd_buck_vreg_gpio: msm_cdc_pinctrl@94 {
		status = "okay";
		compatible = "qcom,msm-cdc-pinctrl";
		pinctrl-names = "aud_active", "aud_sleep";
		pinctrl-0 = <&wcd_buck_vsel_default>;
		pinctrl-1 = <&wcd_buck_vsel_default>;
	};
};

&wcd9xxx_intc {
	status = "okay";
};

&wdsp_mgr {
	status = "okay";
};

&wdsp_glink {
	status = "okay";
};

&slim_aud {
	status = "okay";
};

&dai_slim {
	status = "okay";
};

&wcd934x_cdc {
	status = "okay";
	qcom,has-buck-vsel-gpio;
	qcom,buck-vsel-gpio-node = <&wcd_buck_vreg_gpio>;
};

&clock_audio_lnbb {
	status = "okay";
};

&wcd_rst_gpio {
	status = "okay";
};

&wcd9xxx_intc {
	status = "okay";
};
+18 −0
Original line number Diff line number Diff line
@@ -9,3 +9,21 @@
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include "sdm670-ext-codec-audio-overlay.dtsi"

&int_codec {
	status = "disabled";
};

&tavil_snd {
	status = "okay";
};

&slim_aud {
	status = "okay";
};

&dai_slim {
	status = "okay";
};
+16 −0
Original line number Diff line number Diff line
@@ -1406,6 +1406,22 @@
			};
		};

		wcd_buck_vsel {
			wcd_buck_vsel_default: wcd_buck_vsel_default{
				mux {
					pins = "gpio94";
					function = "gpio";
				};

				config {
					pins = "gpio94";
					drive-strength = <8>; /* 8 mA */
					bias-pull-down; /* pull down */
					output-high;
				};
			};
		};

		wcd_gnd_mic_swap {
			wcd_gnd_mic_swap_idle: wcd_gnd_mic_swap_idle {
				mux {