xref: /freebsd/sys/contrib/device-tree/Bindings/sound/qcom,sdm845.txt (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1c66ec88fSEmmanuel Vadot* Qualcomm Technologies Inc. SDM845 ASoC sound card driver
2c66ec88fSEmmanuel Vadot
3c66ec88fSEmmanuel VadotThis binding describes the SDM845 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 one of this
9c66ec88fSEmmanuel Vadot			"qcom,sdm845-sndcard"
10c66ec88fSEmmanuel Vadot			"qcom,db845c-sndcard"
11c66ec88fSEmmanuel Vadot			"lenovo,yoga-c630-sndcard"
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadot- audio-routing:
14c66ec88fSEmmanuel Vadot	Usage: Optional
15c66ec88fSEmmanuel Vadot	Value type: <stringlist>
16c66ec88fSEmmanuel Vadot	Definition:  A list of the connections between audio components.
17c66ec88fSEmmanuel Vadot		  Each entry is a pair of strings, the first being the
18c66ec88fSEmmanuel Vadot		  connection's sink, the second being the connection's
19c66ec88fSEmmanuel Vadot		  source. Valid names could be power supplies, MicBias
20c66ec88fSEmmanuel Vadot		  of codec and the jacks on the board.
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadot- model:
23c66ec88fSEmmanuel Vadot	Usage: required
24c66ec88fSEmmanuel Vadot	Value type: <stringlist>
25c66ec88fSEmmanuel Vadot	Definition: The user-visible name of this sound card.
26c66ec88fSEmmanuel Vadot
27*6be33864SEmmanuel Vadot- aux-devs
28*6be33864SEmmanuel Vadot	Usage: optional
29*6be33864SEmmanuel Vadot	Value type: <array of phandles>
30*6be33864SEmmanuel Vadot	Definition: A list of phandles for auxiliary devices (e.g. analog
31*6be33864SEmmanuel Vadot		    amplifiers) that do not appear directly within the DAI
32*6be33864SEmmanuel Vadot		    links. Should be connected to another audio component
33*6be33864SEmmanuel Vadot		    using "audio-routing".
34*6be33864SEmmanuel Vadot
35c66ec88fSEmmanuel Vadot= dailinks
36c66ec88fSEmmanuel VadotEach subnode of sndcard represents either a dailink, and subnodes of each
37c66ec88fSEmmanuel Vadotdailinks would be cpu/codec/platform dais.
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel Vadot- link-name:
40c66ec88fSEmmanuel Vadot	Usage: required
41c66ec88fSEmmanuel Vadot	Value type: <string>
42c66ec88fSEmmanuel Vadot	Definition: User friendly name for dai link
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel Vadot= CPU, PLATFORM, CODEC dais subnodes
45c66ec88fSEmmanuel Vadot- cpu:
46c66ec88fSEmmanuel Vadot	Usage: required
47c66ec88fSEmmanuel Vadot	Value type: <subnode>
48c66ec88fSEmmanuel Vadot	Definition: cpu dai sub-node
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadot- codec:
51c66ec88fSEmmanuel Vadot	Usage: required
52c66ec88fSEmmanuel Vadot	Value type: <subnode>
53c66ec88fSEmmanuel Vadot	Definition: codec dai sub-node
54c66ec88fSEmmanuel Vadot
55c66ec88fSEmmanuel Vadot- platform:
56c66ec88fSEmmanuel Vadot	Usage: Optional
57c66ec88fSEmmanuel Vadot	Value type: <subnode>
58c66ec88fSEmmanuel Vadot	Definition: platform dai sub-node
59c66ec88fSEmmanuel Vadot
60c66ec88fSEmmanuel Vadot- sound-dai:
61c66ec88fSEmmanuel Vadot	Usage: required
62c66ec88fSEmmanuel Vadot	Value type: <phandle>
63c66ec88fSEmmanuel Vadot	Definition: dai phandle/s and port of CPU/CODEC/PLATFORM node.
64c66ec88fSEmmanuel Vadot
65c66ec88fSEmmanuel VadotExample:
66c66ec88fSEmmanuel Vadot
67c66ec88fSEmmanuel Vadotaudio {
68c66ec88fSEmmanuel Vadot	compatible = "qcom,sdm845-sndcard";
69c66ec88fSEmmanuel Vadot	model = "sdm845-snd-card";
70c66ec88fSEmmanuel Vadot	pinctrl-names = "default", "sleep";
71c66ec88fSEmmanuel Vadot	pinctrl-0 = <&pri_mi2s_active &pri_mi2s_ws_active>;
72c66ec88fSEmmanuel Vadot	pinctrl-1 = <&pri_mi2s_sleep &pri_mi2s_ws_sleep>;
73c66ec88fSEmmanuel Vadot
74c66ec88fSEmmanuel Vadot	mm1-dai-link {
75c66ec88fSEmmanuel Vadot		link-name = "MultiMedia1";
76c66ec88fSEmmanuel Vadot		cpu {
77c66ec88fSEmmanuel Vadot			sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
78c66ec88fSEmmanuel Vadot		};
79c66ec88fSEmmanuel Vadot	};
80c66ec88fSEmmanuel Vadot
81c66ec88fSEmmanuel Vadot	pri-mi2s-dai-link {
82c66ec88fSEmmanuel Vadot		link-name = "PRI MI2S Playback";
83c66ec88fSEmmanuel Vadot		cpu {
84c66ec88fSEmmanuel Vadot			sound-dai = <&q6afedai PRIMARY_MI2S_RX>;
85c66ec88fSEmmanuel Vadot		};
86c66ec88fSEmmanuel Vadot
87c66ec88fSEmmanuel Vadot		platform {
88c66ec88fSEmmanuel Vadot			sound-dai = <&q6routing>;
89c66ec88fSEmmanuel Vadot		};
90c66ec88fSEmmanuel Vadot	};
91c66ec88fSEmmanuel Vadot};
92