mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
ARM: dts: msm: Add audio nodes for sdxnightjar
Add soundcard support. Change-Id: I8fba31fa2d269a2031d6efdeea6e5b788591e99b
This commit is contained in:
parent
f6c0edf424
commit
0ad8ebb0fc
6 changed files with 626 additions and 0 deletions
341
qcom/sdx-audio-lpass-elite.dtsi
Normal file
341
qcom/sdx-audio-lpass-elite.dtsi
Normal file
|
|
@ -0,0 +1,341 @@
|
|||
&soc {
|
||||
qcom,msm-adsp-loader {
|
||||
compatible = "qcom,adsp-loader";
|
||||
qcom,adsp-state = <0>;
|
||||
qcom,proc-img-to-load = "modem";
|
||||
};
|
||||
|
||||
qcom,msm-audio-ion {
|
||||
compatible = "qcom,msm-audio-ion";
|
||||
};
|
||||
|
||||
pcm0: qcom,msm-pcm {
|
||||
compatible = "qcom,msm-pcm-dsp";
|
||||
qcom,msm-pcm-dsp-id = <0>;
|
||||
};
|
||||
|
||||
routing: qcom,msm-pcm-routing {
|
||||
compatible = "qcom,msm-pcm-routing";
|
||||
};
|
||||
|
||||
pcm1: qcom,msm-pcm-low-latency {
|
||||
compatible = "qcom,msm-pcm-dsp";
|
||||
qcom,msm-pcm-dsp-id = <1>;
|
||||
qcom,msm-pcm-low-latency;
|
||||
qcom,latency-level = "regular";
|
||||
};
|
||||
|
||||
pcm2: qcom,msm-ultra-low-latency {
|
||||
compatible = "qcom,msm-pcm-dsp";
|
||||
qcom,msm-pcm-dsp-id = <2>;
|
||||
qcom,msm-pcm-low-latency;
|
||||
qcom,latency-level = "ultra";
|
||||
};
|
||||
|
||||
pcm_noirq: qcom,msm-pcm-dsp-noirq {
|
||||
compatible = "qcom,msm-pcm-dsp-noirq";
|
||||
qcom,msm-pcm-low-latency;
|
||||
qcom,latency-level = "ultra";
|
||||
};
|
||||
|
||||
|
||||
qcom,msm-compr-dsp {
|
||||
compatible = "qcom,msm-compr-dsp";
|
||||
};
|
||||
|
||||
voip: qcom,msm-voip-dsp {
|
||||
compatible = "qcom,msm-voip-dsp";
|
||||
};
|
||||
|
||||
voice: qcom,msm-pcm-voice {
|
||||
compatible = "qcom,msm-pcm-voice";
|
||||
qcom,destroy-cvd;
|
||||
};
|
||||
|
||||
stub_codec: qcom,msm-stub-codec {
|
||||
compatible = "qcom,msm-stub-codec";
|
||||
};
|
||||
|
||||
qcom,msm-dai-fe {
|
||||
compatible = "qcom,msm-dai-fe";
|
||||
};
|
||||
|
||||
afe: qcom,msm-pcm-afe {
|
||||
compatible = "qcom,msm-pcm-afe";
|
||||
};
|
||||
|
||||
hostless: qcom,msm-pcm-hostless {
|
||||
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";
|
||||
};
|
||||
|
||||
loopback: qcom,msm-pcm-loopback {
|
||||
compatible = "qcom,msm-pcm-loopback";
|
||||
};
|
||||
|
||||
compress: qcom,msm-compress-dsp {
|
||||
compatible = "qcom,msm-compress-dsp";
|
||||
qcom,adsp-version = "MDSP 2.9";
|
||||
};
|
||||
|
||||
qcom,msm-dai-stub {
|
||||
compatible = "qcom,msm-dai-stub";
|
||||
dtmf_tx: qcom,msm-dai-stub-dtmf-tx {
|
||||
compatible = "qcom,msm-dai-stub-dev";
|
||||
qcom,msm-dai-stub-dev-id = <4>;
|
||||
};
|
||||
|
||||
rx_capture_tx: qcom,msm-dai-stub-host-rx-capture-tx {
|
||||
compatible = "qcom,msm-dai-stub-dev";
|
||||
qcom,msm-dai-stub-dev-id = <5>;
|
||||
};
|
||||
|
||||
rx_playback_rx: qcom,msm-dai-stub-host-rx-playback-rx {
|
||||
compatible = "qcom,msm-dai-stub-dev";
|
||||
qcom,msm-dai-stub-dev-id = <6>;
|
||||
};
|
||||
|
||||
tx_capture_tx: qcom,msm-dai-stub-host-tx-capture-tx {
|
||||
compatible = "qcom,msm-dai-stub-dev";
|
||||
qcom,msm-dai-stub-dev-id = <7>;
|
||||
};
|
||||
|
||||
tx_playback_rx: qcom,msm-dai-stub-host-tx-playback-rx {
|
||||
compatible = "qcom,msm-dai-stub-dev";
|
||||
qcom,msm-dai-stub-dev-id = <8>;
|
||||
};
|
||||
};
|
||||
|
||||
qcom,msm-dai-q6 {
|
||||
compatible = "qcom,msm-dai-q6";
|
||||
afe_pcm_rx: qcom,msm-dai-q6-be-afe-pcm-rx {
|
||||
compatible = "qcom,msm-dai-q6-dev";
|
||||
qcom,msm-dai-q6-dev-id = <224>;
|
||||
};
|
||||
|
||||
afe_pcm_tx: qcom,msm-dai-q6-be-afe-pcm-tx {
|
||||
compatible = "qcom,msm-dai-q6-dev";
|
||||
qcom,msm-dai-q6-dev-id = <225>;
|
||||
};
|
||||
|
||||
afe_proxy_rx: qcom,msm-dai-q6-afe-proxy-rx {
|
||||
compatible = "qcom,msm-dai-q6-dev";
|
||||
qcom,msm-dai-q6-dev-id = <241>;
|
||||
};
|
||||
|
||||
afe_proxy_tx: qcom,msm-dai-q6-afe-proxy-tx {
|
||||
compatible = "qcom,msm-dai-q6-dev";
|
||||
qcom,msm-dai-q6-dev-id = <240>;
|
||||
};
|
||||
|
||||
incall_record_rx: qcom,msm-dai-q6-incall-record-rx {
|
||||
compatible = "qcom,msm-dai-q6-dev";
|
||||
qcom,msm-dai-q6-dev-id = <32771>;
|
||||
};
|
||||
|
||||
incall_record_tx: qcom,msm-dai-q6-incall-record-tx {
|
||||
compatible = "qcom,msm-dai-q6-dev";
|
||||
qcom,msm-dai-q6-dev-id = <32772>;
|
||||
};
|
||||
|
||||
incall_music_rx: qcom,msm-dai-q6-incall-music-rx {
|
||||
compatible = "qcom,msm-dai-q6-dev";
|
||||
qcom,msm-dai-q6-dev-id = <32773>;
|
||||
};
|
||||
};
|
||||
|
||||
pcm_dtmf: qcom,msm-pcm-dtmf {
|
||||
compatible = "qcom,msm-pcm-dtmf";
|
||||
};
|
||||
|
||||
dai_pri_auxpcm: qcom,msm-pri-auxpcm {
|
||||
compatible = "qcom,msm-auxpcm-dev";
|
||||
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-num-slots = <1>, <1>;
|
||||
qcom,msm-cpudai-auxpcm-slot-mapping = <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-cpudai-afe-clk-ver = <2>;
|
||||
};
|
||||
|
||||
dai_sec_auxpcm: qcom,msm-sec-auxpcm {
|
||||
compatible = "qcom,msm-auxpcm-dev";
|
||||
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-num-slots = <1>, <1>;
|
||||
qcom,msm-cpudai-auxpcm-slot-mapping = <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-cpudai-afe-clk-ver = <2>;
|
||||
};
|
||||
|
||||
qcom,msm-dai-tdm-pri-rx {
|
||||
compatible = "qcom,msm-dai-tdm";
|
||||
qcom,msm-cpudai-tdm-group-id = <37120>;
|
||||
qcom,msm-cpudai-tdm-group-num-ports = <1>;
|
||||
qcom,msm-cpudai-tdm-group-port-id = <36864>;
|
||||
qcom,msm-cpudai-tdm-clk-rate = <12288000>;
|
||||
qcom,msm-cpudai-tdm-clk-internal = <1>;
|
||||
qcom,msm-cpudai-tdm-sync-mode = <0>;
|
||||
qcom,msm-cpudai-tdm-sync-src = <1>;
|
||||
qcom,msm-cpudai-tdm-data-out = <0>;
|
||||
qcom,msm-cpudai-tdm-invert-sync = <0>;
|
||||
qcom,msm-cpudai-tdm-data-delay = <1>;
|
||||
qcom,msm-cpudai-tdm-clk-attribute = /bits/ 16 <1>;
|
||||
dai_pri_tdm_rx_0: qcom,msm-dai-q6-tdm-pri-rx-0 {
|
||||
compatible = "qcom,msm-dai-q6-tdm";
|
||||
qcom,msm-cpudai-tdm-dev-id = <36864>;
|
||||
qcom,msm-cpudai-tdm-data-align = <0>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
qcom,msm-dai-tdm-pri-tx {
|
||||
compatible = "qcom,msm-dai-tdm";
|
||||
qcom,msm-cpudai-tdm-group-id = <37121>;
|
||||
qcom,msm-cpudai-tdm-group-num-ports = <1>;
|
||||
qcom,msm-cpudai-tdm-group-port-id = <36865>;
|
||||
qcom,msm-cpudai-tdm-clk-rate = <12288000>;
|
||||
qcom,msm-cpudai-tdm-clk-internal = <1>;
|
||||
qcom,msm-cpudai-tdm-sync-mode = <0>;
|
||||
qcom,msm-cpudai-tdm-sync-src = <1>;
|
||||
qcom,msm-cpudai-tdm-data-out = <0>;
|
||||
qcom,msm-cpudai-tdm-invert-sync = <0>;
|
||||
qcom,msm-cpudai-tdm-data-delay = <1>;
|
||||
qcom,msm-cpudai-tdm-clk-attribute = /bits/ 16 <1>;
|
||||
dai_pri_tdm_tx_0: qcom,msm-dai-q6-tdm-pri-tx-0 {
|
||||
compatible = "qcom,msm-dai-q6-tdm";
|
||||
qcom,msm-cpudai-tdm-dev-id = <36865>;
|
||||
qcom,msm-cpudai-tdm-data-align = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
qcom,msm-dai-tdm-sec-rx {
|
||||
compatible = "qcom,msm-dai-tdm";
|
||||
qcom,msm-cpudai-tdm-group-id = <37136>;
|
||||
qcom,msm-cpudai-tdm-group-num-ports = <1>;
|
||||
qcom,msm-cpudai-tdm-group-port-id = <36880>;
|
||||
qcom,msm-cpudai-tdm-clk-rate = <12288000>;
|
||||
qcom,msm-cpudai-tdm-clk-internal = <1>;
|
||||
qcom,msm-cpudai-tdm-sync-mode = <1>;
|
||||
qcom,msm-cpudai-tdm-sync-src = <0>;
|
||||
qcom,msm-cpudai-tdm-data-out = <0>;
|
||||
qcom,msm-cpudai-tdm-invert-sync = <0>;
|
||||
qcom,msm-cpudai-tdm-data-delay = <0>;
|
||||
dai_sec_tdm_rx_0: qcom,msm-dai-q6-tdm-sec-rx-0 {
|
||||
compatible = "qcom,msm-dai-q6-tdm";
|
||||
qcom,msm-cpudai-tdm-dev-id = <36880>;
|
||||
qcom,msm-cpudai-tdm-data-align = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
qcom,msm-dai-tdm-sec-tx {
|
||||
compatible = "qcom,msm-dai-tdm";
|
||||
qcom,msm-cpudai-tdm-group-id = <37137>;
|
||||
qcom,msm-cpudai-tdm-group-num-ports = <1>;
|
||||
qcom,msm-cpudai-tdm-group-port-id = <36881>;
|
||||
qcom,msm-cpudai-tdm-clk-rate = <12288000>;
|
||||
qcom,msm-cpudai-tdm-clk-internal = <1>;
|
||||
qcom,msm-cpudai-tdm-sync-mode = <1>;
|
||||
qcom,msm-cpudai-tdm-sync-src = <0>;
|
||||
qcom,msm-cpudai-tdm-data-out = <0>;
|
||||
qcom,msm-cpudai-tdm-invert-sync = <0>;
|
||||
qcom,msm-cpudai-tdm-data-delay = <0>;
|
||||
dai_sec_tdm_tx_0: qcom,msm-dai-q6-tdm-sec-tx-0 {
|
||||
compatible = "qcom,msm-dai-q6-tdm";
|
||||
qcom,msm-cpudai-tdm-dev-id = <36881>;
|
||||
qcom,msm-cpudai-tdm-data-align = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
qcom,msm-dai-mi2s {
|
||||
compatible = "qcom,msm-dai-mi2s";
|
||||
mi2s_prim: qcom,msm-dai-q6-mi2s-prim {
|
||||
compatible = "qcom,msm-dai-q6-mi2s";
|
||||
qcom,msm-dai-q6-mi2s-dev-id = <0>;
|
||||
qcom,msm-mi2s-rx-lines = <2>;
|
||||
qcom,msm-mi2s-tx-lines = <1>;
|
||||
};
|
||||
|
||||
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_ws_active_master
|
||||
&pri_sck_active_master
|
||||
&pri_dout_active
|
||||
&pri_din_active>;
|
||||
pinctrl-1 = <&pri_ws_sleep
|
||||
&pri_sck_sleep
|
||||
&pri_dout_sleep
|
||||
&pri_din_sleep>;
|
||||
qcom,mi2s-auxpcm-cdc-gpios;
|
||||
};
|
||||
|
||||
prim_slave: prim_slave_pinctrl {
|
||||
status = "disabled";
|
||||
compatible = "qcom,msm-cdc-pinctrl";
|
||||
pinctrl-names = "aud_active", "aud_sleep";
|
||||
pinctrl-0 = <&pri_ws_active_slave
|
||||
&pri_sck_active_slave
|
||||
&pri_dout_active
|
||||
&pri_din_active>;
|
||||
pinctrl-1 = <&pri_ws_sleep
|
||||
&pri_sck_sleep
|
||||
&pri_dout_sleep
|
||||
&pri_din_sleep>;
|
||||
qcom,mi2s-auxpcm-cdc-gpios;
|
||||
};
|
||||
|
||||
sec_master: sec_master_pinctrl {
|
||||
compatible = "qcom,msm-cdc-pinctrl";
|
||||
pinctrl-names = "aud_active", "aud_sleep";
|
||||
pinctrl-0 = <&sec_ws_active_master
|
||||
&sec_sck_active_master
|
||||
&sec_dout_active
|
||||
&sec_din_active>;
|
||||
pinctrl-1 = <&sec_ws_sleep
|
||||
&sec_sck_sleep
|
||||
&sec_dout_sleep
|
||||
&sec_din_sleep>;
|
||||
qcom,mi2s-auxpcm-cdc-gpios;
|
||||
};
|
||||
|
||||
sec_slave: sec_slave_pinctrl {
|
||||
status = "disabled";
|
||||
compatible = "qcom,msm-cdc-pinctrl";
|
||||
pinctrl-names = "aud_active", "aud_sleep";
|
||||
pinctrl-0 = <&sec_ws_active_slave
|
||||
&sec_sck_active_slave
|
||||
&sec_dout_active
|
||||
&sec_din_active>;
|
||||
pinctrl-1 = <&sec_ws_sleep
|
||||
&sec_sck_sleep
|
||||
&sec_dout_sleep
|
||||
&sec_din_sleep>;
|
||||
qcom,mi2s-auxpcm-cdc-gpios;
|
||||
};
|
||||
};
|
||||
110
qcom/sdxnightjar-audio-overlay.dtsi
Normal file
110
qcom/sdxnightjar-audio-overlay.dtsi
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
#include <dt-bindings/clock/qcom,audio-ext-clk.h>
|
||||
|
||||
&soc {
|
||||
wcd9xxx_intc: wcd9xxx-irq {
|
||||
status = "ok"
|
||||
compatible = "qcom,wcd9xxx-irq";
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <1>;
|
||||
interrupt-parent = <&tlmm_pinmux>;
|
||||
qcom,gpio-connect = <&tlmm_pinmux 94 0>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&wcd_intr_default>;
|
||||
};
|
||||
|
||||
clock_audio_up: audio_ext_clk_up {
|
||||
compatible = "qcom,audio-ref-clk";
|
||||
qcom,codec-ext-clk-src = <AUDIO_LPASS_MCLK_3>;
|
||||
qcom,codec-lpass-clk-id = <770>;
|
||||
qcom,codec-lpass-ext-clk-freq = <12288000>;
|
||||
qcom,use-pinctrl = <1>;
|
||||
pinctrl-names = "sleep", "active";
|
||||
pinctrl-0 = <&i2s_mclk_sleep>;
|
||||
pinctrl-1 = <&i2s_mclk_active>;
|
||||
#clock-cells = <1>;
|
||||
};
|
||||
|
||||
wcd_rst_gpio: msm_cdc_pinctrl@90 {
|
||||
compatible = "qcom,msm-cdc-pinctrl";
|
||||
qcom,cdc-rst-n-gpio = <&tlmm_pinmux 90 0>;
|
||||
pinctrl-names = "aud_active", "aud_sleep";
|
||||
pinctrl-0 = <&cdc_reset_active>;
|
||||
pinctrl-1 = <&cdc_reset_sleep>;
|
||||
};
|
||||
|
||||
spkr_1_wcd_en: spkr_1_wcd_en@81 {
|
||||
compatible = "qcom,msm-cdc-pinctrl";
|
||||
pinctrl-names = "aud_active", "aud_sleep";
|
||||
pinctrl-0 = <&spkr_1_wcd_en_active>;
|
||||
pinctrl-1 = <&spkr_1_wcd_en_sleep>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&i2c_3 {
|
||||
status = "ok"
|
||||
tasha_codec: wcd9xxx_codec@d {
|
||||
compatible = "qcom,tasha-i2c-pgd";
|
||||
reg = <0x0d>;
|
||||
|
||||
interrupt-parent = <&wcd9xxx_intc>;
|
||||
interrupts = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
||||
17 18 19 20 21 22 23 24 25 26 27 28 29
|
||||
30>;
|
||||
|
||||
qcom,wcd-rst-gpio-node = <&wcd_rst_gpio>;
|
||||
|
||||
clock-names = "wcd_clk";
|
||||
clocks = <&clock_audio_up 0>;
|
||||
|
||||
qcom,msm-mbhc-hphl-swh = <0>;
|
||||
qcom,msm-mbhc-gnd-swh = <0>;
|
||||
|
||||
cdc-vdd-buck-supply = <&codec_buck_vreg>;
|
||||
qcom,cdc-vdd-buck-voltage = <1800000 1800000>;
|
||||
qcom,cdc-vdd-buck-current = <650000>;
|
||||
|
||||
cdc-buck-sido-supply = <&codec_buck_vreg>;
|
||||
qcom,cdc-buck-sido-voltage = <1800000 1800000>;
|
||||
qcom,cdc-buck-sido-current = <200000>;
|
||||
|
||||
cdc-vdd-tx-h-supply = <&pmd9650_l6>;
|
||||
qcom,cdc-vdd-tx-h-voltage = <1800000 1800000>;
|
||||
qcom,cdc-vdd-tx-h-current = <25000>;
|
||||
|
||||
cdc-vdd-rx-h-supply = <&pmd9650_l6>;
|
||||
qcom,cdc-vdd-rx-h-voltage = <1800000 1800000>;
|
||||
qcom,cdc-vdd-rx-h-current = <25000>;
|
||||
|
||||
cdc-vddpx-1-supply = <&pmd9650_l6>;
|
||||
qcom,cdc-vddpx-1-voltage = <1800000 1800000>;
|
||||
qcom,cdc-vddpx-1-current = <10000>;
|
||||
|
||||
qcom,cdc-static-supplies = "cdc-vdd-buck",
|
||||
"cdc-buck-sido",
|
||||
"cdc-vdd-tx-h",
|
||||
"cdc-vdd-rx-h",
|
||||
"cdc-vddpx-1";
|
||||
|
||||
qcom,cdc-micbias1-mv = <1800>;
|
||||
qcom,cdc-micbias2-mv = <1800>;
|
||||
qcom,cdc-micbias3-mv = <1800>;
|
||||
qcom,cdc-micbias4-mv = <1800>;
|
||||
qcom,cdc-mclk-clk-rate = <9600000>;
|
||||
qcom,cdc-dmic-sample-rate = <4800000>;
|
||||
|
||||
swr_master {
|
||||
compatible = "qcom,swr-wcd";
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
qcom,swr-num-dev = <1>;
|
||||
|
||||
wsa881x_211: wsa881x@20170211 {
|
||||
compatible = "qcom,wsa881x";
|
||||
reg = <0x00 0x20170211>;
|
||||
qcom,spkr-sd-n-node = <&spkr_1_wcd_en>;
|
||||
qcom,wsa-prefix = "SpkrLeft";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
83
qcom/sdxnightjar-audio.dtsi
Normal file
83
qcom/sdxnightjar-audio.dtsi
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
#include "sdx-audio-lpass-elite.dtsi"
|
||||
|
||||
&audio_apr {
|
||||
q6core: qcom,q6core-audio {
|
||||
compatible = "qcom,q6core-audio";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
&soc {
|
||||
snd_9335: sound-tasha {
|
||||
compatible = "qcom,mdm-audio-tasha";
|
||||
qcom,model = "sdx-tasha-i2s-snd-card";
|
||||
qcom,pri-mi2s-gpio = <&prim_master>;
|
||||
qcom,sec-mi2s-gpio = <&sec_master>;
|
||||
|
||||
qcom,audio-routing =
|
||||
"RX_BIAS", "MCLK",
|
||||
"MADINPUT", "MCLK",
|
||||
"AMIC2", "Headset Mic",
|
||||
"Headset Mic", "MIC BIAS2",
|
||||
"AMIC3", "ANCRight Headset Mic",
|
||||
"ANCRight Headset Mic", "MIC BIAS2",
|
||||
"AMIC4", "ANCLeft Headset Mic",
|
||||
"ANCLeft Headset Mic", "MIC BIAS2",
|
||||
"AMIC5", "Handset Mic",
|
||||
"Handset Mic", "MIC BIAS3",
|
||||
"DMIC1", "Digital Mic1",
|
||||
"DMIC1", "MIC BIAS1",
|
||||
"DMIC2", "Digital Mic2",
|
||||
"DMIC2", "MIC BIAS3",
|
||||
"DMIC3", "Digital Mic3",
|
||||
"DMIC3", "MIC BIAS3",
|
||||
"DMIC4", "Digital Mic4",
|
||||
"DMIC4", "MIC BIAS4",
|
||||
"DMIC5", "Digital Mic5",
|
||||
"DMIC5", "MIC BIAS4",
|
||||
"SpkrLeft IN", "SPK1 OUT";
|
||||
|
||||
qcom,tasha-mclk-clk-freq = <12288000>;
|
||||
qcom,msm-mbhc-hphl-swh = <1>;
|
||||
qcom,msm-mbhc-gnd-swh = <1>;
|
||||
qcom,msm-mbhc-hs-mic-max-threshold-mv = <1700>;
|
||||
qcom,msm-mbhc-hs-mic-min-threshold-mv = <50>;
|
||||
|
||||
asoc-platform = <&pcm0>, <&pcm1>, <&pcm2>, <&voip>, <&voice>,
|
||||
<&loopback>, <&hostless>, <&afe>, <&routing>,
|
||||
<&pcm_dtmf>, <&host_pcm>,
|
||||
<&pcm_noirq>;
|
||||
asoc-platform-names = "msm-pcm-dsp.0", "msm-pcm-dsp.1",
|
||||
"msm-pcm-dsp.2",
|
||||
"msm-voip-dsp", "msm-pcm-voice",
|
||||
"msm-pcm-loopback", "msm-pcm-hostless",
|
||||
"msm-pcm-afe", "msm-pcm-routing",
|
||||
"msm-pcm-dtmf", "msm-voice-host-pcm",
|
||||
"msm-pcm-dsp-noirq";
|
||||
asoc-cpu = <&dai_pri_auxpcm>, <&mi2s_prim>, <&mi2s_sec>,
|
||||
<&dtmf_tx>,
|
||||
<&rx_capture_tx>, <&rx_playback_rx>,
|
||||
<&tx_capture_tx>, <&tx_playback_rx>,
|
||||
<&afe_pcm_rx>, <&afe_pcm_tx>, <&afe_proxy_rx>,
|
||||
<&afe_proxy_tx>, <&incall_record_rx>,
|
||||
<&incall_record_tx>, <&incall_music_rx>,
|
||||
<&dai_sec_auxpcm>;
|
||||
asoc-cpu-names = "msm-dai-q6-auxpcm.1",
|
||||
"msm-dai-q6-mi2s.0", "msm-dai-q6-mi2s.1",
|
||||
"msm-dai-stub-dev.4", "msm-dai-stub-dev.5",
|
||||
"msm-dai-stub-dev.6", "msm-dai-stub-dev.7",
|
||||
"msm-dai-stub-dev.8", "msm-dai-q6-dev.224",
|
||||
"msm-dai-q6-dev.225", "msm-dai-q6-dev.241",
|
||||
"msm-dai-q6-dev.240", "msm-dai-q6-dev.32771",
|
||||
"msm-dai-q6-dev.32772", "msm-dai-q6-dev.32773",
|
||||
"msm-dai-q6-auxpcm.2";
|
||||
asoc-codec = <&stub_codec>, <&wsa881x_211>;
|
||||
asoc-codec-names = "msm-stub-codec.1", "wsa-codec.1";
|
||||
qcom,wsa-max-devs = <1>;
|
||||
qcom,swr-num-dev = <1>;
|
||||
qcom,wsa-aux-dev-prefix = "SpkrLeft";
|
||||
qcom,wsa-devs = <&wsa881x_211>;
|
||||
qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&tasha_codec>;
|
||||
};
|
||||
};
|
||||
|
|
@ -10,6 +10,12 @@
|
|||
reg = <ION_SYSTEM_HEAP_ID>;
|
||||
qcom,ion-heap-type = "MSM_SYSTEM";
|
||||
};
|
||||
|
||||
audio_heap: qcom,ion-heap@8 { /* AUDIO HEAP */
|
||||
reg = <ION_AUDIO_HEAP_ID>;
|
||||
memory-region = <&audio_mem>;
|
||||
qcom,ion-heap-type = "DMA";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -830,6 +830,52 @@
|
|||
};
|
||||
};
|
||||
|
||||
wcd9xxx_intr {
|
||||
wcd_intr_default: wcd_intr_default {
|
||||
mux {
|
||||
pins = "gpio94";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio94";
|
||||
drive-strength = <2>; /* 2 mA */
|
||||
bias-pull-down; /* pull down */
|
||||
input-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
spkr_1_wcd {
|
||||
spkr_1_wcd_en_active: spkr_1_wcd_en_active {
|
||||
mux {
|
||||
pins = "gpio81";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio81";
|
||||
drive-strength = <16>; /* 16 mA */
|
||||
bias-disable;
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
|
||||
spkr_1_wcd_en_sleep: spkr_1_wcd_en_sleep {
|
||||
mux {
|
||||
pins = "gpio81";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio81";
|
||||
drive-strength = <2>; /* 2 mA */
|
||||
bias-pull-down;
|
||||
input-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
i2s_mclk {
|
||||
i2s_mclk_sleep: i2s_mclk_sleep {
|
||||
mux {
|
||||
|
|
@ -1299,6 +1345,37 @@
|
|||
};
|
||||
};
|
||||
|
||||
cdc_reset_ctrl {
|
||||
cdc_reset_sleep: cdc_reset_sleep {
|
||||
mux {
|
||||
pins = "gpio90";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio90";
|
||||
drive-strength = <2>;
|
||||
bias-disable;
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
cdc_reset_active:cdc_reset_active {
|
||||
mux {
|
||||
pins = "gpio90";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio90";
|
||||
drive-strength = <8>;
|
||||
bias-pull-down;
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
sdc1_cmd_on: sdc1_cmd_on {
|
||||
config {
|
||||
pins = "sdc1_cmd";
|
||||
|
|
|
|||
|
|
@ -59,6 +59,13 @@
|
|||
reusable;
|
||||
size = <0x400000>;
|
||||
};
|
||||
|
||||
audio_mem: audio_region@0 {
|
||||
compatible = "shared-dma-pool";
|
||||
alloc-ranges = <0x00000000 0xffffffff>;
|
||||
reusable;
|
||||
size = <0x400000>;
|
||||
};
|
||||
};
|
||||
|
||||
aliases { };
|
||||
|
|
@ -1022,6 +1029,8 @@
|
|||
#include "sdxnightjar-blsp.dtsi"
|
||||
#include "sdxnightjar-cnss.dtsi"
|
||||
#include "sdxnightjar-pcie.dtsi"
|
||||
#include "sdxnightjar-audio.dtsi"
|
||||
#include "sdxnightjar-audio-overlay.dtsi"
|
||||
|
||||
&i2c_3 {
|
||||
status = "ok"
|
||||
|
|
|
|||
Loading…
Reference in a new issue