188dffe43SDavid Heidelberg# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 288dffe43SDavid Heidelberg%YAML 1.2 388dffe43SDavid Heidelberg--- 488dffe43SDavid Heidelberg$id: http://devicetree.org/schemas/sound/nvidia,tegra-audio-rt5640.yaml# 588dffe43SDavid Heidelberg$schema: http://devicetree.org/meta-schemas/core.yaml# 688dffe43SDavid Heidelberg 788dffe43SDavid Heidelbergtitle: NVIDIA Tegra audio complex with RT5639 or RT5640 CODEC 888dffe43SDavid Heidelberg 988dffe43SDavid Heidelbergmaintainers: 1088dffe43SDavid Heidelberg - Jon Hunter <jonathanh@nvidia.com> 1188dffe43SDavid Heidelberg - Thierry Reding <thierry.reding@gmail.com> 1288dffe43SDavid Heidelberg 1388dffe43SDavid HeidelbergallOf: 1488dffe43SDavid Heidelberg - $ref: nvidia,tegra-audio-common.yaml# 1588dffe43SDavid Heidelberg 1688dffe43SDavid Heidelbergproperties: 1788dffe43SDavid Heidelberg compatible: 1888dffe43SDavid Heidelberg items: 1988dffe43SDavid Heidelberg - pattern: '^[a-z0-9]+,tegra-audio-rt56(39|40)(-[a-z0-9]+)+$' 2088dffe43SDavid Heidelberg - const: nvidia,tegra-audio-rt5640 2188dffe43SDavid Heidelberg 2288dffe43SDavid Heidelberg nvidia,audio-routing: 2388dffe43SDavid Heidelberg $ref: /schemas/types.yaml#/definitions/non-unique-string-array 2488dffe43SDavid Heidelberg description: | 2588dffe43SDavid Heidelberg A list of the connections between audio components. 2688dffe43SDavid Heidelberg Each entry is a pair of strings, the first being the connection's sink, 2788dffe43SDavid Heidelberg the second being the connection's source. Valid names for sources and 2888dffe43SDavid Heidelberg sinks are the pins (documented in the binding document), 2988dffe43SDavid Heidelberg and the jacks on the board. 3088dffe43SDavid Heidelberg minItems: 2 3188dffe43SDavid Heidelberg items: 3288dffe43SDavid Heidelberg enum: 3388dffe43SDavid Heidelberg # Board Connectors 34*d9e909e2SRob Herring - Headphones 35*d9e909e2SRob Herring - Speakers 36*d9e909e2SRob Herring - Mic Jack 3788dffe43SDavid Heidelberg 3888dffe43SDavid Heidelberg # CODEC Pins 3988dffe43SDavid Heidelberg - DMIC1 4088dffe43SDavid Heidelberg - DMIC2 4188dffe43SDavid Heidelberg - MICBIAS1 4288dffe43SDavid Heidelberg - IN1P 4388dffe43SDavid Heidelberg - IN1R 4488dffe43SDavid Heidelberg - IN2P 4588dffe43SDavid Heidelberg - IN2R 4688dffe43SDavid Heidelberg - HPOL 4788dffe43SDavid Heidelberg - HPOR 4888dffe43SDavid Heidelberg - LOUTL 4988dffe43SDavid Heidelberg - LOUTR 5088dffe43SDavid Heidelberg - MONOP 5188dffe43SDavid Heidelberg - MONON 5288dffe43SDavid Heidelberg - SPOLP 5388dffe43SDavid Heidelberg - SPOLN 5488dffe43SDavid Heidelberg - SPORP 5588dffe43SDavid Heidelberg - SPORN 5688dffe43SDavid Heidelberg 5788dffe43SDavid Heidelbergrequired: 5888dffe43SDavid Heidelberg - nvidia,i2s-controller 5988dffe43SDavid Heidelberg 6088dffe43SDavid HeidelbergunevaluatedProperties: false 6188dffe43SDavid Heidelberg 6288dffe43SDavid Heidelbergexamples: 6388dffe43SDavid Heidelberg - | 6488dffe43SDavid Heidelberg sound { 6588dffe43SDavid Heidelberg compatible = "nvidia,tegra-audio-rt5640-dalmore", 6688dffe43SDavid Heidelberg "nvidia,tegra-audio-rt5640"; 6788dffe43SDavid Heidelberg nvidia,model = "NVIDIA Tegra Dalmore"; 6888dffe43SDavid Heidelberg 6988dffe43SDavid Heidelberg nvidia,audio-routing = 7088dffe43SDavid Heidelberg "Headphones", "HPOR", 7188dffe43SDavid Heidelberg "Headphones", "HPOL", 7288dffe43SDavid Heidelberg "Speakers", "SPORP", 7388dffe43SDavid Heidelberg "Speakers", "SPORN", 7488dffe43SDavid Heidelberg "Speakers", "SPOLP", 7588dffe43SDavid Heidelberg "Speakers", "SPOLN"; 7688dffe43SDavid Heidelberg 7788dffe43SDavid Heidelberg nvidia,i2s-controller = <&tegra_i2s1>; 7888dffe43SDavid Heidelberg nvidia,audio-codec = <&rt5640>; 7988dffe43SDavid Heidelberg 8088dffe43SDavid Heidelberg nvidia,hp-det-gpios = <&gpio 143 0>; 8188dffe43SDavid Heidelberg 8288dffe43SDavid Heidelberg clocks = <&clk 216>, <&clk 217>, <&clk 120>; 8388dffe43SDavid Heidelberg clock-names = "pll_a", "pll_a_out0", "mclk"; 8488dffe43SDavid Heidelberg }; 85