xref: /freebsd/sys/contrib/device-tree/Bindings/sound/atmel-wm8904.txt (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1Atmel ASoC driver with wm8904 audio codec complex
2
3Required properties:
4  - compatible: "atmel,asoc-wm8904"
5  - atmel,model: The user-visible name of this sound complex.
6  - atmel,audio-routing: A list of the connections between audio components.
7    Each entry is a pair of strings, the first being the connection's sink,
8    the second being the connection's source. Valid names for sources and
9    sinks are the WM8904's pins, and the jacks on the board:
10
11    WM8904 pins:
12
13    * IN1L
14    * IN1R
15    * IN2L
16    * IN2R
17    * IN3L
18    * IN3R
19    * HPOUTL
20    * HPOUTR
21    * LINEOUTL
22    * LINEOUTR
23    * MICBIAS
24
25    Board connectors:
26
27    * Headphone Jack
28    * Line In Jack
29    * Mic
30
31  - atmel,ssc-controller: The phandle of the SSC controller
32  - atmel,audio-codec: The phandle of the WM8904 audio codec
33
34Optional properties:
35  - pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt
36
37Example:
38sound {
39	compatible = "atmel,asoc-wm8904";
40	pinctrl-names = "default";
41	pinctrl-0 = <&pinctrl_pck0_as_mck>;
42
43	atmel,model = "wm8904 @ AT91SAM9N12EK";
44
45	atmel,audio-routing =
46		"Headphone Jack", "HPOUTL",
47		"Headphone Jack", "HPOUTR",
48		"IN2L", "Line In Jack",
49		"IN2R", "Line In Jack",
50		"Mic", "MICBIAS",
51		"IN1L", "Mic";
52
53	atmel,ssc-controller = <&ssc0>;
54	atmel,audio-codec = <&wm8904>;
55};
56