1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/samsung,tm2.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Samsung Exynos5433 TM2(E) audio complex with WM5110 codec
10 - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
11 - Sylwester Nawrocki <s.nawrocki@samsung.com>
15 const: samsung,tm2-audio
18 description: Phandle to the MAX98504 amplifier.
19 $ref: /schemas/types.yaml#/definitions/phandle
22 description: Phandles to the codecs.
23 $ref: /schemas/types.yaml#/definitions/phandle-array
25 - description: Phandle to the WM5110 audio codec.
26 - description: Phandle to the HDMI transmitter node.
28 samsung,audio-routing:
30 List of the connections between audio components; each entry is
31 a pair of strings, the first being the connection's sink, the second
32 being the connection's source; valid names for sources and sinks are the
33 WM5110's and MAX98504's pins and the jacks on the board: HP, SPK, Main
34 Mic, Sub Mic, Third Mic, Headset Mic.
35 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
38 description: Phandles to the I2S controllers.
39 $ref: /schemas/types.yaml#/definitions/phandle-array
41 - description: Phandle to I2S0.
42 - description: Phandle to I2S1.
45 description: GPIO pin that enables the Main Mic bias regulator.
48 description: The user-visible name of this sound complex.
49 $ref: /schemas/types.yaml#/definitions/string
55 - samsung,audio-routing
60 additionalProperties: false
64 #include <dt-bindings/gpio/gpio.h>
67 compatible = "samsung,tm2-audio";
68 audio-codec = <&wm5110>, <&hdmi>;
69 i2s-controller = <&i2s0 0>, <&i2s1 0>;
70 audio-amplifier = <&max98504>;
71 mic-bias-gpios = <&gpr3 2 GPIO_ACTIVE_HIGH>;
73 samsung,audio-routing = "HP", "HPOUT1L",