summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/sound/imx-audio-wm8962.txt
blob: 06bc12d4cc76eedf4df601d01b3fad2f7f7a4d5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Freescale i.MX audio complex with WM8962 codec

Required properties:

  - compatible		: "fsl,imx-audio-wm8962"

  - model		: The user-visible name of this sound complex

  - cpu-dai		: The phandle of CPU DAI

  - audio-codec		: The phandle of the WM8962 audio codec

  - audio-routing	: A list of the connections between audio components.
			  Each entry is a pair of strings, the first being the
			  connection's sink, the second being the connection's
			  source. Valid names could be power supplies, WM8962
			  pins, and the jacks on the board:

			  Power supplies:
			   * Mic Bias

			  Board connectors:
			   * Mic Jack
			   * Headphone Jack
			   * Ext Spk

  - mux-int-port	: The internal port of the i.MX audio muxer (AUDMUX)

  - mux-ext-port	: The external port of the i.MX audio muxer

Note: The AUDMUX port numbering should start at 1, which is consistent with
hardware manual.

Optional properties:
- hp-det-gpios : The gpio pin to detect plug in/out event that happens to
  Headphone jack.
- mic-det-gpios: The gpio pin to detect plug in/out event that happens to
  Microphone jack.

Example:

sound {
	compatible = "fsl,imx6q-sabresd-wm8962",
		     "fsl,imx-audio-wm8962";
	model = "wm8962-audio";
	cpu-dai = <&ssi2>;
	audio-codec = <&codec>;
		audio-routing =
		"Headphone Jack", "HPOUTL",
		"Headphone Jack", "HPOUTR",
		"Ext Spk", "SPKOUTL",
		"Ext Spk", "SPKOUTR",
		"MICBIAS", "AMIC",
		"IN3R", "MICBIAS",
		"DMIC", "MICBIAS",
		"DMICDAT", "DMIC";
	mux-int-port = <2>;
	mux-ext-port = <3>;
	hp-det-gpios = <&gpio7 8 1>;
	mic-det-gpios = <&gpio1 9 1>;
};