xref: /freebsd/sys/contrib/device-tree/Bindings/sound/imx-audio-sgtl5000.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotFreescale i.MX audio complex with SGTL5000 codec
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel Vadot  - compatible		: "fsl,imx-audio-sgtl5000"
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadot  - model		: The user-visible name of this sound complex
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadot  - ssi-controller	: The phandle of the i.MX SSI controller
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel Vadot  - audio-codec		: The phandle of the SGTL5000 audio codec
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadot  - audio-routing	: A list of the connections between audio components.
14*c66ec88fSEmmanuel Vadot			  Each entry is a pair of strings, the first being the
15*c66ec88fSEmmanuel Vadot			  connection's sink, the second being the connection's
16*c66ec88fSEmmanuel Vadot			  source. Valid names could be power supplies, SGTL5000
17*c66ec88fSEmmanuel Vadot			  pins, and the jacks on the board:
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot			  Power supplies:
20*c66ec88fSEmmanuel Vadot			   * Mic Bias
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadot			  SGTL5000 pins:
23*c66ec88fSEmmanuel Vadot			   * MIC_IN
24*c66ec88fSEmmanuel Vadot			   * LINE_IN
25*c66ec88fSEmmanuel Vadot			   * HP_OUT
26*c66ec88fSEmmanuel Vadot			   * LINE_OUT
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot			  Board connectors:
29*c66ec88fSEmmanuel Vadot			   * Mic Jack
30*c66ec88fSEmmanuel Vadot			   * Line In Jack
31*c66ec88fSEmmanuel Vadot			   * Headphone Jack
32*c66ec88fSEmmanuel Vadot			   * Line Out Jack
33*c66ec88fSEmmanuel Vadot			   * Ext Spk
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel Vadot  - mux-int-port	: The internal port of the i.MX audio muxer (AUDMUX)
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel Vadot  - mux-ext-port	: The external port of the i.MX audio muxer
38*c66ec88fSEmmanuel Vadot
39*c66ec88fSEmmanuel VadotNote: The AUDMUX port numbering should start at 1, which is consistent with
40*c66ec88fSEmmanuel Vadothardware manual.
41*c66ec88fSEmmanuel Vadot
42*c66ec88fSEmmanuel VadotExample:
43*c66ec88fSEmmanuel Vadot
44*c66ec88fSEmmanuel Vadotsound {
45*c66ec88fSEmmanuel Vadot	compatible = "fsl,imx51-babbage-sgtl5000",
46*c66ec88fSEmmanuel Vadot		     "fsl,imx-audio-sgtl5000";
47*c66ec88fSEmmanuel Vadot	model = "imx51-babbage-sgtl5000";
48*c66ec88fSEmmanuel Vadot	ssi-controller = <&ssi1>;
49*c66ec88fSEmmanuel Vadot	audio-codec = <&sgtl5000>;
50*c66ec88fSEmmanuel Vadot	audio-routing =
51*c66ec88fSEmmanuel Vadot		"MIC_IN", "Mic Jack",
52*c66ec88fSEmmanuel Vadot		"Mic Jack", "Mic Bias",
53*c66ec88fSEmmanuel Vadot		"Headphone Jack", "HP_OUT";
54*c66ec88fSEmmanuel Vadot	mux-int-port = <1>;
55*c66ec88fSEmmanuel Vadot	mux-ext-port = <3>;
56*c66ec88fSEmmanuel Vadot};
57