mirror of
https://github.com/Evolution-X-Devices/kernel_oneplus_sm8550-devicetrees
synced 2026-02-01 09:04:24 +00:00
ARM: dts: msm: add audio routings sdxpinn
Add device tree entries for sdxpinn. Change-Id: Idf8f8762b9505b5389bc32a6ec3ffa68bffa06b3
This commit is contained in:
337
sdx-audio-lpass.dtsi
Normal file
337
sdx-audio-lpass.dtsi
Normal file
@@ -0,0 +1,337 @@
|
||||
&soc {
|
||||
spf_core_platform: spf_core_platform {
|
||||
compatible = "qcom,spf-core-platform";
|
||||
};
|
||||
|
||||
audio_pkt_core_platform: audio-pkt-platform {
|
||||
compatible = "qcom,audio-pkt-core-platform";
|
||||
};
|
||||
|
||||
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-cma";
|
||||
qcom,scm-mp-enabled;
|
||||
memory-region = <&audio_heap_mem>;
|
||||
};
|
||||
|
||||
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 = "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 1.2";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
};
|
||||
17
sdx-wsa881x.dtsi
Normal file
17
sdx-wsa881x.dtsi
Normal file
@@ -0,0 +1,17 @@
|
||||
&i2c_3 {
|
||||
tavil_codec {
|
||||
swr_master {
|
||||
compatible = "qcom,swr-wcd";
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
qcom,swr-num-dev = <1>;
|
||||
|
||||
wsa881x_0214: wsa881x@21170214 {
|
||||
compatible = "qcom,wsa881x";
|
||||
reg = <0x00 0x21170214>;
|
||||
qcom,spkr-sd-n-node = <&wsa_spkr_wcd_sd1>;
|
||||
qcom,wsa-prefix = "SpkrLeft";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
131
sdxpinn-audio-overlay.dtsi
Normal file
131
sdxpinn-audio-overlay.dtsi
Normal file
@@ -0,0 +1,131 @@
|
||||
#include "sdxpinn-wcd.dtsi"
|
||||
#include "sdx-wsa881x.dtsi"
|
||||
#include <dt-bindings/clock/qcom,audio-ext-clk.h>
|
||||
|
||||
&snd_934x {
|
||||
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,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>;
|
||||
qcom,cdc-ext-clk-rate = <9600000>;
|
||||
qcom,tavil-mclk-clk-freq = <9600000>;
|
||||
|
||||
asoc-codec = <&stub_codec>, <&wsa881x_0214>;
|
||||
asoc-codec-names = "msm-stub-codec.1", "wsa-codec.1";
|
||||
|
||||
qcom,wsa-max-devs = <1>;
|
||||
qcom,swr-num-dev = <1>;
|
||||
qcom,wsa-devs = <&wsa881x_0214>;
|
||||
qcom,wsa-aux-dev-prefix = "SpkrLeft";
|
||||
qcom,msm_audio_ssr_devs = <&audio_gpr>, <&wcd934x_cdc>;
|
||||
};
|
||||
|
||||
&soc {
|
||||
wcd9xxx_intc: wcd9xxx-irq {
|
||||
status = "ok";
|
||||
compatible = "qcom,wcd9xxx-irq";
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <1>;
|
||||
interrupt-parent = <&tlmm>;
|
||||
qcom,gpio-connect = <&tlmm 75 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 = <0x302>;
|
||||
qcom,codec-lpass-ext-clk-freq = <9600000>;
|
||||
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@77 {
|
||||
compatible = "qcom,msm-cdc-pinctrl";
|
||||
qcom,cdc-rst-n-gpio = <&tlmm 77 0>;
|
||||
pinctrl-names = "aud_active", "aud_sleep";
|
||||
pinctrl-0 = <&cdc_reset_active>;
|
||||
pinctrl-1 = <&cdc_reset_sleep>;
|
||||
};
|
||||
};
|
||||
|
||||
&i2c_3 {
|
||||
status = "ok";
|
||||
wcd934x_cdc: tavil_codec {
|
||||
compatible = "qcom,tavil-i2c";
|
||||
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 31>;
|
||||
|
||||
qcom,wcd-rst-gpio-node = <&wcd_rst_gpio>;
|
||||
|
||||
clock-names = "wcd_clk";
|
||||
clocks = <&clock_audio_up 0>;
|
||||
|
||||
cdc-vdd-buck-supply = <&pmx75_l6>;
|
||||
qcom,cdc-vdd-buck-voltage = <1800000 1800000>;
|
||||
qcom,cdc-vdd-buck-current = <650000>;
|
||||
|
||||
cdc-buck-sido-supply = <&pmx75_l6>;
|
||||
qcom,cdc-buck-sido-voltage = <1800000 1800000>;
|
||||
qcom,cdc-buck-sido-current = <250000>;
|
||||
|
||||
cdc-vdd-tx-h-supply = <&pmx75_l6>;
|
||||
qcom,cdc-vdd-tx-h-voltage = <1800000 1800000>;
|
||||
qcom,cdc-vdd-tx-h-current = <25000>;
|
||||
|
||||
cdc-vdd-rx-h-supply = <&pmx75_l6>;
|
||||
qcom,cdc-vdd-rx-h-voltage = <1800000 1800000>;
|
||||
qcom,cdc-vdd-rx-h-current = <25000>;
|
||||
|
||||
cdc-vddpx-1-supply = <&pmx75_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>;
|
||||
|
||||
qcom,wdsp-cmpnt-dev-name = "tavil_codec";
|
||||
};
|
||||
};
|
||||
45
sdxpinn-audio.dtsi
Normal file
45
sdxpinn-audio.dtsi
Normal file
@@ -0,0 +1,45 @@
|
||||
#include "sdx-audio-lpass.dtsi"
|
||||
|
||||
&soc {
|
||||
snd_934x: sound-tavil {
|
||||
compatible = "qcom,sdx-asoc-snd-tavil";
|
||||
qcom,model = "sdx-tavil-i2s-snd-card";
|
||||
qcom,prim_mi2s_master = <&prim_master>;
|
||||
|
||||
asoc-platform = <&pcm0>, <&pcm1>, <&voip>, <&voice>,
|
||||
<&loopback>, <&hostless>, <&afe>, <&routing>,
|
||||
<&pcm_dtmf>, <&host_pcm>, <&compress>;
|
||||
asoc-platform-names = "msm-pcm-dsp.0", "msm-pcm-dsp.1",
|
||||
"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-compress-dsp";
|
||||
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_pri_tdm_rx_0>, <&dai_pri_tdm_tx_0>,
|
||||
<&dai_sec_tdm_rx_0>, <&dai_sec_tdm_tx_0>,
|
||||
<&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-tdm.36864", "msm-dai-q6-tdm.36865",
|
||||
"msm-dai-q6-tdm.36880", "msm-dai-q6-tdm.36881",
|
||||
"msm-dai-q6-auxpcm.2";
|
||||
};
|
||||
};
|
||||
|
||||
&audio_co_heap {
|
||||
status = "okay";
|
||||
memory-region = <&audio_heap_mem>;
|
||||
};
|
||||
68
sdxpinn-wcd.dtsi
Normal file
68
sdxpinn-wcd.dtsi
Normal file
@@ -0,0 +1,68 @@
|
||||
&i2c_3 {
|
||||
tavil_codec {
|
||||
wcd: wcd_pinctrl@5 {
|
||||
compatible = "qcom,wcd-pinctrl";
|
||||
qcom,gpios-count = <5>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
|
||||
spkr_1_wcd_en_active: spkr_1_wcd_en_active {
|
||||
mux {
|
||||
pins = "gpio2";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio2";
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
|
||||
spkr_1_wcd_en_sleep: spkr_1_wcd_en_sleep {
|
||||
mux {
|
||||
pins = "gpio2";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio2";
|
||||
input-enable;
|
||||
};
|
||||
};
|
||||
|
||||
spkr_2_wcd_en_active: spkr_2_sd_n_active {
|
||||
mux {
|
||||
pins = "gpio3";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio3";
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
|
||||
spkr_2_wcd_en_sleep: spkr_2_sd_n_sleep {
|
||||
mux {
|
||||
pins = "gpio3";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio3";
|
||||
input-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
wsa_spkr_wcd_sd1: msm_cdc_pinctrll {
|
||||
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>;
|
||||
};
|
||||
|
||||
wsa_spkr_wcd_sd2: msm_cdc_pinctrlr {
|
||||
compatible = "qcom,msm-cdc-pinctrl";
|
||||
pinctrl-names = "aud_active", "aud_sleep";
|
||||
pinctrl-0 = <&spkr_2_wcd_en_active>;
|
||||
pinctrl-1 = <&spkr_2_wcd_en_sleep>;
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user