Loading Documentation/devicetree/bindings/sound/qcom-audio-dev.txt +192 −0 Original line number Diff line number Diff line Loading @@ -236,6 +236,8 @@ Required properties: - qcom,msm-dai-cdc-dma-dev-id : WSA codec dma port ID Value is from 45056 to 45061. VA codec dma port ID Value is from 45089 to 45091. RX and TX codec dma port ID values from 45120 to 45135. Optional properties: Loading Loading @@ -1413,3 +1415,193 @@ Example: qcom,cdc-dmic-gpios = <&cdc_dmic12_gpios>, <&cdc_dmic34_gpios>, <&cdc_dmic56_gpios>, <&cdc_dmic78_gpios>; }; * SM6150 ASoC Machine driver Required properties: - compatible : "qcom,sm6150-asoc-snd". - qcom,model : The user-visible name of this sound card. - qcom,audio-routing : A list of the connections between audio components. - asoc-platform: This is phandle list containing the references to platform device nodes that are used as part of the sound card dai-links. - asoc-platform-names: This property contains list of platform names. The order of the platform names should match to that of the phandle order given in "asoc-platform". - asoc-cpu: This is phandle list containing the references to cpu dai device nodes that are used as part of the sound card dai-links. - asoc-cpu-names: This property contains list of cpu dai names. The order of the cpu dai names should match to that of the phandle order given in "asoc-cpu". The cpu names are in the form of "%s.%d" form, where the id (%d) field represents the back-end AFE port id that this CPU dai is associated with. - asoc-codec: This is phandle list containing the references to codec dai device nodes that are used as part of the sound card dai-links. - asoc-codec-names: This property contains list of codec dai names. The order of the codec dai names should match to that of the phandle order given in "asoc-codec". - qcom,codec-aux-devs: This is phandle list containing the references to Auxilary codec devices. Optional properties: - qcom,msm-mi2s-master: This property is used to inform machine driver if MSM is the clock master of mi2s. 1 means master and 0 means slave. The first entry is primary mi2s; the second entry is secondary mi2s, and so on. - qcom,msm-mbhc-hphl-swh: This property is used to distinguish headset HPHL switch type on target typically the switch type will be normally open or normally close, value for this property 0 for normally close and 1 for normally open. - qcom,msm-mbhc-gnd-swh: This property is used to distinguish headset GND switch type on target typically the switch type will be normally open or normally close, value for this property 0 for normally close and 1 for normally open. - qcom,wsa-max-devs : Maximum number of WSA881x devices present in the target - qcom,wsa-devs : List of phandles for all possible WSA881x devices supported for the target - qcom,wsa-aux-dev-prefix : Name prefix with Left/Right configuration for WSA881x device - qcom,wcn-btfm : Property to specify if WCN BT/FM chip is used for the target - qcom,tavil_codec : Property to specify if Tavil codec is used for this target - qcom,cdc-dmic-gpios : phandle for Digital mic clk and data gpios. Example: sm6150_snd: sound { status = "okay"; compatible = "qcom,sm6150-asoc-snd"; qcom,ext-disp-audio-rx; qcom,wcn-btfm; qcom,mi2s-audio-intf; qcom,auxpcm-audio-intf; asoc-platform = <&pcm0>, <&pcm1>, <&pcm2>, <&voip>, <&voice>, <&loopback>, <&compress>, <&hostless>, <&afe>, <&lsm>, <&routing>, <&compr>, <&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-compress-dsp", "msm-pcm-hostless", "msm-pcm-afe", "msm-lsm-client", "msm-pcm-routing", "msm-compr-dsp", "msm-pcm-dsp-noirq"; asoc-cpu = <&dai_dp>, <&dai_mi2s0>, <&dai_mi2s1>, <&dai_mi2s2>, <&dai_mi2s3>, <&dai_mi2s4>, <&dai_pri_auxpcm>, <&dai_sec_auxpcm>, <&dai_tert_auxpcm>, <&dai_quat_auxpcm>, <&dai_quin_auxpcm>, <&afe_pcm_rx>, <&afe_pcm_tx>, <&afe_proxy_rx>, <&afe_proxy_tx>, <&incall_record_rx>, <&incall_record_tx>, <&incall_music_rx>, <&incall_music_2_rx>, <&sb_7_rx>, <&sb_7_tx>, <&sb_8_tx>, <&sb_8_rx>, <&usb_audio_rx>, <&usb_audio_tx>, <&dai_pri_tdm_rx_0>, <&dai_pri_tdm_tx_0>, <&dai_sec_tdm_rx_0>, <&dai_sec_tdm_tx_0>, <&dai_tert_tdm_rx_0>, <&dai_tert_tdm_tx_0>, <&dai_quat_tdm_rx_0>, <&dai_quat_tdm_tx_0>, <&dai_quin_tdm_rx_0>, <&dai_quin_tdm_tx_0>, <&wsa_cdc_dma_0_rx>, <&wsa_cdc_dma_0_tx>, <&wsa_cdc_dma_1_rx>, <&wsa_cdc_dma_1_tx>, <&wsa_cdc_dma_2_tx>, <&va_cdc_dma_0_tx>, <&va_cdc_dma_1_tx>, <&rx_cdc_dma_0_rx>, <&tx_cdc_dma_0_tx>, <&rx_cdc_dma_1_rx>, <&tx_cdc_dma_1_tx>, <&rx_cdc_dma_2_rx>, <&tx_cdc_dma_2_tx>, <&rx_cdc_dma_3_rx>, <&tx_cdc_dma_3_tx>, <&rx_cdc_dma_4_rx>, <&tx_cdc_dma_4_tx>, <&rx_cdc_dma_5_rx>, <&tx_cdc_dma_5_tx>, <&tx_cdc_dma_6_tx>, <&tx_cdc_dma_7_tx>; asoc-cpu-names = "msm-dai-q6-dp.24608", "msm-dai-q6-mi2s.0", "msm-dai-q6-mi2s.1", "msm-dai-q6-mi2s.2", "msm-dai-q6-mi2s.3", "msm-dai-q6-mi2s.4", "msm-dai-q6-auxpcm.1", "msm-dai-q6-auxpcm.2", "msm-dai-q6-auxpcm.3", "msm-dai-q6-auxpcm.4", "msm-dai-q6-auxpcm.5", "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-dev.32770", "msm-dai-q6-dev.16398", "msm-dai-q6-dev.16399", "msm-dai-q6-dev.16401", "msm-dai-q6-dev.16400", "msm-dai-q6-dev.28672", "msm-dai-q6-dev.28673", "msm-dai-q6-tdm.36864", "msm-dai-q6-tdm.36865", "msm-dai-q6-tdm.36880", "msm-dai-q6-tdm.36881", "msm-dai-q6-tdm.36896", "msm-dai-q6-tdm.36897", "msm-dai-q6-tdm.36912", "msm-dai-q6-tdm.36913", "msm-dai-q6-tdm.36928", "msm-dai-q6-tdm.36929", "msm-dai-cdc-dma-dev.45056", "msm-dai-cdc-dma-dev.45057", "msm-dai-cdc-dma-dev.45058", "msm-dai-cdc-dma-dev.45059", "msm-dai-cdc-dma-dev.45061", "msm-dai-cdc-dma-dev.45089", "msm-dai-cdc-dma-dev.45091", "msm-dai-cdc-dma-dev.45120", "msm-dai-cdc-dma-dev.45121", "msm-dai-cdc-dma-dev.45122", "msm-dai-cdc-dma-dev.45123", "msm-dai-cdc-dma-dev.45124", "msm-dai-cdc-dma-dev.45125", "msm-dai-cdc-dma-dev.45126", "msm-dai-cdc-dma-dev.45127", "msm-dai-cdc-dma-dev.45128", "msm-dai-cdc-dma-dev.45129", "msm-dai-cdc-dma-dev.45130", "msm-dai-cdc-dma-dev.45131", "msm-dai-cdc-dma-dev.45133", "msm-dai-cdc-dma-dev.45135"; qcom,msm-mi2s-master = <1>, <1>, <1>, <1>, <1>; qcom,msm-mbhc-hphl-swh = <1>; qcom,msm-mbhc-gnd-swh = <1>; qcom,cdc-dmic-gpios = <&cdc_dmic12_gpios>, <&cdc_dmic34_gpios>; asoc-codec = <&stub_codec>, <&bolero>, <&ext_disp_audio_codec>; asoc-codec-names = "msm-stub-codec.1", "bolero-codec", "msm-ext-disp-audio-codec-rx"; qcom,wsa-max-devs = <2>; qcom,wsa-devs = <&wsa881x_0211>, <&wsa881x_0212>, <&wsa881x_0213>, <&wsa881x_0214>; qcom,wsa-aux-dev-prefix = "SpkrLeft", "SpkrRight", "SpkrLeft", "SpkrRight"; qcom,codec-aux-devs = <&wcd937x_codec>; }; }; * MSMSTUB ASoC Machine driver Required properties: - compatible : "qcom,sm6150-asoc-snd-stub" for SM6150 target. - qcom,model : The user-visible name of this sound card. - asoc-platform: This is phandle list containing the references to platform device nodes that are used as part of the sound card dai-links. - asoc-platform-names: This property contains list of platform names. The order of the platform names should match to that of the phandle order given in "asoc-platform". - asoc-cpu: This is phandle list containing the references to cpu dai device nodes that are used as part of the sound card dai-links. - asoc-cpu-names: This property contains list of cpu dai names. The order of the cpu dai names should match to that of the phandle order given in "asoc-cpu". The cpu names are in the form of "%s.%d" form, where the id (%d) field represents the back-end AFE port id that this CPU dai is associated with. - asoc-codec: This is phandle list containing the references to codec dai device nodes that are used as part of the sound card dai-links. - asoc-codec-names: This property contains list of codec dai names. The order of the codec dai names should match to that of the phandle order given in "asoc-codec". Optional properties: - qcom,wsa-max-devs : Maximum number of WSA881x devices present in the target Example: sound_stub { compatible = "qcom,sm6150-asoc-snd-stub"; qcom,model = "sm6150-stub-snd-card"; asoc-platform = <&pcm0>; asoc-platform-names = "msm-pcm-dsp.0"; asoc-cpu = <&sb_0_rx>, <&sb_0_tx>; asoc-cpu-names = "msm-dai-q6-dev.16384", "msm-dai-q6-dev.16385"; asoc-codec = <&stub_codec>; asoc-codec-names = "msm-stub-codec.1"; qcom,wsa-max-devs = <0>; }; Documentation/devicetree/bindings/sound/wcd_codec.txt +123 −3 Original line number Diff line number Diff line Loading @@ -457,8 +457,8 @@ Example: compatible = "qcom,wsa-macro"; reg = <0x0C2C0000 0x0>; clock-names = "wsa_core_clk", "wsa_npl_clk"; clocks = <&clock_audio_wsa_1 AUDIO_LPASS_MCLK>, <&clock_audio_wsa_2 AUDIO_LPASS_MCLK>; clocks = <&clock_audio_wsa_1 0>, <&clock_audio_wsa_2 0>; qcom,wsa-swr-gpios = &wsa_swr_gpios; }; }; Loading @@ -479,6 +479,126 @@ Example: compatible = "qcom,va-macro"; reg = <0x0C490000 0x0>; clock-names = "va_core_clk"; clocks = <&clock_audio_va AUDIO_LPASS_MCLK>; clocks = <&clock_audio_va 0>; }; }; RX macro in bolero codec Required properties: - compatible = "qcom,rx-macro"; - reg: Specifies the Rx macro base address for Bolero soundwire core registers. - clock-names : clock names defined for RX macro - clocks : clock handles defined for RX macro Example: &bolero { rx_macro: rx-macro { compatible = "qcom,rx-macro"; reg = <0x62EE0000 0x0>; clock-names = "rx_core_clk", "rx_npl_clk"; clocks = <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>; swr_1: rx_swr_master { compatible = "qcom,swr-mstr"; wcd937x_rx_slave: wcd937x-rx-slave { compatible = "qcom,wcd937x-slave"; }; }; }; }; TX macro in bolero codec Required properties: - compatible = "qcom,tx-macro"; - reg: Specifies the Tx macro base address for Bolero soundwire core registers. - clock-names : clock names defined for TX macro - clocks : clock handles defined for TX macro Example: &bolero { tx_macro: tx-macro { compatible = "qcom,tx-macro"; reg = <0x62EC0000 0x0>; clock-names = "tx_core_clk", "tx_npl_clk"; clocks = <&clock_audio_tx_1 0> <&clock_audio_tx_2 0>; swr_2: tx_swr_master { compatible = "qcom,swr-mstr"; wcd937x_tx_slave: wcd937x-tx-slave { compatible = "qcom,wcd937x-slave"; }; }; }; }; Tanggu Codec Required properties: - compatible: "qcom,wcd937x-codec"; - qcom,wcd-rst-gpio-node: Phandle reference to the DT node having codec reset gpio configuration. If this property is not defined, it is expected to atleast define "qcom,cdc-reset-gpio" property. - qcom,rx-slave: phandle reference of Soundwire Rx slave device. - qcom,tx-slave: phandle reference of Soundwire Tx slave device. Optional properties: - cdc-vdd-ldo-rxtx-supply: phandle of ldo-rxtx supply's regulator device tree node. - qcom,cdc-vdd-ldo-rxtx-voltage: ldo-rxtx supply's voltage level min and max in mV. - qcom,cdc-vdd-ldo-rxtx-current: ldo-rxtx supply's max current in mA. - cdc-vddpx-1-supply: phandle of px-1 supply's regulator device tree node. - qcom,cdc-vddpx-1-voltage: px-1 supply's voltage level min and max in mV. - qcom,cdc-vddpx-1-current: px-1 supply's max current in mA. - cdc-vdd-buck-supply: phandle of buck supply's regulator device tree node. - qcom,cdc-vdd-buck-voltage: buck supply's voltage level min and max in mV. - qcom,cdc-vdd-buck-current: buck supply's max current in mA. - cdc-vdd-mic-bias-supply: phandle of mic bias supply's regulator device tree node. - qcom,cdc-vdd-mic-bias-voltage: mic bias supply's voltage level min and max in mV. - qcom,cdc-vdd-mic-bias-current: mic bias supply's max current in mA. - qcom,cdc-static-supplies: List of supplies to be enabled prior to codec hardware probe. Supplies in this list will be stay enabled. - qcom,cdc-on-demand-supplies: List of supplies which can be enabled dynamically. Supplies in this list are off by default. Example: wcd937x_codec: wcd937x-codec { compatible = "qcom,wcd937x-codec"; qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; qcom,rx-slave = <&wcd937x_rx_slave>; qcom,tx-slave = <&wcd937x_tx_slave>; cdc-vdd-buck-supply = <&L15A>; qcom,cdc-vdd-buck-voltage = <1800000 1800000>; qcom,cdc-vdd-buck-current = <650000>; cdc-vdd-ldo-rxtx-supply = <&L10A>; qcom,cdc-vdd-ldo-rxtx-voltage = <1800000 1800000>; qcom,cdc-vdd-ldo-rxtx-current = <25000>; cdc-vddpx-1-supply = <&L10A>; qcom,cdc-vddpx-1-voltage = <1800000 1800000>; qcom,cdc-vddpx-1-current = <10000>; cdc-vdd-mic-bias-supply = <&BOB>; qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; qcom,cdc-vdd-mic-bias-current = <25000>; qcom,cdc-static-supplies = "cdc-vdd-ldo-rxtx", "cdc-vddpx-1"; qcom,cdc-on-demand-supplies = "cdc-vdd-buck", "cdc-vdd-mic-bias"; }; Loading
Documentation/devicetree/bindings/sound/qcom-audio-dev.txt +192 −0 Original line number Diff line number Diff line Loading @@ -236,6 +236,8 @@ Required properties: - qcom,msm-dai-cdc-dma-dev-id : WSA codec dma port ID Value is from 45056 to 45061. VA codec dma port ID Value is from 45089 to 45091. RX and TX codec dma port ID values from 45120 to 45135. Optional properties: Loading Loading @@ -1413,3 +1415,193 @@ Example: qcom,cdc-dmic-gpios = <&cdc_dmic12_gpios>, <&cdc_dmic34_gpios>, <&cdc_dmic56_gpios>, <&cdc_dmic78_gpios>; }; * SM6150 ASoC Machine driver Required properties: - compatible : "qcom,sm6150-asoc-snd". - qcom,model : The user-visible name of this sound card. - qcom,audio-routing : A list of the connections between audio components. - asoc-platform: This is phandle list containing the references to platform device nodes that are used as part of the sound card dai-links. - asoc-platform-names: This property contains list of platform names. The order of the platform names should match to that of the phandle order given in "asoc-platform". - asoc-cpu: This is phandle list containing the references to cpu dai device nodes that are used as part of the sound card dai-links. - asoc-cpu-names: This property contains list of cpu dai names. The order of the cpu dai names should match to that of the phandle order given in "asoc-cpu". The cpu names are in the form of "%s.%d" form, where the id (%d) field represents the back-end AFE port id that this CPU dai is associated with. - asoc-codec: This is phandle list containing the references to codec dai device nodes that are used as part of the sound card dai-links. - asoc-codec-names: This property contains list of codec dai names. The order of the codec dai names should match to that of the phandle order given in "asoc-codec". - qcom,codec-aux-devs: This is phandle list containing the references to Auxilary codec devices. Optional properties: - qcom,msm-mi2s-master: This property is used to inform machine driver if MSM is the clock master of mi2s. 1 means master and 0 means slave. The first entry is primary mi2s; the second entry is secondary mi2s, and so on. - qcom,msm-mbhc-hphl-swh: This property is used to distinguish headset HPHL switch type on target typically the switch type will be normally open or normally close, value for this property 0 for normally close and 1 for normally open. - qcom,msm-mbhc-gnd-swh: This property is used to distinguish headset GND switch type on target typically the switch type will be normally open or normally close, value for this property 0 for normally close and 1 for normally open. - qcom,wsa-max-devs : Maximum number of WSA881x devices present in the target - qcom,wsa-devs : List of phandles for all possible WSA881x devices supported for the target - qcom,wsa-aux-dev-prefix : Name prefix with Left/Right configuration for WSA881x device - qcom,wcn-btfm : Property to specify if WCN BT/FM chip is used for the target - qcom,tavil_codec : Property to specify if Tavil codec is used for this target - qcom,cdc-dmic-gpios : phandle for Digital mic clk and data gpios. Example: sm6150_snd: sound { status = "okay"; compatible = "qcom,sm6150-asoc-snd"; qcom,ext-disp-audio-rx; qcom,wcn-btfm; qcom,mi2s-audio-intf; qcom,auxpcm-audio-intf; asoc-platform = <&pcm0>, <&pcm1>, <&pcm2>, <&voip>, <&voice>, <&loopback>, <&compress>, <&hostless>, <&afe>, <&lsm>, <&routing>, <&compr>, <&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-compress-dsp", "msm-pcm-hostless", "msm-pcm-afe", "msm-lsm-client", "msm-pcm-routing", "msm-compr-dsp", "msm-pcm-dsp-noirq"; asoc-cpu = <&dai_dp>, <&dai_mi2s0>, <&dai_mi2s1>, <&dai_mi2s2>, <&dai_mi2s3>, <&dai_mi2s4>, <&dai_pri_auxpcm>, <&dai_sec_auxpcm>, <&dai_tert_auxpcm>, <&dai_quat_auxpcm>, <&dai_quin_auxpcm>, <&afe_pcm_rx>, <&afe_pcm_tx>, <&afe_proxy_rx>, <&afe_proxy_tx>, <&incall_record_rx>, <&incall_record_tx>, <&incall_music_rx>, <&incall_music_2_rx>, <&sb_7_rx>, <&sb_7_tx>, <&sb_8_tx>, <&sb_8_rx>, <&usb_audio_rx>, <&usb_audio_tx>, <&dai_pri_tdm_rx_0>, <&dai_pri_tdm_tx_0>, <&dai_sec_tdm_rx_0>, <&dai_sec_tdm_tx_0>, <&dai_tert_tdm_rx_0>, <&dai_tert_tdm_tx_0>, <&dai_quat_tdm_rx_0>, <&dai_quat_tdm_tx_0>, <&dai_quin_tdm_rx_0>, <&dai_quin_tdm_tx_0>, <&wsa_cdc_dma_0_rx>, <&wsa_cdc_dma_0_tx>, <&wsa_cdc_dma_1_rx>, <&wsa_cdc_dma_1_tx>, <&wsa_cdc_dma_2_tx>, <&va_cdc_dma_0_tx>, <&va_cdc_dma_1_tx>, <&rx_cdc_dma_0_rx>, <&tx_cdc_dma_0_tx>, <&rx_cdc_dma_1_rx>, <&tx_cdc_dma_1_tx>, <&rx_cdc_dma_2_rx>, <&tx_cdc_dma_2_tx>, <&rx_cdc_dma_3_rx>, <&tx_cdc_dma_3_tx>, <&rx_cdc_dma_4_rx>, <&tx_cdc_dma_4_tx>, <&rx_cdc_dma_5_rx>, <&tx_cdc_dma_5_tx>, <&tx_cdc_dma_6_tx>, <&tx_cdc_dma_7_tx>; asoc-cpu-names = "msm-dai-q6-dp.24608", "msm-dai-q6-mi2s.0", "msm-dai-q6-mi2s.1", "msm-dai-q6-mi2s.2", "msm-dai-q6-mi2s.3", "msm-dai-q6-mi2s.4", "msm-dai-q6-auxpcm.1", "msm-dai-q6-auxpcm.2", "msm-dai-q6-auxpcm.3", "msm-dai-q6-auxpcm.4", "msm-dai-q6-auxpcm.5", "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-dev.32770", "msm-dai-q6-dev.16398", "msm-dai-q6-dev.16399", "msm-dai-q6-dev.16401", "msm-dai-q6-dev.16400", "msm-dai-q6-dev.28672", "msm-dai-q6-dev.28673", "msm-dai-q6-tdm.36864", "msm-dai-q6-tdm.36865", "msm-dai-q6-tdm.36880", "msm-dai-q6-tdm.36881", "msm-dai-q6-tdm.36896", "msm-dai-q6-tdm.36897", "msm-dai-q6-tdm.36912", "msm-dai-q6-tdm.36913", "msm-dai-q6-tdm.36928", "msm-dai-q6-tdm.36929", "msm-dai-cdc-dma-dev.45056", "msm-dai-cdc-dma-dev.45057", "msm-dai-cdc-dma-dev.45058", "msm-dai-cdc-dma-dev.45059", "msm-dai-cdc-dma-dev.45061", "msm-dai-cdc-dma-dev.45089", "msm-dai-cdc-dma-dev.45091", "msm-dai-cdc-dma-dev.45120", "msm-dai-cdc-dma-dev.45121", "msm-dai-cdc-dma-dev.45122", "msm-dai-cdc-dma-dev.45123", "msm-dai-cdc-dma-dev.45124", "msm-dai-cdc-dma-dev.45125", "msm-dai-cdc-dma-dev.45126", "msm-dai-cdc-dma-dev.45127", "msm-dai-cdc-dma-dev.45128", "msm-dai-cdc-dma-dev.45129", "msm-dai-cdc-dma-dev.45130", "msm-dai-cdc-dma-dev.45131", "msm-dai-cdc-dma-dev.45133", "msm-dai-cdc-dma-dev.45135"; qcom,msm-mi2s-master = <1>, <1>, <1>, <1>, <1>; qcom,msm-mbhc-hphl-swh = <1>; qcom,msm-mbhc-gnd-swh = <1>; qcom,cdc-dmic-gpios = <&cdc_dmic12_gpios>, <&cdc_dmic34_gpios>; asoc-codec = <&stub_codec>, <&bolero>, <&ext_disp_audio_codec>; asoc-codec-names = "msm-stub-codec.1", "bolero-codec", "msm-ext-disp-audio-codec-rx"; qcom,wsa-max-devs = <2>; qcom,wsa-devs = <&wsa881x_0211>, <&wsa881x_0212>, <&wsa881x_0213>, <&wsa881x_0214>; qcom,wsa-aux-dev-prefix = "SpkrLeft", "SpkrRight", "SpkrLeft", "SpkrRight"; qcom,codec-aux-devs = <&wcd937x_codec>; }; }; * MSMSTUB ASoC Machine driver Required properties: - compatible : "qcom,sm6150-asoc-snd-stub" for SM6150 target. - qcom,model : The user-visible name of this sound card. - asoc-platform: This is phandle list containing the references to platform device nodes that are used as part of the sound card dai-links. - asoc-platform-names: This property contains list of platform names. The order of the platform names should match to that of the phandle order given in "asoc-platform". - asoc-cpu: This is phandle list containing the references to cpu dai device nodes that are used as part of the sound card dai-links. - asoc-cpu-names: This property contains list of cpu dai names. The order of the cpu dai names should match to that of the phandle order given in "asoc-cpu". The cpu names are in the form of "%s.%d" form, where the id (%d) field represents the back-end AFE port id that this CPU dai is associated with. - asoc-codec: This is phandle list containing the references to codec dai device nodes that are used as part of the sound card dai-links. - asoc-codec-names: This property contains list of codec dai names. The order of the codec dai names should match to that of the phandle order given in "asoc-codec". Optional properties: - qcom,wsa-max-devs : Maximum number of WSA881x devices present in the target Example: sound_stub { compatible = "qcom,sm6150-asoc-snd-stub"; qcom,model = "sm6150-stub-snd-card"; asoc-platform = <&pcm0>; asoc-platform-names = "msm-pcm-dsp.0"; asoc-cpu = <&sb_0_rx>, <&sb_0_tx>; asoc-cpu-names = "msm-dai-q6-dev.16384", "msm-dai-q6-dev.16385"; asoc-codec = <&stub_codec>; asoc-codec-names = "msm-stub-codec.1"; qcom,wsa-max-devs = <0>; };
Documentation/devicetree/bindings/sound/wcd_codec.txt +123 −3 Original line number Diff line number Diff line Loading @@ -457,8 +457,8 @@ Example: compatible = "qcom,wsa-macro"; reg = <0x0C2C0000 0x0>; clock-names = "wsa_core_clk", "wsa_npl_clk"; clocks = <&clock_audio_wsa_1 AUDIO_LPASS_MCLK>, <&clock_audio_wsa_2 AUDIO_LPASS_MCLK>; clocks = <&clock_audio_wsa_1 0>, <&clock_audio_wsa_2 0>; qcom,wsa-swr-gpios = &wsa_swr_gpios; }; }; Loading @@ -479,6 +479,126 @@ Example: compatible = "qcom,va-macro"; reg = <0x0C490000 0x0>; clock-names = "va_core_clk"; clocks = <&clock_audio_va AUDIO_LPASS_MCLK>; clocks = <&clock_audio_va 0>; }; }; RX macro in bolero codec Required properties: - compatible = "qcom,rx-macro"; - reg: Specifies the Rx macro base address for Bolero soundwire core registers. - clock-names : clock names defined for RX macro - clocks : clock handles defined for RX macro Example: &bolero { rx_macro: rx-macro { compatible = "qcom,rx-macro"; reg = <0x62EE0000 0x0>; clock-names = "rx_core_clk", "rx_npl_clk"; clocks = <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>; swr_1: rx_swr_master { compatible = "qcom,swr-mstr"; wcd937x_rx_slave: wcd937x-rx-slave { compatible = "qcom,wcd937x-slave"; }; }; }; }; TX macro in bolero codec Required properties: - compatible = "qcom,tx-macro"; - reg: Specifies the Tx macro base address for Bolero soundwire core registers. - clock-names : clock names defined for TX macro - clocks : clock handles defined for TX macro Example: &bolero { tx_macro: tx-macro { compatible = "qcom,tx-macro"; reg = <0x62EC0000 0x0>; clock-names = "tx_core_clk", "tx_npl_clk"; clocks = <&clock_audio_tx_1 0> <&clock_audio_tx_2 0>; swr_2: tx_swr_master { compatible = "qcom,swr-mstr"; wcd937x_tx_slave: wcd937x-tx-slave { compatible = "qcom,wcd937x-slave"; }; }; }; }; Tanggu Codec Required properties: - compatible: "qcom,wcd937x-codec"; - qcom,wcd-rst-gpio-node: Phandle reference to the DT node having codec reset gpio configuration. If this property is not defined, it is expected to atleast define "qcom,cdc-reset-gpio" property. - qcom,rx-slave: phandle reference of Soundwire Rx slave device. - qcom,tx-slave: phandle reference of Soundwire Tx slave device. Optional properties: - cdc-vdd-ldo-rxtx-supply: phandle of ldo-rxtx supply's regulator device tree node. - qcom,cdc-vdd-ldo-rxtx-voltage: ldo-rxtx supply's voltage level min and max in mV. - qcom,cdc-vdd-ldo-rxtx-current: ldo-rxtx supply's max current in mA. - cdc-vddpx-1-supply: phandle of px-1 supply's regulator device tree node. - qcom,cdc-vddpx-1-voltage: px-1 supply's voltage level min and max in mV. - qcom,cdc-vddpx-1-current: px-1 supply's max current in mA. - cdc-vdd-buck-supply: phandle of buck supply's regulator device tree node. - qcom,cdc-vdd-buck-voltage: buck supply's voltage level min and max in mV. - qcom,cdc-vdd-buck-current: buck supply's max current in mA. - cdc-vdd-mic-bias-supply: phandle of mic bias supply's regulator device tree node. - qcom,cdc-vdd-mic-bias-voltage: mic bias supply's voltage level min and max in mV. - qcom,cdc-vdd-mic-bias-current: mic bias supply's max current in mA. - qcom,cdc-static-supplies: List of supplies to be enabled prior to codec hardware probe. Supplies in this list will be stay enabled. - qcom,cdc-on-demand-supplies: List of supplies which can be enabled dynamically. Supplies in this list are off by default. Example: wcd937x_codec: wcd937x-codec { compatible = "qcom,wcd937x-codec"; qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; qcom,rx-slave = <&wcd937x_rx_slave>; qcom,tx-slave = <&wcd937x_tx_slave>; cdc-vdd-buck-supply = <&L15A>; qcom,cdc-vdd-buck-voltage = <1800000 1800000>; qcom,cdc-vdd-buck-current = <650000>; cdc-vdd-ldo-rxtx-supply = <&L10A>; qcom,cdc-vdd-ldo-rxtx-voltage = <1800000 1800000>; qcom,cdc-vdd-ldo-rxtx-current = <25000>; cdc-vddpx-1-supply = <&L10A>; qcom,cdc-vddpx-1-voltage = <1800000 1800000>; qcom,cdc-vddpx-1-current = <10000>; cdc-vdd-mic-bias-supply = <&BOB>; qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; qcom,cdc-vdd-mic-bias-current = <25000>; qcom,cdc-static-supplies = "cdc-vdd-ldo-rxtx", "cdc-vddpx-1"; qcom,cdc-on-demand-supplies = "cdc-vdd-buck", "cdc-vdd-mic-bias"; };