1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/sound/qcom,sm8250.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Qualcomm Technologies Inc. ASoC sound card drivers 8 9maintainers: 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 11 12description: 13 This bindings describes Qualcomm SoC based sound cards 14 which uses LPASS internal codec for audio. 15 16properties: 17 compatible: 18 oneOf: 19 - items: 20 - enum: 21 - lenovo,yoga-c630-sndcard 22 - qcom,db845c-sndcard 23 - const: qcom,sdm845-sndcard 24 - items: 25 - enum: 26 - qcom,sm8550-sndcard 27 - qcom,sm8650-sndcard 28 - qcom,sm8750-sndcard 29 - const: qcom,sm8450-sndcard 30 - enum: 31 - fairphone,fp4-sndcard 32 - fairphone,fp5-sndcard 33 - qcom,apq8096-sndcard 34 - qcom,glymur-sndcard 35 - qcom,qcm6490-idp-sndcard 36 - qcom,qcs6490-rb3gen2-sndcard 37 - qcom,qcs8275-sndcard 38 - qcom,qcs9075-sndcard 39 - qcom,qcs9100-sndcard 40 - qcom,qrb4210-rb2-sndcard 41 - qcom,qrb5165-rb5-sndcard 42 - qcom,sc7180-qdsp6-sndcard 43 - qcom,sc8280xp-sndcard 44 - qcom,sdm845-sndcard 45 - qcom,sm8250-sndcard 46 - qcom,sm8450-sndcard 47 - qcom,x1e80100-sndcard 48 49 audio-routing: 50 $ref: /schemas/types.yaml#/definitions/non-unique-string-array 51 description: 52 A list of the connections between audio components. Each entry is a 53 pair of strings, the first being the connection's sink, the second 54 being the connection's source. Valid names could be power supplies, 55 MicBias of codec and the jacks on the board. 56 57 aux-devs: 58 $ref: /schemas/types.yaml#/definitions/phandle-array 59 description: | 60 List of phandles pointing to auxiliary devices, such 61 as amplifiers, to be added to the sound card. 62 63 model: 64 $ref: /schemas/types.yaml#/definitions/string 65 description: User visible long sound card name 66 67patternProperties: 68 ".*-dai-link$": 69 description: 70 Each subnode represents a dai link. Subnodes of each dai links would be 71 cpu/codec dais. 72 73 type: object 74 75 properties: 76 link-name: 77 description: Indicates dai-link name and PCM stream name. 78 $ref: /schemas/types.yaml#/definitions/string 79 maxItems: 1 80 81 cpu: 82 description: Holds subnode which indicates cpu dai. 83 type: object 84 additionalProperties: false 85 86 properties: 87 sound-dai: 88 maxItems: 1 89 90 platform: 91 description: Holds subnode which indicates platform dai. 92 type: object 93 additionalProperties: false 94 95 properties: 96 sound-dai: 97 maxItems: 1 98 99 codec: 100 description: Holds subnode which indicates codec dai. 101 type: object 102 additionalProperties: false 103 104 properties: 105 sound-dai: 106 minItems: 1 107 maxItems: 8 108 109 required: 110 - link-name 111 - cpu 112 113 additionalProperties: false 114 115required: 116 - compatible 117 - model 118 119additionalProperties: false 120 121examples: 122 123 - | 124 #include <dt-bindings/sound/qcom,q6afe.h> 125 #include <dt-bindings/sound/qcom,q6asm.h> 126 sound { 127 compatible = "qcom,qrb5165-rb5-sndcard"; 128 model = "Qualcomm-qrb5165-RB5-WSA8815-Speakers-DMIC0"; 129 audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT", 130 "SpkrRight IN", "WSA_SPK2 OUT", 131 "VA DMIC0", "vdd-micb", 132 "VA DMIC1", "vdd-micb"; 133 134 mm1-dai-link { 135 link-name = "MultiMedia0"; 136 cpu { 137 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; 138 }; 139 }; 140 141 mm2-dai-link { 142 link-name = "MultiMedia2"; 143 cpu { 144 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>; 145 }; 146 }; 147 148 mm3-dai-link { 149 link-name = "MultiMedia3"; 150 cpu { 151 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; 152 }; 153 }; 154 155 hdmi-dai-link { 156 link-name = "HDMI Playback"; 157 cpu { 158 sound-dai = <&q6afedai TERTIARY_MI2S_RX>; 159 }; 160 161 platform { 162 sound-dai = <&q6routing>; 163 }; 164 165 codec { 166 sound-dai = <<9611_codec 0>; 167 }; 168 }; 169 170 wsa-dai-link { 171 link-name = "WSA Playback"; 172 cpu { 173 sound-dai = <&q6afedai WSA_CODEC_DMA_RX_0>; 174 }; 175 176 platform { 177 sound-dai = <&q6routing>; 178 }; 179 180 codec { 181 sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro>; 182 }; 183 }; 184 185 va-dai-link { 186 link-name = "VA Capture"; 187 cpu { 188 sound-dai = <&q6afedai VA_CODEC_DMA_TX_0>; 189 }; 190 191 platform { 192 sound-dai = <&q6routing>; 193 }; 194 195 codec { 196 sound-dai = <&vamacro 0>; 197 }; 198 }; 199 200 usb-dai-link { 201 link-name = "USB Playback"; 202 cpu { 203 sound-dai = <&q6afedai USB_RX>; 204 }; 205 206 codec { 207 sound-dai = <&usbdai USB_RX>; 208 }; 209 210 platform { 211 sound-dai = <&q6routing>; 212 }; 213 }; 214 }; 215