1c66ec88fSEmmanuel Vadot* Qualcomm Technologies APQ8016 SBC ASoC machine driver 2c66ec88fSEmmanuel Vadot 3c66ec88fSEmmanuel VadotThis node models the Qualcomm Technologies APQ8016 SBC ASoC machine driver 4c66ec88fSEmmanuel Vadot 5c66ec88fSEmmanuel VadotRequired properties: 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadot- compatible : "qcom,apq8016-sbc-sndcard" 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadot- pinctrl-N : One property must exist for each entry in 10c66ec88fSEmmanuel Vadot pinctrl-names. See ../pinctrl/pinctrl-bindings.txt 11c66ec88fSEmmanuel Vadot for details of the property values. 12c66ec88fSEmmanuel Vadot- pinctrl-names : Must contain a "default" entry. 13c66ec88fSEmmanuel Vadot- reg : Must contain an address for each entry in reg-names. 14c66ec88fSEmmanuel Vadot- reg-names : A list which must include the following entries: 15c66ec88fSEmmanuel Vadot * "mic-iomux" 16c66ec88fSEmmanuel Vadot * "spkr-iomux" 17c66ec88fSEmmanuel Vadot- qcom,model : Name of the sound card. 18c66ec88fSEmmanuel Vadot 19c66ec88fSEmmanuel Vadot- qcom,audio-routing : A list of the connections between audio components. 20c66ec88fSEmmanuel Vadot Each entry is a pair of strings, the first being the 21c66ec88fSEmmanuel Vadot connection's sink, the second being the connection's 22c66ec88fSEmmanuel Vadot source. Valid names could be power supplies, MicBias 23c66ec88fSEmmanuel Vadot of msm8x16_wcd codec and the jacks on the board: 24c66ec88fSEmmanuel Vadot 25c66ec88fSEmmanuel Vadot Power supplies: 26c66ec88fSEmmanuel Vadot * MIC BIAS External1 27c66ec88fSEmmanuel Vadot * MIC BIAS External2 28c66ec88fSEmmanuel Vadot * MIC BIAS Internal1 29c66ec88fSEmmanuel Vadot * MIC BIAS Internal2 30c66ec88fSEmmanuel Vadot 31c66ec88fSEmmanuel Vadot Board connectors: 32c66ec88fSEmmanuel Vadot * Headset Mic 33c66ec88fSEmmanuel Vadot * Secondary Mic 34c66ec88fSEmmanuel Vadot * DMIC 35c66ec88fSEmmanuel Vadot * Ext Spk 36c66ec88fSEmmanuel Vadot 37*6be33864SEmmanuel VadotOptional properties: 38*6be33864SEmmanuel Vadot 39*6be33864SEmmanuel Vadot- aux-devs : A list of phandles for auxiliary devices (e.g. analog 40*6be33864SEmmanuel Vadot amplifiers) that do not appear directly within the DAI 41*6be33864SEmmanuel Vadot links. Should be connected to another audio component 42*6be33864SEmmanuel Vadot using "qcom,audio-routing". 43*6be33864SEmmanuel Vadot 44c66ec88fSEmmanuel VadotDai-link subnode properties and subnodes: 45c66ec88fSEmmanuel Vadot 46c66ec88fSEmmanuel VadotRequired dai-link subnodes: 47c66ec88fSEmmanuel Vadot 48c66ec88fSEmmanuel Vadot- cpu : CPU sub-node 49c66ec88fSEmmanuel Vadot- codec : CODEC sub-node 50c66ec88fSEmmanuel Vadot 51c66ec88fSEmmanuel VadotRequired CPU/CODEC subnodes properties: 52c66ec88fSEmmanuel Vadot 53c66ec88fSEmmanuel Vadot-link-name : Name of the dai link. 54c66ec88fSEmmanuel Vadot-sound-dai : phandle/s and port of CPU/CODEC 55c66ec88fSEmmanuel Vadot 56c66ec88fSEmmanuel VadotExample: 57c66ec88fSEmmanuel Vadot 58c66ec88fSEmmanuel Vadotsound: sound { 59c66ec88fSEmmanuel Vadot compatible = "qcom,apq8016-sbc-sndcard"; 60c66ec88fSEmmanuel Vadot reg = <0x07702000 0x4>, <0x07702004 0x4>; 61c66ec88fSEmmanuel Vadot reg-names = "mic-iomux", "spkr-iomux"; 62c66ec88fSEmmanuel Vadot qcom,model = "DB410c"; 63c66ec88fSEmmanuel Vadot 64c66ec88fSEmmanuel Vadot qcom,audio-routing = 65c66ec88fSEmmanuel Vadot "MIC BIAS External1", "Handset Mic", 66c66ec88fSEmmanuel Vadot "MIC BIAS Internal2", "Headset Mic", 67c66ec88fSEmmanuel Vadot "MIC BIAS External1", "Secondary Mic", 68c66ec88fSEmmanuel Vadot "AMIC1", "MIC BIAS External1", 69c66ec88fSEmmanuel Vadot "AMIC2", "MIC BIAS Internal2", 70c66ec88fSEmmanuel Vadot "AMIC3", "MIC BIAS External1", 71c66ec88fSEmmanuel Vadot "DMIC1", "MIC BIAS Internal1", 72c66ec88fSEmmanuel Vadot "MIC BIAS Internal1", "Digital Mic1", 73c66ec88fSEmmanuel Vadot "DMIC2", "MIC BIAS Internal1", 74c66ec88fSEmmanuel Vadot "MIC BIAS Internal1", "Digital Mic2"; 75c66ec88fSEmmanuel Vadot 76c66ec88fSEmmanuel Vadot /* I2S - Internal codec */ 77c66ec88fSEmmanuel Vadot internal-dai-link@0 { 78c66ec88fSEmmanuel Vadot cpu { /* PRIMARY */ 79c66ec88fSEmmanuel Vadot sound-dai = <&lpass MI2S_PRIMARY>; 80c66ec88fSEmmanuel Vadot }; 81c66ec88fSEmmanuel Vadot codec { 82c66ec88fSEmmanuel Vadot sound-dai = <&lpass_codec 0>, <&wcd_codec 0>; 83c66ec88fSEmmanuel Vadot }; 84c66ec88fSEmmanuel Vadot }; 85c66ec88fSEmmanuel Vadot 86c66ec88fSEmmanuel Vadot /* External Primary or External Secondary -ADV7533 HDMI */ 87c66ec88fSEmmanuel Vadot external-dai-link@0 { 88c66ec88fSEmmanuel Vadot link-name = "ADV7533"; 89c66ec88fSEmmanuel Vadot cpu { /* QUAT */ 90c66ec88fSEmmanuel Vadot sound-dai = <&lpass MI2S_QUATERNARY>; 91c66ec88fSEmmanuel Vadot }; 92c66ec88fSEmmanuel Vadot codec { 93c66ec88fSEmmanuel Vadot sound-dai = <&adv_bridge 0>; 94c66ec88fSEmmanuel Vadot }; 95c66ec88fSEmmanuel Vadot }; 96c66ec88fSEmmanuel Vadot}; 97