File Index
Files and directories
Sign in
FILE

samsung,tm2.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/sound/samsung,tm2.yaml YAML
 1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
 2%YAML 1.2
 3---
 4$id: http://devicetree.org/schemas/sound/samsung,tm2.yaml#
 5$schema: http://devicetree.org/meta-schemas/core.yaml#
 6
 7title: Samsung Exynos5433 TM2(E) audio complex with WM5110 codec
 8
 9maintainers:
10  - Krzysztof Kozlowski <krzk@kernel.org>
11  - Sylwester Nawrocki <s.nawrocki@samsung.com>
12
13allOf:
14  - $ref: sound-card-common.yaml#
15
16properties:
17  compatible:
18    const: samsung,tm2-audio
19
20  audio-amplifier:
21    description: Phandle to the MAX98504 amplifier.
22    $ref: /schemas/types.yaml#/definitions/phandle
23
24  audio-codec:
25    description: Phandles to the codecs.
26    $ref: /schemas/types.yaml#/definitions/phandle-array
27    items:
28      - items:
29          - description: Phandle to the WM5110 audio codec.
30      - items:
31          - description: Phandle to the HDMI transmitter node.
32
33  samsung,audio-routing:
34    description: |
35      List of the connections between audio components; each entry is
36      a pair of strings, the first being the connection's sink, the second
37      being the connection's source; valid names for sources and sinks are the
38      WM5110's and MAX98504's pins and the jacks on the board: HP, SPK, Main
39      Mic, Sub Mic, Third Mic, Headset Mic.
40      Deprecated, use audio-routing.
41    deprecated: true
42    $ref: /schemas/types.yaml#/definitions/non-unique-string-array
43
44  i2s-controller:
45    description: Phandles to the I2S controllers.
46    $ref: /schemas/types.yaml#/definitions/phandle-array
47    items:
48      - description: Phandle to I2S0.
49      - description: Phandle to I2S1.
50
51  mic-bias-gpios:
52    description: GPIO pin that enables the Main Mic bias regulator.
53
54required:
55  - compatible
56  - audio-amplifier
57  - audio-codec
58  - audio-routing
59  - i2s-controller
60  - mic-bias-gpios
61
62unevaluatedProperties: false
63
64examples:
65  - |
66    #include <dt-bindings/gpio/gpio.h>
67
68    sound {
69        compatible = "samsung,tm2-audio";
70        audio-codec = <&wm5110>, <&hdmi>;
71        i2s-controller = <&i2s0 0>, <&i2s1 0>;
72        audio-amplifier = <&max98504>;
73        mic-bias-gpios = <&gpr3 2 GPIO_ACTIVE_HIGH>;
74        model = "wm5110";
75        audio-routing = "HP", "HPOUT1L",
76                                "HP", "HPOUT1R",
77                                "SPK", "SPKOUT",
78                                "SPKOUT", "HPOUT2L",
79                                "SPKOUT", "HPOUT2R",
80                                "RCV", "HPOUT3L",
81                                "RCV", "HPOUT3R";
82    };
~/ Read-only file preview.