1* Qualcomm Technologies Inc. SDM845 ASoC sound card driver 2 3This binding describes the SDM845 sound card, which uses qdsp for audio. 4 5- compatible: 6 Usage: required 7 Value type: <stringlist> 8 Definition: must be one of this 9 "qcom,sdm845-sndcard" 10 "qcom,db845c-sndcard" 11 "lenovo,yoga-c630-sndcard" 12 13- audio-routing: 14 Usage: Optional 15 Value type: <stringlist> 16 Definition: A list of the connections between audio components. 17 Each entry is a pair of strings, the first being the 18 connection's sink, the second being the connection's 19 source. Valid names could be power supplies, MicBias 20 of codec and the jacks on the board. 21 22- model: 23 Usage: required 24 Value type: <stringlist> 25 Definition: The user-visible name of this sound card. 26 27= dailinks 28Each subnode of sndcard represents either a dailink, and subnodes of each 29dailinks would be cpu/codec/platform dais. 30 31- link-name: 32 Usage: required 33 Value type: <string> 34 Definition: User friendly name for dai link 35 36= CPU, PLATFORM, CODEC dais subnodes 37- cpu: 38 Usage: required 39 Value type: <subnode> 40 Definition: cpu dai sub-node 41 42- codec: 43 Usage: required 44 Value type: <subnode> 45 Definition: codec dai sub-node 46 47- platform: 48 Usage: Optional 49 Value type: <subnode> 50 Definition: platform dai sub-node 51 52- sound-dai: 53 Usage: required 54 Value type: <phandle> 55 Definition: dai phandle/s and port of CPU/CODEC/PLATFORM node. 56 57Example: 58 59audio { 60 compatible = "qcom,sdm845-sndcard"; 61 model = "sdm845-snd-card"; 62 pinctrl-names = "default", "sleep"; 63 pinctrl-0 = <&pri_mi2s_active &pri_mi2s_ws_active>; 64 pinctrl-1 = <&pri_mi2s_sleep &pri_mi2s_ws_sleep>; 65 66 mm1-dai-link { 67 link-name = "MultiMedia1"; 68 cpu { 69 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; 70 }; 71 }; 72 73 pri-mi2s-dai-link { 74 link-name = "PRI MI2S Playback"; 75 cpu { 76 sound-dai = <&q6afedai PRIMARY_MI2S_RX>; 77 }; 78 79 platform { 80 sound-dai = <&q6routing>; 81 }; 82 }; 83}; 84