18c2ecf20Sopenharmony_ciAtmel ASoC driver with wm8904 audio codec complex
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci  - compatible: "atmel,asoc-wm8904"
58c2ecf20Sopenharmony_ci  - atmel,model: The user-visible name of this sound complex.
68c2ecf20Sopenharmony_ci  - atmel,audio-routing: A list of the connections between audio components.
78c2ecf20Sopenharmony_ci    Each entry is a pair of strings, the first being the connection's sink,
88c2ecf20Sopenharmony_ci    the second being the connection's source. Valid names for sources and
98c2ecf20Sopenharmony_ci    sinks are the WM8904's pins, and the jacks on the board:
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci    WM8904 pins:
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci    * IN1L
148c2ecf20Sopenharmony_ci    * IN1R
158c2ecf20Sopenharmony_ci    * IN2L
168c2ecf20Sopenharmony_ci    * IN2R
178c2ecf20Sopenharmony_ci    * IN3L
188c2ecf20Sopenharmony_ci    * IN3R
198c2ecf20Sopenharmony_ci    * HPOUTL
208c2ecf20Sopenharmony_ci    * HPOUTR
218c2ecf20Sopenharmony_ci    * LINEOUTL
228c2ecf20Sopenharmony_ci    * LINEOUTR
238c2ecf20Sopenharmony_ci    * MICBIAS
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci    Board connectors:
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci    * Headphone Jack
288c2ecf20Sopenharmony_ci    * Line In Jack
298c2ecf20Sopenharmony_ci    * Mic
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci  - atmel,ssc-controller: The phandle of the SSC controller
328c2ecf20Sopenharmony_ci  - atmel,audio-codec: The phandle of the WM8904 audio codec
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ciOptional properties:
358c2ecf20Sopenharmony_ci  - pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ciExample:
388c2ecf20Sopenharmony_cisound {
398c2ecf20Sopenharmony_ci	compatible = "atmel,asoc-wm8904";
408c2ecf20Sopenharmony_ci	pinctrl-names = "default";
418c2ecf20Sopenharmony_ci	pinctrl-0 = <&pinctrl_pck0_as_mck>;
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci	atmel,model = "wm8904 @ AT91SAM9N12EK";
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci	atmel,audio-routing =
468c2ecf20Sopenharmony_ci		"Headphone Jack", "HPOUTL",
478c2ecf20Sopenharmony_ci		"Headphone Jack", "HPOUTR",
488c2ecf20Sopenharmony_ci		"IN2L", "Line In Jack",
498c2ecf20Sopenharmony_ci		"IN2R", "Line In Jack",
508c2ecf20Sopenharmony_ci		"Mic", "MICBIAS",
518c2ecf20Sopenharmony_ci		"IN1L", "Mic";
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci	atmel,ssc-controller = <&ssc0>;
548c2ecf20Sopenharmony_ci	atmel,audio-codec = <&wm8904>;
558c2ecf20Sopenharmony_ci};
56