xref: /openbmc/linux/Documentation/devicetree/bindings/sound/nvidia,tegra-audio-rt5631.yaml (revision 2060c9b8ae2a1f6abec483709f4209b6e3602b89)
1*2060c9b8SDavid Heidelberg# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*2060c9b8SDavid Heidelberg%YAML 1.2
3*2060c9b8SDavid Heidelberg---
4*2060c9b8SDavid Heidelberg$id: http://devicetree.org/schemas/sound/nvidia,tegra-audio-rt5631.yaml#
5*2060c9b8SDavid Heidelberg$schema: http://devicetree.org/meta-schemas/core.yaml#
6*2060c9b8SDavid Heidelberg
7*2060c9b8SDavid Heidelbergtitle: NVIDIA Tegra audio complex with RT5631 CODEC
8*2060c9b8SDavid Heidelberg
9*2060c9b8SDavid Heidelbergmaintainers:
10*2060c9b8SDavid Heidelberg  - Jon Hunter <jonathanh@nvidia.com>
11*2060c9b8SDavid Heidelberg  - Thierry Reding <thierry.reding@gmail.com>
12*2060c9b8SDavid Heidelberg
13*2060c9b8SDavid HeidelbergallOf:
14*2060c9b8SDavid Heidelberg  - $ref: nvidia,tegra-audio-common.yaml#
15*2060c9b8SDavid Heidelberg
16*2060c9b8SDavid Heidelbergproperties:
17*2060c9b8SDavid Heidelberg  compatible:
18*2060c9b8SDavid Heidelberg    items:
19*2060c9b8SDavid Heidelberg      - pattern: '^[a-z0-9]+,tegra-audio-rt5631(-[a-z0-9]+)+$'
20*2060c9b8SDavid Heidelberg      - const: nvidia,tegra-audio-rt5631
21*2060c9b8SDavid Heidelberg
22*2060c9b8SDavid Heidelberg  nvidia,audio-routing:
23*2060c9b8SDavid Heidelberg    $ref: /schemas/types.yaml#/definitions/non-unique-string-array
24*2060c9b8SDavid Heidelberg    description: |
25*2060c9b8SDavid Heidelberg      A list of the connections between audio components.
26*2060c9b8SDavid Heidelberg      Each entry is a pair of strings, the first being the connection's sink,
27*2060c9b8SDavid Heidelberg      the second being the connection's source. Valid names for sources and
28*2060c9b8SDavid Heidelberg      sinks are the pins (documented in the binding document),
29*2060c9b8SDavid Heidelberg      and the jacks on the board.
30*2060c9b8SDavid Heidelberg    minItems: 2
31*2060c9b8SDavid Heidelberg    items:
32*2060c9b8SDavid Heidelberg      enum:
33*2060c9b8SDavid Heidelberg        # Board Connectors
34*2060c9b8SDavid Heidelberg        - "Int Spk"
35*2060c9b8SDavid Heidelberg        - "Headphone Jack"
36*2060c9b8SDavid Heidelberg        - "Mic Jack"
37*2060c9b8SDavid Heidelberg        - "Int Mic"
38*2060c9b8SDavid Heidelberg
39*2060c9b8SDavid Heidelberg        # CODEC Pins
40*2060c9b8SDavid Heidelberg        - MIC1
41*2060c9b8SDavid Heidelberg        - MIC2
42*2060c9b8SDavid Heidelberg        - AXIL
43*2060c9b8SDavid Heidelberg        - AXIR
44*2060c9b8SDavid Heidelberg        - MONOIN_RXN
45*2060c9b8SDavid Heidelberg        - MONOIN_RXP
46*2060c9b8SDavid Heidelberg        - DMIC
47*2060c9b8SDavid Heidelberg        - MIC Bias1
48*2060c9b8SDavid Heidelberg        - MIC Bias2
49*2060c9b8SDavid Heidelberg        - MONO_IN
50*2060c9b8SDavid Heidelberg        - AUXO1
51*2060c9b8SDavid Heidelberg        - AUXO2
52*2060c9b8SDavid Heidelberg        - SPOL
53*2060c9b8SDavid Heidelberg        - SPOR
54*2060c9b8SDavid Heidelberg        - HPOL
55*2060c9b8SDavid Heidelberg        - HPOR
56*2060c9b8SDavid Heidelberg        - MONO
57*2060c9b8SDavid Heidelberg
58*2060c9b8SDavid HeidelbergunevaluatedProperties: false
59*2060c9b8SDavid Heidelberg
60*2060c9b8SDavid Heidelbergexamples:
61*2060c9b8SDavid Heidelberg  - |
62*2060c9b8SDavid Heidelberg    #include <dt-bindings/clock/tegra30-car.h>
63*2060c9b8SDavid Heidelberg    #include <dt-bindings/soc/tegra-pmc.h>
64*2060c9b8SDavid Heidelberg    sound {
65*2060c9b8SDavid Heidelberg        compatible = "asus,tegra-audio-rt5631-tf700t",
66*2060c9b8SDavid Heidelberg                     "nvidia,tegra-audio-rt5631";
67*2060c9b8SDavid Heidelberg        nvidia,model = "Asus Transformer Infinity TF700T RT5631";
68*2060c9b8SDavid Heidelberg
69*2060c9b8SDavid Heidelberg        nvidia,audio-routing =
70*2060c9b8SDavid Heidelberg                "Headphone Jack", "HPOL",
71*2060c9b8SDavid Heidelberg                "Headphone Jack", "HPOR",
72*2060c9b8SDavid Heidelberg                "Int Spk", "SPOL",
73*2060c9b8SDavid Heidelberg                "Int Spk", "SPOR",
74*2060c9b8SDavid Heidelberg                "MIC1", "MIC Bias1",
75*2060c9b8SDavid Heidelberg                "MIC Bias1", "Mic Jack",
76*2060c9b8SDavid Heidelberg                "DMIC", "Int Mic";
77*2060c9b8SDavid Heidelberg
78*2060c9b8SDavid Heidelberg        nvidia,i2s-controller = <&tegra_i2s1>;
79*2060c9b8SDavid Heidelberg        nvidia,audio-codec = <&rt5631>;
80*2060c9b8SDavid Heidelberg
81*2060c9b8SDavid Heidelberg        clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
82*2060c9b8SDavid Heidelberg                 <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
83*2060c9b8SDavid Heidelberg                 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
84*2060c9b8SDavid Heidelberg        clock-names = "pll_a", "pll_a_out0", "mclk";
85*2060c9b8SDavid Heidelberg    };
86