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