You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
134 lines
4.1 KiB
134 lines
4.1 KiB
/*
|
|
* Copyright (c) 2018-2019, 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.
|
|
*/
|
|
|
|
&q6core {
|
|
cdc_dmic01_gpios: cdc_dmic01_pinctrl {
|
|
compatible = "qcom,msm-cdc-pinctrl";
|
|
pinctrl-names = "aud_active", "aud_sleep";
|
|
pinctrl-0 = <&cdc_dmic01_clk_active &cdc_dmic01_data_active>;
|
|
pinctrl-1 = <&cdc_dmic01_clk_sleep &cdc_dmic01_data_sleep>;
|
|
qcom,lpi-gpios;
|
|
};
|
|
|
|
cdc_dmic23_gpios: cdc_dmic23_pinctrl {
|
|
compatible = "qcom,msm-cdc-pinctrl";
|
|
pinctrl-names = "aud_active", "aud_sleep";
|
|
pinctrl-0 = <&cdc_dmic23_clk_active &cdc_dmic23_data_active>;
|
|
pinctrl-1 = <&cdc_dmic23_clk_sleep &cdc_dmic23_data_sleep>;
|
|
qcom,lpi-gpios;
|
|
};
|
|
|
|
cdc_dmic45_gpios: cdc_dmic45_pinctrl {
|
|
compatible = "qcom,msm-cdc-pinctrl";
|
|
pinctrl-names = "aud_active", "aud_sleep";
|
|
pinctrl-0 = <&cdc_dmic45_clk_active &cdc_dmic45_data_active>;
|
|
pinctrl-1 = <&cdc_dmic45_clk_sleep &cdc_dmic45_data_sleep>;
|
|
qcom,lpi-gpios;
|
|
};
|
|
|
|
cdc_dmic67_gpios: cdc_dmic67_pinctrl {
|
|
compatible = "qcom,msm-cdc-pinctrl";
|
|
pinctrl-names = "aud_active", "aud_sleep";
|
|
pinctrl-0 = <&cdc_dmic67_clk_active &cdc_dmic67_data_active>;
|
|
pinctrl-1 = <&cdc_dmic67_clk_sleep &cdc_dmic67_data_sleep>;
|
|
qcom,lpi-gpios;
|
|
};
|
|
|
|
pri_mi2s_gpios: pri_mi2s_pinctrl {
|
|
compatible = "qcom,msm-cdc-pinctrl";
|
|
pinctrl-names = "aud_active", "aud_sleep";
|
|
pinctrl-0 = <&pri_mi2s_sck_active &pri_mi2s_ws_active
|
|
&pri_mi2s_sd0_active>;
|
|
pinctrl-1 = <&pri_mi2s_sck_sleep &pri_mi2s_ws_sleep
|
|
&pri_mi2s_sd0_sleep>;
|
|
};
|
|
|
|
sec_mi2s_gpios: sec_mi2s_pinctrl {
|
|
compatible = "qcom,msm-cdc-pinctrl";
|
|
pinctrl-names = "aud_active", "aud_sleep";
|
|
pinctrl-0 = <&sec_mi2s_sck_active &sec_mi2s_ws_active
|
|
&sec_mi2s_sd0_active &sec_mi2s_sd1_active
|
|
&sec_mi2s_sd2_active &sec_mi2s_sd3_active>;
|
|
pinctrl-1 = <&sec_mi2s_sck_sleep &sec_mi2s_ws_sleep
|
|
&sec_mi2s_sd0_sleep &sec_mi2s_sd1_sleep
|
|
&sec_mi2s_sd2_sleep &sec_mi2s_sd3_sleep>;
|
|
};
|
|
};
|
|
|
|
&q6core {
|
|
bolero: bolero-cdc {
|
|
compatible = "qcom,bolero-codec";
|
|
clock-names = "lpass_core_hw_vote";
|
|
clocks = <&lpass_core_hw_vote 0>;
|
|
qcom,num-macros = <1>;
|
|
};
|
|
};
|
|
|
|
&qcs405_snd {
|
|
qcom,model = "qcs405-csra1-snd-card";
|
|
qcom,va-bolero-codec = <1>;
|
|
qcom,tasha-codec = <1>;
|
|
qcom,csra-codec = <1>;
|
|
asoc-codec = <&stub_codec>, <&bolero>;
|
|
asoc-codec-names = "msm-stub-codec.1", "bolero_codec";
|
|
qcom,csra-max-devs = <1>;
|
|
qcom,csra-devs = <&csra66x0_ampl_68>;
|
|
qcom,csra-aux-dev-prefix = "CSRA_12";
|
|
qcom,cdc-dmic01-gpios = <&cdc_dmic01_gpios>;
|
|
qcom,cdc-dmic23-gpios = <&cdc_dmic23_gpios>;
|
|
qcom,cdc-dmic45-gpios = <&cdc_dmic45_gpios>;
|
|
qcom,cdc-dmic67-gpios = <&cdc_dmic67_gpios>;
|
|
qcom,pri-mi2s-gpios = <&pri_mi2s_gpios>;
|
|
qcom,sec-mi2s-gpios = <&sec_mi2s_gpios>;
|
|
qcom,audio-routing =
|
|
"RX_BIAS", "MCLK",
|
|
"lineout booster", "LINEOUT1",
|
|
"lineout booster", "LINEOUT2",
|
|
"LINEOUT1", "rx regulator",
|
|
"LINEOUT2", "rx regulator",
|
|
"AMIC3", "tx regulator",
|
|
"AMIC4", "tx regulator",
|
|
"AMIC3", "MIC BIAS3",
|
|
"AMIC4", "MIC BIAS4",
|
|
"MIC BIAS3", "Analog Mic3",
|
|
"MIC BIAS4", "Analog Mic4",
|
|
"VA DMIC0", "VA MIC BIAS1",
|
|
"VA MIC BIAS1", "Digital Mic0",
|
|
"VA DMIC1", "VA MIC BIAS1",
|
|
"VA MIC BIAS1", "Digital Mic1",
|
|
"VA DMIC2", "VA MIC BIAS1",
|
|
"VA MIC BIAS1", "Digital Mic2",
|
|
"VA DMIC3", "VA MIC BIAS1",
|
|
"VA MIC BIAS1", "Digital Mic3",
|
|
"VA DMIC4", "VA MIC BIAS1",
|
|
"VA MIC BIAS1", "Digital Mic4",
|
|
"VA DMIC5", "VA MIC BIAS1",
|
|
"VA MIC BIAS1", "Digital Mic5",
|
|
"VA DMIC6", "VA MIC BIAS1",
|
|
"VA MIC BIAS1", "Digital Mic6",
|
|
"VA DMIC7", "VA MIC BIAS1",
|
|
"VA MIC BIAS1", "Digital Mic7",
|
|
"CSRA_12 IN", "PRI_MI2S_RX";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&spdifrx_opt_default>;
|
|
};
|
|
|
|
&dai_mi2s0 {
|
|
qcom,msm-mi2s-rx-lines = <0x1>;
|
|
};
|
|
|
|
#include "qcs405-tasha.dtsi"
|
|
#include "qcs405-va-bolero.dtsi"
|
|
#include "qcs405-csra1.dtsi"
|
|
|
|
|
|
|