1c66ec88fSEmmanuel Vadot* Qualcomm Technologies APQ8096 ASoC sound card driver 2c66ec88fSEmmanuel Vadot 3c66ec88fSEmmanuel VadotThis binding describes the APQ8096 sound card, which uses qdsp for audio. 4c66ec88fSEmmanuel Vadot 5c66ec88fSEmmanuel Vadot- compatible: 6c66ec88fSEmmanuel Vadot Usage: required 7c66ec88fSEmmanuel Vadot Value type: <stringlist> 8c66ec88fSEmmanuel Vadot Definition: must be "qcom,apq8096-sndcard" 9c66ec88fSEmmanuel Vadot 10c66ec88fSEmmanuel Vadot- audio-routing: 11c66ec88fSEmmanuel Vadot Usage: Optional 12c66ec88fSEmmanuel Vadot Value type: <stringlist> 13c66ec88fSEmmanuel Vadot Definition: A list of the connections between audio components. 14c66ec88fSEmmanuel Vadot Each entry is a pair of strings, the first being the 15c66ec88fSEmmanuel Vadot connection's sink, the second being the connection's 16c66ec88fSEmmanuel Vadot source. Valid names could be power supplies, MicBias 17c66ec88fSEmmanuel Vadot of codec and the jacks on the board: 18c66ec88fSEmmanuel Vadot Valid names include: 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadot Board Connectors: 21c66ec88fSEmmanuel Vadot "Headphone Left" 22c66ec88fSEmmanuel Vadot "Headphone Right" 23c66ec88fSEmmanuel Vadot "Earphone" 24c66ec88fSEmmanuel Vadot "Line Out1" 25c66ec88fSEmmanuel Vadot "Line Out2" 26c66ec88fSEmmanuel Vadot "Line Out3" 27c66ec88fSEmmanuel Vadot "Line Out4" 28c66ec88fSEmmanuel Vadot "Analog Mic1" 29c66ec88fSEmmanuel Vadot "Analog Mic2" 30c66ec88fSEmmanuel Vadot "Analog Mic3" 31c66ec88fSEmmanuel Vadot "Analog Mic4" 32c66ec88fSEmmanuel Vadot "Analog Mic5" 33c66ec88fSEmmanuel Vadot "Analog Mic6" 34c66ec88fSEmmanuel Vadot "Digital Mic2" 35c66ec88fSEmmanuel Vadot "Digital Mic3" 36c66ec88fSEmmanuel Vadot 37c66ec88fSEmmanuel Vadot Audio pins and MicBias on WCD9335 Codec: 38c66ec88fSEmmanuel Vadot "MIC_BIAS1" 39c66ec88fSEmmanuel Vadot "MIC_BIAS2" 40c66ec88fSEmmanuel Vadot "MIC_BIAS3" 41c66ec88fSEmmanuel Vadot "MIC_BIAS4" 42c66ec88fSEmmanuel Vadot "AMIC1" 43c66ec88fSEmmanuel Vadot "AMIC2" 44c66ec88fSEmmanuel Vadot "AMIC3" 45c66ec88fSEmmanuel Vadot "AMIC4" 46c66ec88fSEmmanuel Vadot "AMIC5" 47c66ec88fSEmmanuel Vadot "AMIC6" 48c66ec88fSEmmanuel Vadot "AMIC6" 49c66ec88fSEmmanuel Vadot "DMIC1" 50c66ec88fSEmmanuel Vadot "DMIC2" 51c66ec88fSEmmanuel Vadot "DMIC3" 52c66ec88fSEmmanuel Vadot 53c66ec88fSEmmanuel Vadot- model: 54c66ec88fSEmmanuel Vadot Usage: required 55c66ec88fSEmmanuel Vadot Value type: <stringlist> 56c66ec88fSEmmanuel Vadot Definition: The user-visible name of this sound card. 57c66ec88fSEmmanuel Vadot 58*6be33864SEmmanuel Vadot- aux-devs 59*6be33864SEmmanuel Vadot Usage: optional 60*6be33864SEmmanuel Vadot Value type: <array of phandles> 61*6be33864SEmmanuel Vadot Definition: A list of phandles for auxiliary devices (e.g. analog 62*6be33864SEmmanuel Vadot amplifiers) that do not appear directly within the DAI 63*6be33864SEmmanuel Vadot links. Should be connected to another audio component 64*6be33864SEmmanuel Vadot using "audio-routing". 65*6be33864SEmmanuel Vadot 66c66ec88fSEmmanuel Vadot= dailinks 67c66ec88fSEmmanuel VadotEach subnode of sndcard represents either a dailink, and subnodes of each 68c66ec88fSEmmanuel Vadotdailinks would be cpu/codec/platform dais. 69c66ec88fSEmmanuel Vadot 70c66ec88fSEmmanuel Vadot- link-name: 71c66ec88fSEmmanuel Vadot Usage: required 72c66ec88fSEmmanuel Vadot Value type: <string> 73c66ec88fSEmmanuel Vadot Definition: User friendly name for dai link 74c66ec88fSEmmanuel Vadot 75c66ec88fSEmmanuel Vadot= CPU, PLATFORM, CODEC dais subnodes 76c66ec88fSEmmanuel Vadot- cpu: 77c66ec88fSEmmanuel Vadot Usage: required 78c66ec88fSEmmanuel Vadot Value type: <subnode> 79c66ec88fSEmmanuel Vadot Definition: cpu dai sub-node 80c66ec88fSEmmanuel Vadot 81c66ec88fSEmmanuel Vadot- codec: 82c66ec88fSEmmanuel Vadot Usage: Optional 83c66ec88fSEmmanuel Vadot Value type: <subnode> 84c66ec88fSEmmanuel Vadot Definition: codec dai sub-node 85c66ec88fSEmmanuel Vadot 86c66ec88fSEmmanuel Vadot- platform: 87c66ec88fSEmmanuel Vadot Usage: Optional 88c66ec88fSEmmanuel Vadot Value type: <subnode> 89c66ec88fSEmmanuel Vadot Definition: platform dai sub-node 90c66ec88fSEmmanuel Vadot 91c66ec88fSEmmanuel Vadot- sound-dai: 92c66ec88fSEmmanuel Vadot Usage: required 93c66ec88fSEmmanuel Vadot Value type: <phandle with arguments> 94c66ec88fSEmmanuel Vadot Definition: dai phandle/s and port of CPU/CODEC/PLATFORM node. 95c66ec88fSEmmanuel Vadot 96c66ec88fSEmmanuel VadotObsolete: 97c66ec88fSEmmanuel Vadot qcom,model: String for soundcard name (Use model instead) 98c66ec88fSEmmanuel Vadot qcom,audio-routing: A list of the connections between audio components. 99c66ec88fSEmmanuel Vadot (Use audio-routing instead) 100c66ec88fSEmmanuel Vadot 101c66ec88fSEmmanuel VadotExample: 102c66ec88fSEmmanuel Vadot 103c66ec88fSEmmanuel Vadotaudio { 104c66ec88fSEmmanuel Vadot compatible = "qcom,apq8096-sndcard"; 105c66ec88fSEmmanuel Vadot model = "DB820c"; 106c66ec88fSEmmanuel Vadot 107c66ec88fSEmmanuel Vadot mm1-dai-link { 108c66ec88fSEmmanuel Vadot link-name = "MultiMedia1"; 109c66ec88fSEmmanuel Vadot cpu { 110c66ec88fSEmmanuel Vadot sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; 111c66ec88fSEmmanuel Vadot }; 112c66ec88fSEmmanuel Vadot }; 113c66ec88fSEmmanuel Vadot 114c66ec88fSEmmanuel Vadot hdmi-dai-link { 115c66ec88fSEmmanuel Vadot link-name = "HDMI Playback"; 116c66ec88fSEmmanuel Vadot cpu { 117c66ec88fSEmmanuel Vadot sound-dai = <&q6afe HDMI_RX>; 118c66ec88fSEmmanuel Vadot }; 119c66ec88fSEmmanuel Vadot 120c66ec88fSEmmanuel Vadot platform { 121c66ec88fSEmmanuel Vadot sound-dai = <&q6adm>; 122c66ec88fSEmmanuel Vadot }; 123c66ec88fSEmmanuel Vadot 124c66ec88fSEmmanuel Vadot codec { 125c66ec88fSEmmanuel Vadot sound-dai = <&hdmi 0>; 126c66ec88fSEmmanuel Vadot }; 127c66ec88fSEmmanuel Vadot }; 128c66ec88fSEmmanuel Vadot}; 129