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