Luca Weiss | 9b02244 | 2023-04-14 14:47:36 +0200 | [diff] [blame^] | 1 | #include <dt-bindings/clock/qcom,audio-ext-clk.h> |
| 2 | #include "msm-audio-lpass.dtsi" |
| 3 | |
| 4 | &msm_audio_ion { |
| 5 | iommus = <&apps_smmu 0x01c1 0x0>; |
| 6 | qcom,smmu-sid-mask = /bits/ 64 <0xf>; |
| 7 | }; |
| 8 | |
| 9 | &audio_apr { |
| 10 | q6core: qcom,q6core-audio { |
| 11 | compatible = "qcom,q6core-audio"; |
| 12 | |
| 13 | lpass_audio_hw_vote: vote_lpass_audio_hw { |
| 14 | compatible = "qcom,audio-ref-clk"; |
| 15 | qcom,codec-ext-clk-src = <AUDIO_LPASS_AUDIO_HW_VOTE>; |
| 16 | #clock-cells = <1>; |
| 17 | }; |
| 18 | }; |
| 19 | }; |
| 20 | |
| 21 | #include "bengal-lpi.dtsi" |
| 22 | |
| 23 | &q6core { |
| 24 | cdc_dmic01_gpios: cdc_dmic01_pinctrl { |
| 25 | compatible = "qcom,msm-cdc-pinctrl"; |
| 26 | pinctrl-names = "aud_active", "aud_sleep"; |
| 27 | pinctrl-0 = <&cdc_dmic01_clk_active &cdc_dmic01_data_active>; |
| 28 | pinctrl-1 = <&cdc_dmic01_clk_sleep &cdc_dmic01_data_sleep>; |
| 29 | qcom,lpi-gpios; |
| 30 | }; |
| 31 | |
| 32 | cdc_dmic23_gpios: cdc_dmic23_pinctrl { |
| 33 | compatible = "qcom,msm-cdc-pinctrl"; |
| 34 | pinctrl-names = "aud_active", "aud_sleep"; |
| 35 | pinctrl-0 = <&cdc_dmic23_clk_active &cdc_dmic23_data_active>; |
| 36 | pinctrl-1 = <&cdc_dmic23_clk_sleep &cdc_dmic23_data_sleep>; |
| 37 | qcom,lpi-gpios; |
| 38 | }; |
| 39 | |
| 40 | rx_swr_gpios: rx_swr_clk_data_pinctrl { |
| 41 | compatible = "qcom,msm-cdc-pinctrl"; |
| 42 | pinctrl-names = "aud_active", "aud_sleep"; |
| 43 | pinctrl-0 = <&rx_swr_clk_active &rx_swr_data_active |
| 44 | &rx_swr_data1_active>; |
| 45 | pinctrl-1 = <&rx_swr_clk_sleep &rx_swr_data_sleep |
| 46 | &rx_swr_data1_sleep>; |
| 47 | qcom,lpi-gpios; |
| 48 | }; |
| 49 | |
| 50 | va_swr_gpios: va_swr_clk_data_pinctrl { |
| 51 | compatible = "qcom,msm-cdc-pinctrl"; |
| 52 | pinctrl-names = "aud_active", "aud_sleep"; |
| 53 | pinctrl-0 = <&tx_swr_clk_active &tx_swr_data1_active |
| 54 | &tx_swr_data2_active>; |
| 55 | pinctrl-1 = <&tx_swr_clk_sleep &tx_swr_data1_sleep |
| 56 | &tx_swr_data2_sleep>; |
| 57 | qcom,lpi-gpios; |
| 58 | qcom,chip-wakeup-reg = <0x003ca04c>; |
| 59 | qcom,chip-wakeup-maskbit = <0>; |
| 60 | qcom,chip-wakeup-default-val = <0x1>; |
| 61 | }; |
| 62 | |
| 63 | wsa881x_analog_clk_gpio: msm_cdc_pinctrl@18 { |
| 64 | compatible = "qcom,msm-cdc-pinctrl"; |
| 65 | pinctrl-names = "aud_active", "aud_sleep"; |
| 66 | pinctrl-0 = <&wsa_mclk_active>; |
| 67 | pinctrl-1 = <&wsa_mclk_sleep>; |
| 68 | qcom,lpi-gpios; |
| 69 | }; |
| 70 | }; |
| 71 | |
| 72 | &q6core { |
| 73 | bolero: bolero-cdc { |
| 74 | compatible = "qcom,bolero-codec"; |
| 75 | clock-names = "lpass_audio_hw_vote"; |
| 76 | clocks = <&lpass_audio_hw_vote 0>; |
| 77 | |
| 78 | bolero-clk-rsc-mngr { |
| 79 | compatible = "qcom,bolero-clk-rsc-mngr"; |
| 80 | }; |
| 81 | |
| 82 | va_macro: va-macro@a730000 { |
| 83 | swr0: va_swr_master { |
| 84 | }; |
| 85 | }; |
| 86 | |
| 87 | rx_macro: rx-macro@a600000 { |
| 88 | swr1: rx_swr_master { |
| 89 | }; |
| 90 | }; |
| 91 | }; |
| 92 | }; |
| 93 | |
| 94 | &q6core { |
| 95 | bengal_snd: sound { |
| 96 | compatible = "qcom,bengal-asoc-snd"; |
| 97 | qcom,mi2s-audio-intf = <0>; |
| 98 | qcom,auxpcm-audio-intf = <0>; |
| 99 | qcom,tdm-audio-intf = <0>; |
| 100 | qcom,wcn-btfm = <1>; |
| 101 | qcom,afe-rxtx-lb = <0>; |
| 102 | |
| 103 | asoc-platform = <&pcm0>, <&pcm1>, <&pcm2>, <&voip>, <&voice>, |
| 104 | <&loopback>, <&compress>, <&hostless>, |
| 105 | <&afe>, <&lsm>, <&routing>, <&compr>, |
| 106 | <&pcm_noirq>; |
| 107 | asoc-platform-names = "msm-pcm-dsp.0", "msm-pcm-dsp.1", |
| 108 | "msm-pcm-dsp.2", "msm-voip-dsp", |
| 109 | "msm-pcm-voice", "msm-pcm-loopback", |
| 110 | "msm-compress-dsp", "msm-pcm-hostless", |
| 111 | "msm-pcm-afe", "msm-lsm-client", |
| 112 | "msm-pcm-routing", "msm-compr-dsp", |
| 113 | "msm-pcm-dsp-noirq"; |
| 114 | asoc-cpu = <&dai_mi2s0>, <&dai_mi2s1>, |
| 115 | <&dai_mi2s2>, <&dai_mi2s3>, |
| 116 | <&dai_pri_auxpcm>, |
| 117 | <&dai_sec_auxpcm>, <&dai_tert_auxpcm>, |
| 118 | <&dai_quat_auxpcm>, |
| 119 | <&afe_pcm_rx>, <&afe_pcm_tx>, <&afe_proxy_rx>, |
| 120 | <&afe_proxy_tx>, <&incall_record_rx>, |
| 121 | <&incall_record_tx>, <&incall_music_rx>, |
| 122 | <&incall_music_2_rx>, |
| 123 | <&proxy_rx>, <&proxy_tx>, |
| 124 | <&usb_audio_rx>, <&usb_audio_tx>, |
| 125 | <&sb_7_rx>, <&sb_7_tx>, <&sb_8_tx>, |
| 126 | <&dai_pri_tdm_rx_0>, <&dai_pri_tdm_tx_0>, |
| 127 | <&dai_sec_tdm_rx_0>, <&dai_sec_tdm_tx_0>, |
| 128 | <&dai_tert_tdm_rx_0>, <&dai_tert_tdm_tx_0>, |
| 129 | <&dai_quat_tdm_rx_0>, <&dai_quat_tdm_tx_0>, |
| 130 | <&va_cdc_dma_0_tx>, <&va_cdc_dma_1_tx>, |
| 131 | <&va_cdc_dma_2_tx>, |
| 132 | <&rx_cdc_dma_0_rx>, <&tx_cdc_dma_0_tx>, |
| 133 | <&rx_cdc_dma_1_rx>, <&tx_cdc_dma_1_tx>, |
| 134 | <&rx_cdc_dma_2_rx>, <&tx_cdc_dma_2_tx>, |
| 135 | <&rx_cdc_dma_3_rx>, <&tx_cdc_dma_3_tx>, |
| 136 | <&rx_cdc_dma_4_rx>, <&tx_cdc_dma_4_tx>, |
| 137 | <&rx_cdc_dma_5_rx>, <&tx_cdc_dma_5_tx>, |
| 138 | <&rx_cdc_dma_6_rx>, <&rx_cdc_dma_7_rx>, |
| 139 | <&afe_loopback_tx>; |
| 140 | asoc-cpu-names = "msm-dai-q6-mi2s.0", "msm-dai-q6-mi2s.1", |
| 141 | "msm-dai-q6-mi2s.2", "msm-dai-q6-mi2s.3", |
| 142 | "msm-dai-q6-auxpcm.1", |
| 143 | "msm-dai-q6-auxpcm.2", "msm-dai-q6-auxpcm.3", |
| 144 | "msm-dai-q6-auxpcm.4", "msm-dai-q6-dev.224", |
| 145 | "msm-dai-q6-dev.225", "msm-dai-q6-dev.241", |
| 146 | "msm-dai-q6-dev.240", "msm-dai-q6-dev.32771", |
| 147 | "msm-dai-q6-dev.32772", "msm-dai-q6-dev.32773", |
| 148 | "msm-dai-q6-dev.32770", |
| 149 | "msm-dai-q6-dev.8194", "msm-dai-q6-dev.8195", |
| 150 | "msm-dai-q6-dev.28672", "msm-dai-q6-dev.28673", |
| 151 | "msm-dai-q6-dev.16398", "msm-dai-q6-dev.16399", |
| 152 | "msm-dai-q6-dev.16401", |
| 153 | "msm-dai-q6-tdm.36864", "msm-dai-q6-tdm.36865", |
| 154 | "msm-dai-q6-tdm.36880", "msm-dai-q6-tdm.36881", |
| 155 | "msm-dai-q6-tdm.36896", "msm-dai-q6-tdm.36897", |
| 156 | "msm-dai-q6-tdm.36912", "msm-dai-q6-tdm.36913", |
| 157 | "msm-dai-cdc-dma-dev.45089", |
| 158 | "msm-dai-cdc-dma-dev.45091", |
| 159 | "msm-dai-cdc-dma-dev.45093", |
| 160 | "msm-dai-cdc-dma-dev.45104", |
| 161 | "msm-dai-cdc-dma-dev.45105", |
| 162 | "msm-dai-cdc-dma-dev.45106", |
| 163 | "msm-dai-cdc-dma-dev.45107", |
| 164 | "msm-dai-cdc-dma-dev.45108", |
| 165 | "msm-dai-cdc-dma-dev.45109", |
| 166 | "msm-dai-cdc-dma-dev.45110", |
| 167 | "msm-dai-cdc-dma-dev.45111", |
| 168 | "msm-dai-cdc-dma-dev.45112", |
| 169 | "msm-dai-cdc-dma-dev.45113", |
| 170 | "msm-dai-cdc-dma-dev.45114", |
| 171 | "msm-dai-cdc-dma-dev.45115", |
| 172 | "msm-dai-cdc-dma-dev.45116", |
| 173 | "msm-dai-cdc-dma-dev.45118", |
| 174 | "msm-dai-q6-dev.24577"; |
| 175 | fsa4480-i2c-handle = <&fsa4480>; |
| 176 | }; |
| 177 | }; |
| 178 | |
| 179 | &qupv3_se1_i2c { |
| 180 | status = "ok"; |
| 181 | fsa4480: fsa4480@42 { |
| 182 | compatible = "qcom,fsa4480-i2c"; |
| 183 | reg = <0x42>; |
| 184 | }; |
| 185 | }; |