]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/sound/imx-audio-sgtl5000.txt
ASoC: fsl: make audmux optional for i.MX6UL support
[karo-tx-linux.git] / Documentation / devicetree / bindings / sound / imx-audio-sgtl5000.txt
1 Freescale i.MX audio complex with SGTL5000 codec
2
3 Required properties:
4
5   - compatible          : "fsl,imx-audio-sgtl5000"
6
7   - model               : The user-visible name of this sound complex
8
9   - ssi-controller      : The phandle of the i.MX SSI (or SAI) controller
10
11   - audio-codec         : The phandle of the SGTL5000 audio codec
12
13   - audio-routing       : A list of the connections between audio components.
14                           Each entry is a pair of strings, the first being the
15                           connection's sink, the second being the connection's
16                           source. Valid names could be power supplies, SGTL5000
17                           pins, and the jacks on the board:
18
19                           Power supplies:
20                            * Mic Bias
21
22                           SGTL5000 pins:
23                            * MIC_IN
24                            * LINE_IN
25                            * HP_OUT
26                            * LINE_OUT
27
28                           Board connectors:
29                            * Mic Jack
30                            * Line In Jack
31                            * Headphone Jack
32                            * Line Out Jack
33                            * Ext Spk
34
35   - mux-int-port        : The internal port of the i.MX audio muxer (AUDMUX)
36
37   - mux-ext-port        : The external port of the i.MX audio muxer
38
39 Note: The AUDMUX port numbering should start at 1, which is consistent with
40 hardware manual.
41
42 Optional properties:
43   - fsl,no-audmux       : boolean
44                           Required for i.MX6UL (and maybe other SoCs)
45                           which don't have an AUDMUX, but still
46                           feature the same audio subsystem otherwise.
47
48 Note: Setting this property will make mux-int-port and mux-ext-port
49 obsolete.
50
51
52 Example:
53
54 sound {
55         compatible = "fsl,imx51-babbage-sgtl5000",
56                      "fsl,imx-audio-sgtl5000";
57         model = "imx51-babbage-sgtl5000";
58         ssi-controller = <&ssi1>;
59         audio-codec = <&sgtl5000>;
60         audio-routing =
61                 "MIC_IN", "Mic Jack",
62                 "Mic Jack", "Mic Bias",
63                 "Headphone Jack", "HP_OUT";
64         mux-int-port = <1>;
65         mux-ext-port = <3>;
66 };
67
68 or (e.g. for i.MX6UL):
69 sound {
70         compatible = "karo,imx6ul-tx6ul-sgtl5000",
71                      "fsl,imx-audio-sgtl5000";
72         model = "imx6ul-tx6ul-sgtl5000";
73         ssi-controller = <&sai2>;
74         audio-codec = <&sgtl5000>;
75         audio-routing =
76                 "MIC_IN", "Mic Jack",
77                 "Mic Jack", "Mic Bias",
78                 "Headphone Jack", "HP_OUT";
79         fsl,no-audmux;
80 };